ozan yigit
14c3fe42d2
updated FIXES, added getline corruption tests
2021-11-03 22:34:20 -04:00
Arnold D. Robbins
8909e00b57
Inf and NaN values fixed and printing improved. "This time for sure!"
2020-12-18 11:57:48 +02:00
Todd C. Miller
453ce8642b
Avoid accessing pfile[] out of bounds on syntax error at EOF. ( #90 )
...
When awk reaches EOF parsing the program file, curpfile is incremented.
However, cursource() uses curpfile without checking it against npfile
which can cause an out of bounds access of pfile[] if there is a syntax
error at the end of the program file.
2020-07-29 21:31:29 +03:00
Todd C. Miller
22ee26b925
Cast to uschar when storing a char in an int that will be used as an index ( #88 )
...
* Cast to uschar when storing a char in an int that will be used as an index.
Fixes a heap underflow when the input char has the high bit set and
FS is a regex.
* Add regress test for underflow when RS is a regex and input is 8-bit.
2020-07-29 21:27:45 +03:00
Arnold D. Robbins
b2554a9e3d
Add regression script for bugs-fixed directory.
2020-07-02 21:35:06 +03:00
Arnold D. Robbins
778d21f73b
Simplify getline-numeric input and results.
2019-01-26 20:50:31 +02:00
Arnold D. Robbins
9dbd1f1de3
Make getline POSIX compliant w.r.t. numeric strings.
2019-01-25 12:56:06 +02:00
onetrueawk
79f008e853
Merge branch 'master' into nf-self-assign
2019-01-21 14:20:28 -05:00
onetrueawk
5a8a060bc3
Merge branch 'master' into split-fs-from-array
2019-01-21 14:19:07 -05:00
onetrueawk
10da937340
Merge branch 'master' into subsep
2019-01-21 14:17:57 -05:00
onetrueawk
1d836ff681
Merge branch 'master' into assign-expr
2019-01-21 14:17:03 -05:00
onetrueawk
4f4701e090
Merge branch 'master' into nf-self-assign
2019-01-21 14:09:21 -05:00
onetrueawk
8dfde739e9
Merge branch 'master' into split-fs-from-array
2019-01-21 14:08:25 -05:00
onetrueawk
11c1fc61d5
Merge branch 'master' into subsep
2019-01-21 14:05:24 -05:00
onetrueawk
611f775d8d
Merge branch 'master' into fmt-overflow
2019-01-21 14:02:18 -05:00
onetrueawk
3222d96844
Merge branch 'master' into assign-expr
2019-01-21 14:00:32 -05:00
Cody Peter Mello
179536a516
Print an error message for negative NF values
2018-09-25 21:19:49 -07:00
Cody Peter Mello
6315525dbe
Rebuild fields when NF is assigned to itself
2018-09-23 17:59:52 -07:00
Cody Peter Mello
52566c0aa4
Handle numeric FS, RS, OFS, and ORS values
2018-09-23 17:35:45 -07:00
Cody Peter Mello
d45db5e9d8
Fix calling split() with a third argument that lives in the target array
2018-09-18 15:20:44 -07:00
Cody Peter Mello
97a4b7ed21
Fix issues with numeric SUBSEP and large SUBSEP values
2018-09-17 11:59:04 -07:00
Cody Peter Mello
e26237434f
Fix issues with assigning during concatenation
2018-09-15 01:43:21 -07:00
Cody Peter Mello
e059b3b197
Protect against overflowing during OFMT/CONVFMT conversions
2018-09-14 19:56:34 -07:00
Cody Peter Mello
6cf37e9d15
Check for format character precision argument before using it
2018-09-14 17:34:17 -07:00
Arnold D. Robbins
32093f5bbf
Fix multiple long-standing bugs, improve test suite.
2018-08-22 20:40:26 +03:00