diff options
author | Warner Losh <imp@FreeBSD.org> | 2024-05-04 17:06:52 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2024-05-04 17:10:41 +0000 |
commit | 1c25f3fdf3e6b8b2708d5751a9c8f07a117910c6 (patch) | |
tree | 73ffafb10e5f6bfbf789b05dd19b07f98c873a66 /bugs-fixed | |
parent | e8a605e129c627195793393e00f657f0c7b88dad (diff) |
ota: Import One True Awk 20240422 (a3b68e649d2d)vendor/one-true-awk/a3b68e649d2d
Apr 22, 2024:
fixed regex engine gototab reallocation issue that was
introduced during the Nov 24 rewrite. Thanks to Arnold Robbins.
Fixed a scan bug in split in the case the separator is a single
character. thanks to Oguz Ismail for spotting the issue.
Mar 10, 2024:
fixed use-after-free bug in fnematch due to adjbuf invalidating
the pointers to buf. thanks to github user caffe3 for spotting
the issue and providing a fix, and to Miguel Pineiro Jr.
for the alternative fix.
MAX_UTF_BYTES in fnematch has been replaced with awk_mb_cur_max.
thanks to Miguel Pineiro Jr.
Note: This brings in the matchop-deref.* files that were missing (but in
FreeBSD already) and adds system-stauts.ok2. The latter has been deleted
in FreeBSD since it does not fit ATF well. Care must be taken to remove it
before the merge this time.
Sponsored by: Netflix
Diffstat (limited to 'bugs-fixed')
-rwxr-xr-x | bugs-fixed/REGRESS | 2 | ||||
-rw-r--r-- | bugs-fixed/matchop-deref.awk | 11 | ||||
-rw-r--r-- | bugs-fixed/matchop-deref.bad | 2 | ||||
-rw-r--r-- | bugs-fixed/matchop-deref.in | 1 | ||||
-rw-r--r-- | bugs-fixed/matchop-deref.ok | 2 | ||||
-rw-r--r-- | bugs-fixed/system-status.ok2 | 3 |
6 files changed, 20 insertions, 1 deletions
diff --git a/bugs-fixed/REGRESS b/bugs-fixed/REGRESS index acdbeebb6271..30bdc7cd5c0f 100755 --- a/bugs-fixed/REGRESS +++ b/bugs-fixed/REGRESS @@ -27,6 +27,6 @@ do then rm -f $OUT else - echo '++++ $i failed!' + echo "+++ $i failed!" fi done diff --git a/bugs-fixed/matchop-deref.awk b/bugs-fixed/matchop-deref.awk new file mode 100644 index 000000000000..6c066aad911d --- /dev/null +++ b/bugs-fixed/matchop-deref.awk @@ -0,0 +1,11 @@ +function foo() { + return "aaaaaab" +} + +BEGIN { + print match(foo(), "b") +} + +{ + print match(substr($0, 1), "b") +} diff --git a/bugs-fixed/matchop-deref.bad b/bugs-fixed/matchop-deref.bad new file mode 100644 index 000000000000..343ee5c2f6cb --- /dev/null +++ b/bugs-fixed/matchop-deref.bad @@ -0,0 +1,2 @@ +-1 +-1 diff --git a/bugs-fixed/matchop-deref.in b/bugs-fixed/matchop-deref.in new file mode 100644 index 000000000000..0d197e1b6a30 --- /dev/null +++ b/bugs-fixed/matchop-deref.in @@ -0,0 +1 @@ +aaaaaab diff --git a/bugs-fixed/matchop-deref.ok b/bugs-fixed/matchop-deref.ok new file mode 100644 index 000000000000..49019db80789 --- /dev/null +++ b/bugs-fixed/matchop-deref.ok @@ -0,0 +1,2 @@ +7 +7 diff --git a/bugs-fixed/system-status.ok2 b/bugs-fixed/system-status.ok2 new file mode 100644 index 000000000000..f1f631e1cb33 --- /dev/null +++ b/bugs-fixed/system-status.ok2 @@ -0,0 +1,3 @@ +normal status 42 +death by signal status 257 +death by signal with core dump status 262 |