One True AWK (https://github.com/onetrueawk/awk) mirror.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
awk/bugs-fixed
ozan yigit 14c3fe42d2 updated FIXES, added getline corruption tests 11 months ago
..
README Make getline POSIX compliant w.r.t. numeric strings. 4 years ago
REGRESS Add regression script for bugs-fixed directory. 2 years ago
a-format.awk Fix multiple long-standing bugs, improve test suite. 4 years ago
a-format.bad Fix multiple long-standing bugs, improve test suite. 4 years ago
a-format.ok Fix multiple long-standing bugs, improve test suite. 4 years ago
concat-assign-same.awk Fix issues with assigning during concatenation 4 years ago
concat-assign-same.bad Fix issues with assigning during concatenation 4 years ago
concat-assign-same.ok Fix issues with assigning during concatenation 4 years ago
decr-NF.awk Fix multiple long-standing bugs, improve test suite. 4 years ago
decr-NF.bad Fix multiple long-standing bugs, improve test suite. 4 years ago
decr-NF.ok Fix multiple long-standing bugs, improve test suite. 4 years ago
fmt-overflow.awk Protect against overflowing during OFMT/CONVFMT conversions 4 years ago
fmt-overflow.ok Protect against overflowing during OFMT/CONVFMT conversions 4 years ago
fs-overflow.awk Handle numeric FS, RS, OFS, and ORS values 4 years ago
fs-overflow.ok Add regression script for bugs-fixed directory. 2 years ago
getline-corruption.awk updated FIXES, added getline corruption tests 11 months ago
getline-corruption.in updated FIXES, added getline corruption tests 11 months ago
getline-corruption.ok updated FIXES, added getline corruption tests 11 months ago
getline-numeric.awk Make getline POSIX compliant w.r.t. numeric strings. 4 years ago
getline-numeric.bad Simplify getline-numeric input and results. 4 years ago
getline-numeric.in Simplify getline-numeric input and results. 4 years ago
getline-numeric.ok Simplify getline-numeric input and results. 4 years ago
inf-nan-torture.awk Inf and NaN values fixed and printing improved. "This time for sure!" 2 years ago
inf-nan-torture.in Inf and NaN values fixed and printing improved. "This time for sure!" 2 years ago
inf-nan-torture.ok Inf and NaN values fixed and printing improved. "This time for sure!" 2 years ago
missing-precision.awk Check for format character precision argument before using it 4 years ago
missing-precision.ok Add regression script for bugs-fixed directory. 2 years ago
negative-nf.awk Print an error message for negative NF values 4 years ago
negative-nf.ok Add regression script for bugs-fixed directory. 2 years ago
nf-self-assign.awk Rebuild fields when NF is assigned to itself 4 years ago
nf-self-assign.bad Rebuild fields when NF is assigned to itself 4 years ago
nf-self-assign.ok Rebuild fields when NF is assigned to itself 4 years ago
numeric-fs.awk Handle numeric FS, RS, OFS, and ORS values 4 years ago
numeric-fs.ok Handle numeric FS, RS, OFS, and ORS values 4 years ago
numeric-output-seps.awk Handle numeric FS, RS, OFS, and ORS values 4 years ago
numeric-output-seps.bad Handle numeric FS, RS, OFS, and ORS values 4 years ago
numeric-output-seps.ok Handle numeric FS, RS, OFS, and ORS values 4 years ago
numeric-rs.awk Handle numeric FS, RS, OFS, and ORS values 4 years ago
numeric-rs.bad Handle numeric FS, RS, OFS, and ORS values 4 years ago
numeric-rs.ok Handle numeric FS, RS, OFS, and ORS values 4 years ago
numeric-subsep.awk Fix issues with numeric SUBSEP and large SUBSEP values 4 years ago
numeric-subsep.bad Fix issues with numeric SUBSEP and large SUBSEP values 4 years ago
numeric-subsep.ok Fix issues with numeric SUBSEP and large SUBSEP values 4 years ago
ofs-rebuild.awk Fix multiple long-standing bugs, improve test suite. 4 years ago
ofs-rebuild.bad Fix multiple long-standing bugs, improve test suite. 4 years ago
ofs-rebuild.ok Fix multiple long-standing bugs, improve test suite. 4 years ago
pfile-overflow.awk Avoid accessing pfile[] out of bounds on syntax error at EOF. (#90) 2 years ago
pfile-overflow.ok Avoid accessing pfile[] out of bounds on syntax error at EOF. (#90) 2 years ago
rs_underflow.awk Cast to uschar when storing a char in an int that will be used as an index (#88) 2 years ago
rs_underflow.in Cast to uschar when storing a char in an int that will be used as an index (#88) 2 years ago
rs_underflow.ok Cast to uschar when storing a char in an int that will be used as an index (#88) 2 years ago
space.awk Fix multiple long-standing bugs, improve test suite. 4 years ago
space.bad Fix multiple long-standing bugs, improve test suite. 4 years ago
space.ok Fix multiple long-standing bugs, improve test suite. 4 years ago
split-fs-from-array.awk Fix calling split() with a third argument that lives in the target array 4 years ago
split-fs-from-array.ok Fix calling split() with a third argument that lives in the target array 4 years ago
string-conv.awk Fix multiple long-standing bugs, improve test suite. 4 years ago
string-conv.bad Fix multiple long-standing bugs, improve test suite. 4 years ago
string-conv.ok Fix multiple long-standing bugs, improve test suite. 4 years ago
subsep-overflow.awk Fix issues with numeric SUBSEP and large SUBSEP values 4 years ago
subsep-overflow.ok Fix issues with numeric SUBSEP and large SUBSEP values 4 years ago
system-status.awk Fix multiple long-standing bugs, improve test suite. 4 years ago
system-status.bad Fix multiple long-standing bugs, improve test suite. 4 years ago
system-status.ok Fix multiple long-standing bugs, improve test suite. 4 years ago
unary-plus.awk Fix multiple long-standing bugs, improve test suite. 4 years ago
unary-plus.bad Fix multiple long-standing bugs, improve test suite. 4 years ago
unary-plus.ok Fix multiple long-standing bugs, improve test suite. 4 years ago

README

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.