mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 06:15:33 -04:00
Merge from upstream. The system-status test was modifed upstream, but it
still doesn't fit into ATF, so those changes weren't brought in.
From FIXES:
Jun 23, 2024
Fix signal for system-status test. Thanks to Tim van der Molen.
Rewrite if-else chain as switch. Thanks to Andrew Sukach.
May 27, 2024
Spelling fixes and removal of unneeded prototypes and extern.
Thanks to Jonathan Gray.
May 4, 2024
Fixed a use-after-free bug with ARGV for "delete ARGV".
Also ENVtab is no longer global. Thanks to Benjamin Sturz
for spotting the ARGV issue and Todd Miller for the fix.
May 3, 2024:
Remove warnings when compiling with g++. Thanks to Arnold Robbins.
Sponsored by: Netflix
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| a-format.awk | ||
| a-format.bad | ||
| a-format.ok | ||
| concat-assign-same.awk | ||
| concat-assign-same.bad | ||
| concat-assign-same.ok | ||
| decr-NF.awk | ||
| decr-NF.bad | ||
| decr-NF.ok | ||
| fmt-overflow.awk | ||
| fmt-overflow.ok | ||
| fs-overflow.awk | ||
| fs-overflow.ok | ||
| getline-corruption.awk | ||
| getline-corruption.in | ||
| getline-corruption.ok | ||
| getline-numeric.awk | ||
| getline-numeric.bad | ||
| getline-numeric.in | ||
| getline-numeric.ok | ||
| inf-nan-torture.awk | ||
| inf-nan-torture.in | ||
| inf-nan-torture.ok | ||
| matchop-deref.awk | ||
| matchop-deref.bad | ||
| matchop-deref.in | ||
| matchop-deref.ok | ||
| missing-precision.awk | ||
| missing-precision.err | ||
| negative-nf.awk | ||
| negative-nf.err | ||
| nf-self-assign.awk | ||
| nf-self-assign.bad | ||
| nf-self-assign.ok | ||
| numeric-fs.awk | ||
| numeric-fs.ok | ||
| numeric-output-seps.awk | ||
| numeric-output-seps.bad | ||
| numeric-output-seps.ok | ||
| numeric-rs.awk | ||
| numeric-rs.bad | ||
| numeric-rs.ok | ||
| numeric-subsep.awk | ||
| numeric-subsep.bad | ||
| numeric-subsep.ok | ||
| ofs-rebuild.awk | ||
| ofs-rebuild.bad | ||
| ofs-rebuild.ok | ||
| pfile-overflow.awk | ||
| pfile-overflow.err | ||
| README | ||
| REGRESS | ||
| rs_underflow.awk | ||
| rs_underflow.in | ||
| rs_underflow.ok | ||
| rstart-rlength.awk | ||
| rstart-rlength.ok | ||
| space.awk | ||
| space.bad | ||
| space.ok | ||
| split-fs-from-array.awk | ||
| split-fs-from-array.ok | ||
| string-conv.awk | ||
| string-conv.bad | ||
| string-conv.ok | ||
| subsep-overflow.awk | ||
| subsep-overflow.ok | ||
| system-status.ok2 | ||
| unary-plus.awk | ||
| unary-plus.bad | ||
| unary-plus.ok | ||
| unicode-fs-rs-1.awk | ||
| unicode-fs-rs-1.in | ||
| unicode-fs-rs-1.ok | ||
| unicode-fs-rs-2.awk | ||
| unicode-fs-rs-2.in | ||
| unicode-fs-rs-2.ok | ||
| unicode-null-match.awk | ||
| unicode-null-match.bad | ||
| unicode-null-match.ok | ||
List of bugs fixed. 1. ofs-rebuild: OFS value used to rebuild the record was incorrect. Fixed August 19, 2014. Revised fix August 2018. 2. system-status: Instead of a floating-point division by 256, use the wait(2) macros to create a reasonable exit status. Fixed March 12, 2016. 3. space: Use provided xisblank() function instead of ispace() for matching [[:blank:]]. 4. a-format: Add POSIX standard %a and %A to supported formats. Check at runtime that this format is available. 5. decr-NF: Decrementing NF did not change $0. This is a decades-old bug. There are interactions with the old and new value of OFS as well. Most of the fix came from the NetBSD awk. 6. string-conv: String conversions of scalars were sticky. Once a conversion to string happened, even with OFMT, that value was used until a new numeric value was assigned, even if OFMT differed from CONVFMT, and also if CONVFMT changed. 7. unary-plus: Unary plus on a string constant returned the string. Instead, it should convert the value to numeric and give that value. 8. concat-assign-same: Concatenation previously evaluated both sides of the expression before doing its work, which, since assign() evaluates to the cell being assigned to, meant that expressions like "print (a = 1) (a = 2)" would print "22" rather than "12". 9. missing-precision: When using the format string "%*s", the precision argument was used without checking if it was present first. 10. missing-precision: When using the format string "%*s", the precision argument was used without checking if it was present first. 11. fmt-overflow: The buffer used for OFMT/CONVFMT conversions was written to with sprintf(), which meant that some conversions could write past the end. 12. numeric-subsep, numeric-fs, numeric-output-seps, numerics-rs: If SUBSEP, FS, RS, OFS, or ORS were set to a numeric value, then their string values wouldn't always be generated before being needed. 13. subsep-overflow: The length of SUBSEP needs to be rechecked after calling execute(), in case SUBSEP itself has been changed. 14. split-fs-from-array: If the third argument to split() comes from the array passed as the second argument, then split() would previously read from the freed memory and possibly produce incorrect results (depending on the system's malloc()/free() behaviour.) 15. getline-numeric: The `getline xx < file' syntax did not check if values were numeric, in discordance from POSIX. Test case adapted from one posted by Ben Bacarisse <ben.usenet@bsb.me.uk> in comp.lang.awk, January 2019.