This URL: https://git.catflap.org/onetrueawk/raw-log-html/ ____________________________________________________________________________________________________________ Commit: 5739fd79bcfc75ba7526773d0cf634521f8aca3c URL: https://git.catflap.org/onetrueawk/commit/?id=5739fd79bcfc75ba7526773d0cf634521f8aca3c Author: ozan yigit (Sun 26 Apr 2026 20:42:14 BST) Committer: ozan yigit (Sun 26 Apr 2026 20:42:14 BST) updated. M FIXES M main.c ____________________________________________________________________________________________________________ Commit: 11b1b8ba71b60b4543d28e992c2a04a1163d4b5e URL: https://git.catflap.org/onetrueawk/commit/?id=11b1b8ba71b60b4543d28e992c2a04a1163d4b5e Merge: 61a7c75 b76a79e Author: ozan yigit (Sun 26 Apr 2026 20:25:48 BST) Committer: ozan yigit (Sun 26 Apr 2026 20:25:48 BST) Allard/Millert regex fixes ____________________________________________________________________________________________________________ Commit: b76a79eb25b41665d2c67518d7b8d58d84d8fbe2 URL: https://git.catflap.org/onetrueawk/commit/?id=b76a79eb25b41665d2c67518d7b8d58d84d8fbe2 Author: ozan yigit (Mon 20 Apr 2026 20:27:57 BST) Committer: ozan yigit (Mon 20 Apr 2026 20:27:57 BST) fixed repetition tests for ../a.out M bugs-fixed/repetition-no-atom.ok M bugs-fixed/repetition-overflow.ok ____________________________________________________________________________________________________________ Commit: b972b736dbc13120ae63cd6a8f94232e492dca8d URL: https://git.catflap.org/onetrueawk/commit/?id=b972b736dbc13120ae63cd6a8f94232e492dca8d Author: Todd C. Miller (Thu 2 Apr 2026 23:58:05 BST) Committer: Todd C. Miller (Thu 2 Apr 2026 23:58:05 BST) Prevent integer overflow in regex repetition count Limit the repetition count to 255 like POSIX does. Also avoid a crash when the repetition is the first atom parsed. From Renaud Allard. M b.c A bugs-fixed/repetition-no-atom.awk A bugs-fixed/repetition-no-atom.ok A bugs-fixed/repetition-overflow.awk A bugs-fixed/repetition-overflow.ok ____________________________________________________________________________________________________________ Commit: 61a7c75e225e3035390be32d635545e40d8c5faf URL: https://git.catflap.org/onetrueawk/commit/?id=61a7c75e225e3035390be32d635545e40d8c5faf Author: ozan yigit (Thu 25 Dec 2025 18:41:19 GMT) Committer: ozan yigit (Thu 25 Dec 2025 18:41:19 GMT) adjust version date: 20251225 M main.c ____________________________________________________________________________________________________________ Commit: 2648395d49d54e107b678658ecbaf8ceb8d1e9ff URL: https://git.catflap.org/onetrueawk/commit/?id=2648395d49d54e107b678658ecbaf8ceb8d1e9ff Author: ozan yigit (Thu 25 Dec 2025 18:40:12 GMT) Committer: ozan yigit (Thu 25 Dec 2025 18:40:12 GMT) previously changed/broken rand() implementation restored in run.c M FIXES M run.c ____________________________________________________________________________________________________________ Commit: d7f37646965ee26214da0e1d97f3c1d54349ae2d URL: https://git.catflap.org/onetrueawk/commit/?id=d7f37646965ee26214da0e1d97f3c1d54349ae2d Author: ozan yigit (Tue 5 Aug 2025 05:00:04 BST) Committer: ozan yigit (Tue 5 Aug 2025 05:00:04 BST) adjust version date: 20250804 M main.c ____________________________________________________________________________________________________________ Commit: 04311fef2d9f781ded3ce25a2992eb8c4dc63c3b URL: https://git.catflap.org/onetrueawk/commit/?id=04311fef2d9f781ded3ce25a2992eb8c4dc63c3b Author: ozan yigit (Tue 5 Aug 2025 04:58:55 BST) Committer: ozan yigit (Tue 5 Aug 2025 04:58:55 BST) updated FIXES, including a fix that was unrecorded. M FIXES ____________________________________________________________________________________________________________ Commit: 04b13ebe5fa6b4cc6d22cc84b40ea042d5ab6215 URL: https://git.catflap.org/onetrueawk/commit/?id=04b13ebe5fa6b4cc6d22cc84b40ea042d5ab6215 Author: ozan yigit (Tue 5 Aug 2025 04:58:26 BST) Committer: ozan yigit (Tue 5 Aug 2025 04:58:26 BST) Fix incorrect divisor in rand(). M run.c ____________________________________________________________________________________________________________ Commit: 5b97860d9e7a6cb619ba796e1522c9e5df8b2c5a URL: https://git.catflap.org/onetrueawk/commit/?id=5b97860d9e7a6cb619ba796e1522c9e5df8b2c5a Author: Arnold D. Robbins (Sun 8 Jun 2025 09:33:08 BST) Committer: Arnold D. Robbins (Sun 8 Jun 2025 09:33:08 BST) Fix 46 /= 7 bugaboo. M run.c ____________________________________________________________________________________________________________ Commit: 0eeec2359f4cce389ae4e6163959c1fda3dcb9ad URL: https://git.catflap.org/onetrueawk/commit/?id=0eeec2359f4cce389ae4e6163959c1fda3dcb9ad Author: ozan yigit (Thu 16 Jan 2025 19:24:36 GMT) Committer: ozan yigit (Thu 16 Jan 2025 19:24:36 GMT) adjust version date: 20250116 M main.c ____________________________________________________________________________________________________________ Commit: e533e05deffd621ff5dcf683446ef759ec2949fd URL: https://git.catflap.org/onetrueawk/commit/?id=e533e05deffd621ff5dcf683446ef759ec2949fd Author: ozan yigit (Thu 16 Jan 2025 19:24:09 GMT) Committer: ozan yigit (Thu 16 Jan 2025 19:24:09 GMT) updated. M FIXES ____________________________________________________________________________________________________________ Commit: a212ffa41ce5f177f9486fed31c971d83ef958da URL: https://git.catflap.org/onetrueawk/commit/?id=a212ffa41ce5f177f9486fed31c971d83ef958da Author: ozan yigit (Thu 16 Jan 2025 19:21:57 GMT) Committer: ozan yigit (Thu 16 Jan 2025 19:21:57 GMT) fix error line number mismatch: remove an attempt to manage lineno (decrement if char is newline) in unput, and a hack in yylex to compensate for this behaviour. additional test in T.misc. M lex.c M testdir/T.misc ____________________________________________________________________________________________________________ Commit: 91f35d25cdc9e46efb740c51e2a8b0b0a4dec91a URL: https://git.catflap.org/onetrueawk/commit/?id=91f35d25cdc9e46efb740c51e2a8b0b0a4dec91a Author: ozan yigit (Tue 7 Jan 2025 18:55:32 GMT) Committer: ozan yigit (Tue 7 Jan 2025 18:55:32 GMT) adjust version date: 20250107 M main.c ____________________________________________________________________________________________________________ Commit: 8698bd707fb0fee90700ac516696e87451b6ffc4 URL: https://git.catflap.org/onetrueawk/commit/?id=8698bd707fb0fee90700ac516696e87451b6ffc4 Author: ozan yigit (Tue 7 Jan 2025 18:54:47 GMT) Committer: ozan yigit (Tue 7 Jan 2025 18:54:47 GMT) updated. M FIXES ____________________________________________________________________________________________________________ Commit: f494dcaba37b0cade9b87f7cf4ba6bbff36c9b66 URL: https://git.catflap.org/onetrueawk/commit/?id=f494dcaba37b0cade9b87f7cf4ba6bbff36c9b66 Author: ozan yigit (Tue 7 Jan 2025 18:53:14 GMT) Committer: ozan yigit (Tue 7 Jan 2025 18:53:14 GMT) Fix indirect field specification with non-numeric string eg. $("foo"). This is not illegal. M run.c M testdir/T.errmsg ____________________________________________________________________________________________________________ Commit: cd89968ef5b44ba34df56629c233af959af90c0a URL: https://git.catflap.org/onetrueawk/commit/?id=cd89968ef5b44ba34df56629c233af959af90c0a Author: ozan yigit (Tue 7 Jan 2025 18:52:33 GMT) Committer: ozan yigit (Tue 7 Jan 2025 18:52:33 GMT) fix hex number detection in is_valid_number. M lib.c ____________________________________________________________________________________________________________ Commit: e5451b8a90a6cd4901438d4066dc2609927228d3 URL: https://git.catflap.org/onetrueawk/commit/?id=e5451b8a90a6cd4901438d4066dc2609927228d3 Author: ozan yigit (Sun 5 Jan 2025 01:20:33 GMT) Committer: ozan yigit (Sun 5 Jan 2025 01:20:33 GMT) adjust version date: 20250104 M main.c ____________________________________________________________________________________________________________ Commit: 59a4609d746587eb1216c9e5012a19a3a6267ddf URL: https://git.catflap.org/onetrueawk/commit/?id=59a4609d746587eb1216c9e5012a19a3a6267ddf Author: ozan yigit (Sun 5 Jan 2025 01:20:24 GMT) Committer: ozan yigit (Sun 5 Jan 2025 01:20:24 GMT) updated. M FIXES ____________________________________________________________________________________________________________ Commit: ed43b8f6bf63acdacaaf6788e2ba5f0ec202147c URL: https://git.catflap.org/onetrueawk/commit/?id=ed43b8f6bf63acdacaaf6788e2ba5f0ec202147c Author: ozan yigit (Sun 5 Jan 2025 01:20:04 GMT) Committer: ozan yigit (Sun 5 Jan 2025 01:20:04 GMT) fix issue #249 don't try to read or write a directory M run.c ____________________________________________________________________________________________________________ Commit: 5c261eb19a5e92bb6d68e818cf575524067c1e6a URL: https://git.catflap.org/onetrueawk/commit/?id=5c261eb19a5e92bb6d68e818cf575524067c1e6a Author: Arnold D. Robbins (Tue 20 Aug 2024 07:13:25 BST) Committer: Arnold D. Robbins (Tue 20 Aug 2024 07:13:25 BST) Typo fix in a comment in b.c:resize_gototab. M b.c ____________________________________________________________________________________________________________ Commit: da6229b2983658a38e71cfcd7163d77eda2485c0 URL: https://git.catflap.org/onetrueawk/commit/?id=da6229b2983658a38e71cfcd7163d77eda2485c0 Author: ozan yigit (Sat 3 Aug 2024 00:26:11 BST) Committer: ozan yigit (Sat 3 Aug 2024 00:26:11 BST) adjust version date: 20240728 M main.c ____________________________________________________________________________________________________________ Commit: c655b221636b1944fab353fc4ecb28fb6284c59d URL: https://git.catflap.org/onetrueawk/commit/?id=c655b221636b1944fab353fc4ecb28fb6284c59d Author: ozan yigit (Sat 3 Aug 2024 00:24:44 BST) Committer: ozan yigit (Sat 3 Aug 2024 00:24:44 BST) updated. M FIXES ____________________________________________________________________________________________________________ Commit: 3c2e168a8f794ed61c93131b05fb998d79d155df URL: https://git.catflap.org/onetrueawk/commit/?id=3c2e168a8f794ed61c93131b05fb998d79d155df Author: ozan yigit (Sat 3 Aug 2024 00:20:52 BST) Committer: ozan yigit (Sat 3 Aug 2024 00:20:52 BST) readcvsrec called with the wrong pointers, causing awk to crash when the buffer is reallocated to read longer than 8k csv records. M lib.c ____________________________________________________________________________________________________________ Commit: 0fb991ab7e957d1a464cbdb960a28cec942484b8 URL: https://git.catflap.org/onetrueawk/commit/?id=0fb991ab7e957d1a464cbdb960a28cec942484b8 Author: ozan yigit (Mon 24 Jun 2024 02:42:05 BST) Committer: ozan yigit (Mon 24 Jun 2024 02:42:05 BST) adjust version date: 20240623 M main.c ____________________________________________________________________________________________________________ Commit: 4c6a0eb5d374a752a1d5ac3bcecdf5226afd1285 URL: https://git.catflap.org/onetrueawk/commit/?id=4c6a0eb5d374a752a1d5ac3bcecdf5226afd1285 Author: ozan yigit (Mon 24 Jun 2024 02:41:39 BST) Committer: ozan yigit (Mon 24 Jun 2024 02:41:39 BST) updated. M FIXES ____________________________________________________________________________________________________________ Commit: 850a7c1f12038114231bdeb2710d5383994b04e6 URL: https://git.catflap.org/onetrueawk/commit/?id=850a7c1f12038114231bdeb2710d5383994b04e6 Merge: acde9cd 1ad43a5 Author: ozan yigit (Mon 24 Jun 2024 02:15:09 BST) Committer: ozan yigit (Mon 24 Jun 2024 02:15:09 BST) fix filesystem-status-test for openbsd ____________________________________________________________________________________________________________ Commit: acde9cddfda6e49d5093c6deee0076c6415d6ded URL: https://git.catflap.org/onetrueawk/commit/?id=acde9cddfda6e49d5093c6deee0076c6415d6ded Merge: 5dab287 e9530b7 Author: ozan yigit (Mon 24 Jun 2024 02:13:57 BST) Committer: ozan yigit (Mon 24 Jun 2024 02:13:57 BST) rewrite of if-else chain as switch ____________________________________________________________________________________________________________ Commit: e9530b76f3c6b264732e87fa56bf39737792cb19 URL: https://git.catflap.org/onetrueawk/commit/?id=e9530b76f3c6b264732e87fa56bf39737792cb19 Author: Andrew Sukach (Wed 12 Jun 2024 19:34:52 BST) Committer: Andrew Sukach (Thu 13 Jun 2024 04:49:41 BST) Rewrite if chain as switch stmt M b.c ____________________________________________________________________________________________________________ Commit: 1ad43a57149dcb71f3cfde6f74c776a454fcbeae URL: https://git.catflap.org/onetrueawk/commit/?id=1ad43a57149dcb71f3cfde6f74c776a454fcbeae Author: Tim van der Molen (Sun 9 Jun 2024 21:06:16 BST) Committer: Tim van der Molen (Sun 9 Jun 2024 21:06:16 BST) Fix the system-status test on OpenBSD /bin/sh on OpenBSD catches SIGHUP, which affects the return value of system() in the test. Use SIGKILL to ensure that the shell is terminated by a signal. M bugs-fixed/system-status.awk M bugs-fixed/system-status.ok M bugs-fixed/system-status.ok2 ____________________________________________________________________________________________________________ Commit: 5dab2871759082fb9037c23af5e9387bb6366e1d URL: https://git.catflap.org/onetrueawk/commit/?id=5dab2871759082fb9037c23af5e9387bb6366e1d Author: ozan yigit (Mon 27 May 2024 20:54:36 BST) Committer: ozan yigit (Mon 27 May 2024 20:54:36 BST) adjust version date: 20240527 M main.c ____________________________________________________________________________________________________________ Commit: 7d562f0dff4db4ea7f7e91f462c4adf552b1b410 URL: https://git.catflap.org/onetrueawk/commit/?id=7d562f0dff4db4ea7f7e91f462c4adf552b1b410 Author: ozan yigit (Mon 27 May 2024 20:54:11 BST) Committer: ozan yigit (Mon 27 May 2024 20:54:11 BST) updated. M FIXES ____________________________________________________________________________________________________________ Commit: 975d8dede8d933b3988a461e08ec7c78baba0603 URL: https://git.catflap.org/onetrueawk/commit/?id=975d8dede8d933b3988a461e08ec7c78baba0603 Merge: f8be48f 64f6da6 Author: ozan yigit (Fri 24 May 2024 16:02:24 BST) Committer: ozan yigit (Fri 24 May 2024 16:02:24 BST) jonathan gray's spelling fixes and other minor cleanups ____________________________________________________________________________________________________________ Commit: 64f6da6a14ca7896718aa30bd564029e59bac6cf URL: https://git.catflap.org/onetrueawk/commit/?id=64f6da6a14ca7896718aa30bd564029e59bac6cf Author: Jonathan Gray (Mon 20 May 2024 06:58:27 BST) Committer: Jonathan Gray (Tue 21 May 2024 12:16:44 BST) remove extern reference for non-existing var M awk.h ____________________________________________________________________________________________________________ Commit: 099a6591ed9fe126cfbfcfd5fdd2f0516f29192a URL: https://git.catflap.org/onetrueawk/commit/?id=099a6591ed9fe126cfbfcfd5fdd2f0516f29192a Author: Jonathan Gray (Mon 20 May 2024 06:57:41 BST) Committer: Jonathan Gray (Tue 21 May 2024 12:16:34 BST) remove prototypes with no matching function M proto.h ____________________________________________________________________________________________________________ Commit: a9ce3af09838cd6cfefedb9b3e37c2089af61be5 URL: https://git.catflap.org/onetrueawk/commit/?id=a9ce3af09838cd6cfefedb9b3e37c2089af61be5 Author: Jonathan Gray (Sun 5 May 2024 06:11:02 BST) Committer: Jonathan Gray (Mon 20 May 2024 06:46:23 BST) fix double word M TODO ____________________________________________________________________________________________________________ Commit: c1866624730abc1720bf9e26d113fd50fa0bd3ab URL: https://git.catflap.org/onetrueawk/commit/?id=c1866624730abc1720bf9e26d113fd50fa0bd3ab Author: Jonathan Gray (Sun 5 May 2024 05:42:46 BST) Committer: Jonathan Gray (Mon 20 May 2024 06:46:17 BST) spelling fixes M FIXES.1e M README.md M bugs-fixed/ofs-rebuild.awk M lex.c M testdir/T.csconcat ____________________________________________________________________________________________________________ Commit: f8be48fc79d6508189794d751e1021b91452f660 URL: https://git.catflap.org/onetrueawk/commit/?id=f8be48fc79d6508189794d751e1021b91452f660 Author: ozan yigit (Sat 4 May 2024 19:10:29 BST) Committer: ozan yigit (Sat 4 May 2024 19:10:29 BST) adjust version date: 20240504 M main.c ____________________________________________________________________________________________________________ Commit: 82b675850e8e91c2eded5bc3cf4c26591b7ccdc9 URL: https://git.catflap.org/onetrueawk/commit/?id=82b675850e8e91c2eded5bc3cf4c26591b7ccdc9 Author: ozan yigit (Sat 4 May 2024 19:09:34 BST) Committer: ozan yigit (Sat 4 May 2024 19:09:34 BST) updated. M FIXES ____________________________________________________________________________________________________________ Commit: dbfe4128a4aeada503c3734b132a5e35d48ca85a URL: https://git.catflap.org/onetrueawk/commit/?id=dbfe4128a4aeada503c3734b132a5e35d48ca85a Merge: 829f525 d11b2d1 Author: ozan yigit (Sat 4 May 2024 19:08:35 BST) Committer: ozan yigit (Sat 4 May 2024 19:08:35 BST) more changes to T.argv, resolved conflict. ____________________________________________________________________________________________________________ Commit: d11b2d1a36e92518cea81c717169e2c97e8450d9 URL: https://git.catflap.org/onetrueawk/commit/?id=d11b2d1a36e92518cea81c717169e2c97e8450d9 Author: Todd C. Miller (Wed 1 May 2024 21:36:53 BST) Committer: Todd C. Miller (Sat 4 May 2024 03:25:45 BST) Store the Cell containing ARGV instead of the ARGV table itself. The underlying table (array) may change due to, for example, "delete ARGV". However, the Cell that stores ARGV should not change. Also remove the ENVtab global which is never used outside of envinit(). Fixes issue #229. M lib.c M testdir/T.argv M tran.c ____________________________________________________________________________________________________________ Commit: 829f5258e66609a91efebe72e18d7cd5e80987f9 URL: https://git.catflap.org/onetrueawk/commit/?id=829f5258e66609a91efebe72e18d7cd5e80987f9 Merge: d11704b dd2f1c6 Author: ozan yigit (Fri 3 May 2024 20:50:54 BST) Committer: ozan yigit (Fri 3 May 2024 20:50:54 BST) merge todd's ARGV use-after-free fixes into staging ____________________________________________________________________________________________________________ Commit: dd2f1c63518aa68b606921dd3ccb01db6b9cf31a URL: https://git.catflap.org/onetrueawk/commit/?id=dd2f1c63518aa68b606921dd3ccb01db6b9cf31a Merge: d11704b 1ced796 Author: ozan yigit (Fri 3 May 2024 20:50:25 BST) Committer: ozan yigit (Fri 3 May 2024 20:50:25 BST) Merge branch 'ARGV_use_after_free' of https://github.com/millert/awk into millert-ARGV_use_after_free ____________________________________________________________________________________________________________ Commit: d11704b3c3ce8ce47d4b839529fc54ae7f18bc29 URL: https://git.catflap.org/onetrueawk/commit/?id=d11704b3c3ce8ce47d4b839529fc54ae7f18bc29 Author: Arnold D. Robbins (Fri 3 May 2024 08:32:51 BST) Committer: Arnold D. Robbins (Fri 3 May 2024 08:32:51 BST) Remove g++ compilation warnings. M FIXES M b.c M main.c M makefile M run.c ____________________________________________________________________________________________________________ Commit: 1ced7968ec649e8726ae82bfc98d71a92f11dcae URL: https://git.catflap.org/onetrueawk/commit/?id=1ced7968ec649e8726ae82bfc98d71a92f11dcae Author: Todd C. Miller (Wed 1 May 2024 21:36:53 BST) Committer: Todd C. Miller (Thu 2 May 2024 21:11:11 BST) Store the Cell containing ARGV instead of the ARGV table itself. The underlying table (array) may change due to, for example, "delete ARGV". However, the Cell that stores ARGV should not change. Also remove the ENVtab global which is never used outside of envinit(). Fixes issue #229. M lib.c M testdir/T.argv M tran.c ____________________________________________________________________________________________________________ Commit: a3b68e649d2da36d19d78106134d1114f06b56e1 URL: https://git.catflap.org/onetrueawk/commit/?id=a3b68e649d2da36d19d78106134d1114f06b56e1 Author: ozan yigit (Mon 22 Apr 2024 05:38:57 BST) Committer: ozan yigit (Mon 22 Apr 2024 05:38:57 BST) adjust version date: 20240422 M main.c ____________________________________________________________________________________________________________ Commit: 11332a42e59f40f0b06760515e8e0bc7364bfc14 URL: https://git.catflap.org/onetrueawk/commit/?id=11332a42e59f40f0b06760515e8e0bc7364bfc14 Author: ozan yigit (Mon 22 Apr 2024 05:37:46 BST) Committer: ozan yigit (Mon 22 Apr 2024 05:37:46 BST) scan bug [newline] in split in the case the separator is a single character. M run.c ____________________________________________________________________________________________________________ Commit: ae724691436df6353bd7732d6255eb931b075daf URL: https://git.catflap.org/onetrueawk/commit/?id=ae724691436df6353bd7732d6255eb931b075daf Author: ozan yigit (Mon 22 Apr 2024 05:32:24 BST) Committer: ozan yigit (Mon 22 Apr 2024 05:32:24 BST) fixed a gototab bug that caused unnecessary reallocation. thanks Arnold. M b.c ____________________________________________________________________________________________________________ Commit: bc425258e854c1a09ce3dfabf72c9ba4f9a33efb URL: https://git.catflap.org/onetrueawk/commit/?id=bc425258e854c1a09ce3dfabf72c9ba4f9a33efb Author: ozan yigit (Mon 22 Apr 2024 05:30:14 BST) Committer: ozan yigit (Mon 22 Apr 2024 05:30:14 BST) updated. M FIXES ____________________________________________________________________________________________________________ Commit: 2bab10b60b3f4d3bbefdcb60410655f317d1a452 URL: https://git.catflap.org/onetrueawk/commit/?id=2bab10b60b3f4d3bbefdcb60410655f317d1a452 Author: Arnold D. Robbins (Thu 14 Mar 2024 12:25:30 GMT) Committer: Arnold D. Robbins (Thu 14 Mar 2024 12:25:30 GMT) Fix a compiler warning in run.c:do_sub. M run.c ____________________________________________________________________________________________________________ Commit: 4d46214525a3b75879ad56fb0105ee01afa7c9dd URL: https://git.catflap.org/onetrueawk/commit/?id=4d46214525a3b75879ad56fb0105ee01afa7c9dd Author: ozan yigit (Mon 11 Mar 2024 23:55:50 GMT) Committer: ozan yigit (Mon 11 Mar 2024 23:55:50 GMT) adjust version date: 20240311 M main.c ____________________________________________________________________________________________________________ Commit: eb57744daf460cc9149c731a4448c52d476798eb URL: https://git.catflap.org/onetrueawk/commit/?id=eb57744daf460cc9149c731a4448c52d476798eb Author: ozan yigit (Mon 11 Mar 2024 23:54:41 GMT) Committer: ozan yigit (Mon 11 Mar 2024 23:54:41 GMT) fix error messages. M bugs-fixed/REGRESS ____________________________________________________________________________________________________________ Commit: b1d9d2818b21df8234d305b91d2c8e21bea78b6b URL: https://git.catflap.org/onetrueawk/commit/?id=b1d9d2818b21df8234d305b91d2c8e21bea78b6b Author: ozan yigit (Mon 11 Mar 2024 23:54:10 GMT) Committer: ozan yigit (Mon 11 Mar 2024 23:54:10 GMT) updated. M FIXES ____________________________________________________________________________________________________________ Commit: 77c8ffa70db4e9819881ec676d3f13f550d02055 URL: https://git.catflap.org/onetrueawk/commit/?id=77c8ffa70db4e9819881ec676d3f13f550d02055 Author: ozan yigit (Mon 11 Mar 2024 23:46:47 GMT) Committer: ozan yigit (Mon 11 Mar 2024 23:46:47 GMT) fix for fnematch use-after-free bug resulting from adjbuf invalidating the pointers to buf. this is Miguel Pineiro Jr.'s code. thanks to github user caffe for spotting this. this code demonstrates the problem: printf "%8192s\n" | tr " " "=" | ./a.out 'BEGIN{RS="th[^h]+"}{}' MAX_UTF_BYTES in fnematch has been replaced with awk_mb_cur_max. M b.c ____________________________________________________________________________________________________________ Commit: 6a07a6d3bb6313714625f667470290e71545b270 URL: https://git.catflap.org/onetrueawk/commit/?id=6a07a6d3bb6313714625f667470290e71545b270 Author: Arnold D. Robbins (Mon 5 Feb 2024 06:49:22 GMT) Committer: Arnold D. Robbins (Mon 5 Feb 2024 06:49:22 GMT) Fix some typos in b.c; Improve prose in README.md and FIXES. M FIXES M README.md M b.c ____________________________________________________________________________________________________________ Commit: ee8484a4a2cb6ac3b263f4da0fe83cabf8683ddb URL: https://git.catflap.org/onetrueawk/commit/?id=ee8484a4a2cb6ac3b263f4da0fe83cabf8683ddb Author: Arnold D. Robbins (Mon 22 Jan 2024 05:45:31 GMT) Committer: Arnold D. Robbins (Mon 22 Jan 2024 05:45:31 GMT) Restore ability to compile with g++. M FIXES M b.c M main.c M run.c ____________________________________________________________________________________________________________ Commit: 908be9c222c0b7da4bcc3b8724ebb11996993a69 URL: https://git.catflap.org/onetrueawk/commit/?id=908be9c222c0b7da4bcc3b8724ebb11996993a69 Author: ozan yigit (Thu 28 Dec 2023 19:53:25 GMT) Committer: ozan yigit (Thu 28 Dec 2023 19:57:30 GMT) fix for matchop dereferencing a pointer x->sval after freeing x. this bug was introduced with UTF-8 support changes. example: $ echo aaaaaab | ./a.out '{print match(substr($0, 1), "b")}' -1 M run.c M testdir/T.overflow M testdir/T.split ____________________________________________________________________________________________________________ Commit: 04f69eaf0b99d6c0ca65115973830218ba8a2b72 URL: https://git.catflap.org/onetrueawk/commit/?id=04f69eaf0b99d6c0ca65115973830218ba8a2b72 Author: ozan yigit (Thu 28 Dec 2023 19:51:49 GMT) Committer: ozan yigit (Thu 28 Dec 2023 19:51:49 GMT) test for matchop dereference bug A bugs-fixed/matchop-deref.awk A bugs-fixed/matchop-deref.bad A bugs-fixed/matchop-deref.in A bugs-fixed/matchop-deref.ok ____________________________________________________________________________________________________________ Commit: 08fa2b8c53138ee1162a2b9be78e192adcce26ec URL: https://git.catflap.org/onetrueawk/commit/?id=08fa2b8c53138ee1162a2b9be78e192adcce26ec Author: ozan yigit (Thu 28 Dec 2023 19:49:20 GMT) Committer: ozan yigit (Thu 28 Dec 2023 19:49:20 GMT) adjust version date: 20231228 Fix inconsistent handling of --csv and FS set via -v. M main.c ____________________________________________________________________________________________________________ Commit: b7461b63f231d2d45a5309e6ee207276e7c44a98 URL: https://git.catflap.org/onetrueawk/commit/?id=b7461b63f231d2d45a5309e6ee207276e7c44a98 Author: ozan yigit (Thu 28 Dec 2023 19:48:42 GMT) Committer: ozan yigit (Thu 28 Dec 2023 19:48:42 GMT) cast to int for isspace, isalnum et al. M b.c M lib.c ____________________________________________________________________________________________________________ Commit: fcc0e7b0f8eb8bdaf909b03f5b4d0f0833cf4292 URL: https://git.catflap.org/onetrueawk/commit/?id=fcc0e7b0f8eb8bdaf909b03f5b4d0f0833cf4292 Author: ozan yigit (Thu 28 Dec 2023 19:45:44 GMT) Committer: ozan yigit (Thu 28 Dec 2023 19:45:44 GMT) updated. M FIXES ____________________________________________________________________________________________________________ Commit: 8424e93ad3e63cdfda1ae34e984691c3fe879175 URL: https://git.catflap.org/onetrueawk/commit/?id=8424e93ad3e63cdfda1ae34e984691c3fe879175 Author: ozan yigit (Tue 28 Nov 2023 04:31:28 GMT) Committer: ozan yigit (Tue 28 Nov 2023 04:31:28 GMT) comment out print stmt for prog.s M testdir/T.csv ____________________________________________________________________________________________________________ Commit: dbf7cbed8645e65df5bba0c83b566e2bd96e63b6 URL: https://git.catflap.org/onetrueawk/commit/?id=dbf7cbed8645e65df5bba0c83b566e2bd96e63b6 Author: ozan yigit (Tue 28 Nov 2023 04:27:44 GMT) Committer: ozan yigit (Tue 28 Nov 2023 04:27:44 GMT) adjust version date: 20231127 M main.c ____________________________________________________________________________________________________________ Commit: 5b55b5f48289e2e3613647d6de42e7b74284c391 URL: https://git.catflap.org/onetrueawk/commit/?id=5b55b5f48289e2e3613647d6de42e7b74284c391 Author: ozan yigit (Tue 28 Nov 2023 04:26:49 GMT) Committer: ozan yigit (Tue 28 Nov 2023 04:26:49 GMT) updated with the latest fixes M FIXES ____________________________________________________________________________________________________________ Commit: a9642137999b3cefaca03d53e6f42b0a458fa13b URL: https://git.catflap.org/onetrueawk/commit/?id=a9642137999b3cefaca03d53e6f42b0a458fa13b Author: ozan yigit (Tue 28 Nov 2023 04:13:53 GMT) Committer: ozan yigit (Tue 28 Nov 2023 04:13:53 GMT) Wilbert van der Poel's fixes to inconsistent handling of -F and --csv. M lib.c M main.c M testdir/T.csv ____________________________________________________________________________________________________________ Commit: 0096fa60008346f24de36064930c911ced766961 URL: https://git.catflap.org/onetrueawk/commit/?id=0096fa60008346f24de36064930c911ced766961 Author: Arnold D. Robbins (Mon 27 Nov 2023 16:21:03 GMT) Committer: Arnold D. Robbins (Mon 27 Nov 2023 16:21:03 GMT) Fix after review comment. M run.c ____________________________________________________________________________________________________________ Commit: 230a480b2b1bae274f2c46294a8347df664a0016 URL: https://git.catflap.org/onetrueawk/commit/?id=230a480b2b1bae274f2c46294a8347df664a0016 Author: Arnold D. Robbins (Mon 27 Nov 2023 04:54:35 GMT) Committer: Arnold D. Robbins (Mon 27 Nov 2023 04:54:35 GMT) Fix exit status of system on MacOS. M bugs-fixed/REGRESS A bugs-fixed/system-status.ok2 M run.c ____________________________________________________________________________________________________________ Commit: fbd1d5b712e27a9bb527e39ed6e9bf3b9afbb1df URL: https://git.catflap.org/onetrueawk/commit/?id=fbd1d5b712e27a9bb527e39ed6e9bf3b9afbb1df Author: ozan yigit (Fri 24 Nov 2023 13:34:47 GMT) Committer: ozan yigit (Fri 24 Nov 2023 13:34:47 GMT) adjust version date. M main.c ____________________________________________________________________________________________________________ Commit: 08544f61c0b92b0f4ab0963369b1b2d1c8a82db2 URL: https://git.catflap.org/onetrueawk/commit/?id=08544f61c0b92b0f4ab0963369b1b2d1c8a82db2 Author: ozan yigit (Fri 24 Nov 2023 13:33:38 GMT) Committer: ozan yigit (Fri 24 Nov 2023 13:33:38 GMT) fix issue #199: gototab improvements M FIXES ____________________________________________________________________________________________________________ Commit: 1c424b1b4d5931f2a4b87b6f0f75827bc53ff9d7 URL: https://git.catflap.org/onetrueawk/commit/?id=1c424b1b4d5931f2a4b87b6f0f75827bc53ff9d7 Author: Arnold D. Robbins (Fri 24 Nov 2023 08:49:41 GMT) Committer: Arnold D. Robbins (Fri 24 Nov 2023 08:49:41 GMT) Initialize realloced memory to zero. M b.c ____________________________________________________________________________________________________________ Commit: 35d462741379ef4616d67ade48058a5e3490f77e URL: https://git.catflap.org/onetrueawk/commit/?id=35d462741379ef4616d67ade48058a5e3490f77e Merge: 583e894 0da7e53 Author: Arnold D. Robbins (Fri 24 Nov 2023 06:52:07 GMT) Committer: Arnold D. Robbins (Fri 24 Nov 2023 06:52:07 GMT) Merge branch 'master' into improve-gototab ____________________________________________________________________________________________________________ Commit: 0da7e5331dce8d2c74b5de473a0659d4e2fb30a2 URL: https://git.catflap.org/onetrueawk/commit/?id=0da7e5331dce8d2c74b5de473a0659d4e2fb30a2 Author: ozan yigit (Thu 23 Nov 2023 19:14:44 GMT) Committer: ozan yigit (Thu 23 Nov 2023 19:14:44 GMT) cleanup of the new test for issue #169 M testdir/T.misc ____________________________________________________________________________________________________________ Commit: 583e89479f9b358005a328c999cf1555d27f3340 URL: https://git.catflap.org/onetrueawk/commit/?id=583e89479f9b358005a328c999cf1555d27f3340 Merge: 345f907 b84620a Author: Arnold D. Robbins (Thu 23 Nov 2023 17:21:50 GMT) Committer: Arnold D. Robbins (Thu 23 Nov 2023 17:21:50 GMT) Merge branch 'master' into improve-gototab ____________________________________________________________________________________________________________ Commit: b84620a7b5c89e84ec76821ba3fd31d70b29ee7b URL: https://git.catflap.org/onetrueawk/commit/?id=b84620a7b5c89e84ec76821ba3fd31d70b29ee7b Author: Arnold D. Robbins (Thu 23 Nov 2023 17:20:45 GMT) Committer: Arnold D. Robbins (Thu 23 Nov 2023 17:20:45 GMT) Fix issue #147. Update FIXES and main.c version. M FIXES M main.c M run.c ____________________________________________________________________________________________________________ Commit: ad444edf7b9d72d9c1025764cb76079b6cc84661 URL: https://git.catflap.org/onetrueawk/commit/?id=ad444edf7b9d72d9c1025764cb76079b6cc84661 Author: Arnold D. Robbins (Thu 23 Nov 2023 17:13:04 GMT) Committer: Arnold D. Robbins (Thu 23 Nov 2023 17:13:04 GMT) Integrate fix from Issue #169. M lex.c M testdir/T.misc ____________________________________________________________________________________________________________ Commit: 345f907c404ff05165834601009835a42c90463d URL: https://git.catflap.org/onetrueawk/commit/?id=345f907c404ff05165834601009835a42c90463d Merge: 12793c0 ad4249e Author: Arnold D. Robbins (Mon 20 Nov 2023 20:04:23 GMT) Committer: Arnold D. Robbins (Mon 20 Nov 2023 20:04:23 GMT) Merge branch 'master' into improve-gototab ____________________________________________________________________________________________________________ Commit: ad4249ec70c04690a797a8d8310b1d4ee69a357b URL: https://git.catflap.org/onetrueawk/commit/?id=ad4249ec70c04690a797a8d8310b1d4ee69a357b Author: ozan yigit (Mon 20 Nov 2023 15:48:24 GMT) Committer: ozan yigit (Mon 20 Nov 2023 15:48:24 GMT) adjusted version date. M main.c ____________________________________________________________________________________________________________ Commit: 5e82404389a0486bad6221ecd00e714fa3e02630 URL: https://git.catflap.org/onetrueawk/commit/?id=5e82404389a0486bad6221ecd00e714fa3e02630 Author: ozan yigit (Mon 20 Nov 2023 15:47:31 GMT) Committer: ozan yigit (Mon 20 Nov 2023 15:47:31 GMT) updated for the latest fixes M FIXES ____________________________________________________________________________________________________________ Commit: caaef8966daabbe96446fac087f7fc33d59511e1 URL: https://git.catflap.org/onetrueawk/commit/?id=caaef8966daabbe96446fac087f7fc33d59511e1 Merge: 9e254e5 546c2b5 Author: ozan yigit (Fri 17 Nov 2023 20:02:25 GMT) Committer: ozan yigit (Fri 17 Nov 2023 20:02:25 GMT) merge miguel's rewrite of fnematch into staging ____________________________________________________________________________________________________________ Commit: 546c2b5c357f78cd2a9500e39baa90bae4a32601 URL: https://git.catflap.org/onetrueawk/commit/?id=546c2b5c357f78cd2a9500e39baa90bae4a32601 Merge: 9e254e5 904af56 Author: ozan yigit (Fri 17 Nov 2023 20:01:28 GMT) Committer: ozan yigit (Fri 17 Nov 2023 20:01:28 GMT) miguel's rewrite of fnematch ____________________________________________________________________________________________________________ Commit: 12793c04b28c84e0af830c81ea51c90ab65eb585 URL: https://git.catflap.org/onetrueawk/commit/?id=12793c04b28c84e0af830c81ea51c90ab65eb585 Merge: cf7cbbb 9e254e5 Author: Arnold D. Robbins (Fri 17 Nov 2023 10:51:20 GMT) Committer: Arnold D. Robbins (Fri 17 Nov 2023 10:51:20 GMT) Merge branch 'master' into improve-gototab ____________________________________________________________________________________________________________ Commit: 9e254e503f844e122870e9488db3d7b0233e554c URL: https://git.catflap.org/onetrueawk/commit/?id=9e254e503f844e122870e9488db3d7b0233e554c Author: ozan yigit (Thu 16 Nov 2023 19:56:49 GMT) Committer: ozan yigit (Thu 16 Nov 2023 19:56:49 GMT) adjusted version date. M main.c ____________________________________________________________________________________________________________ Commit: f8fb1503a2137625dae68844404456e09e996cee URL: https://git.catflap.org/onetrueawk/commit/?id=f8fb1503a2137625dae68844404456e09e996cee Author: ozan yigit (Thu 16 Nov 2023 19:45:58 GMT) Committer: ozan yigit (Thu 16 Nov 2023 19:45:58 GMT) updated for the latest fixes M FIXES ____________________________________________________________________________________________________________ Commit: 4701f97675afe0425e0480ea6e86504110121a28 URL: https://git.catflap.org/onetrueawk/commit/?id=4701f97675afe0425e0480ea6e86504110121a28 Merge: c6a474b 6e222fe Author: ozan yigit (Wed 15 Nov 2023 21:27:01 GMT) Committer: ozan yigit (Wed 15 Nov 2023 21:27:01 GMT) arnold's test fixes ____________________________________________________________________________________________________________ Commit: c6a474b1744122b5631c020b70616845353f8576 URL: https://git.catflap.org/onetrueawk/commit/?id=c6a474b1744122b5631c020b70616845353f8576 Merge: e3c63b9 144b14f Author: ozan yigit (Wed 15 Nov 2023 21:21:43 GMT) Committer: ozan yigit (Wed 15 Nov 2023 21:21:43 GMT) miguel's consolidation of sub/gsub. ____________________________________________________________________________________________________________ Commit: 904af5677d1886c947d0cd78fa63f739a8c9a394 URL: https://git.catflap.org/onetrueawk/commit/?id=904af5677d1886c947d0cd78fa63f739a8c9a394 Author: Miguel Pineiro Jr (Wed 15 Nov 2023 17:52:20 GMT) Committer: Miguel Pineiro Jr (Wed 15 Nov 2023 20:34:31 GMT) Fix fnematch utf8 support M b.c ____________________________________________________________________________________________________________ Commit: e3c63b9e62e404ad7aa2ac3780503e0a6ace6d2f URL: https://git.catflap.org/onetrueawk/commit/?id=e3c63b9e62e404ad7aa2ac3780503e0a6ace6d2f Author: ozan yigit (Wed 15 Nov 2023 20:25:20 GMT) Committer: ozan yigit (Wed 15 Nov 2023 20:25:20 GMT) replace gcc with cc M bugs-fixed/REGRESS M makefile M testdir/Compare.tt M testdir/REGRESS ____________________________________________________________________________________________________________ Commit: 9acc5109412df07a977cdedb4537ebd90a38da9f URL: https://git.catflap.org/onetrueawk/commit/?id=9acc5109412df07a977cdedb4537ebd90a38da9f Author: ozan yigit (Wed 15 Nov 2023 20:24:08 GMT) Committer: ozan yigit (Wed 15 Nov 2023 20:24:08 GMT) man page update for 8-bit locales. thanks arnold M awk.1 ____________________________________________________________________________________________________________ Commit: 6e222fe5c0df10f406dd61a9ae587a1d86bd5d3c URL: https://git.catflap.org/onetrueawk/commit/?id=6e222fe5c0df10f406dd61a9ae587a1d86bd5d3c Author: Arnold D. Robbins (Sat 11 Nov 2023 18:28:43 GMT) Committer: Arnold D. Robbins (Sat 11 Nov 2023 18:28:43 GMT) Fix two incorrect test cases. M testdir/T.csv M testdir/T.flags ____________________________________________________________________________________________________________ Commit: 144b14f99420a9ac9a63d177c11e99bec8b45b64 URL: https://git.catflap.org/onetrueawk/commit/?id=144b14f99420a9ac9a63d177c11e99bec8b45b64 Author: Miguel Pineiro Jr (Tue 7 Nov 2023 03:12:36 GMT) Committer: Miguel Pineiro Jr (Tue 7 Nov 2023 04:24:51 GMT) Consolidate sub and gsub in dosub In addition to the deduplicative benefits, several uses-after-free are fixed: function d() { delete a } BEGIN { sub(/./, d(), a[0]) } function d() { delete a } BEGIN { sub(d(), "repl", a[0]) } function d() { delete a } BEGIN { gsub(/./, d(), a[0]) } function d() { delete a } BEGIN { gsub(d(), "repl", a[0]) } When not matching globally, dosub breaks the loop immediately after the lone replacement (a significant speedup in some cases). M maketab.c M proto.h M run.c ____________________________________________________________________________________________________________ Commit: cf7cbbb1583eed2c961366f6ab62f14548052091 URL: https://git.catflap.org/onetrueawk/commit/?id=cf7cbbb1583eed2c961366f6ab62f14548052091 Merge: 11b2b7b d801514 Author: Arnold D. Robbins (Tue 31 Oct 2023 07:15:53 GMT) Committer: Arnold D. Robbins (Tue 31 Oct 2023 07:15:53 GMT) Merge branch 'master' into improve-gototab ____________________________________________________________________________________________________________ Commit: d801514094d1140dfc9f8571b9821082ddddf107 URL: https://git.catflap.org/onetrueawk/commit/?id=d801514094d1140dfc9f8571b9821082ddddf107 Author: ozan yigit (Tue 31 Oct 2023 00:07:33 GMT) Committer: ozan yigit (Tue 31 Oct 2023 00:07:33 GMT) adjusted version date. M main.c ____________________________________________________________________________________________________________ Commit: a2d336f0f11d850b29bc14852e51a5f406db9091 URL: https://git.catflap.org/onetrueawk/commit/?id=a2d336f0f11d850b29bc14852e51a5f406db9091 Author: ozan yigit (Tue 31 Oct 2023 00:07:18 GMT) Committer: ozan yigit (Tue 31 Oct 2023 00:07:18 GMT) todd miller's fixes M FIXES ____________________________________________________________________________________________________________ Commit: 2a3ee1c2e3e1ea6477ca8715bf1531dbf34367a1 URL: https://git.catflap.org/onetrueawk/commit/?id=2a3ee1c2e3e1ea6477ca8715bf1531dbf34367a1 Merge: 28d4561 c7361cd Author: ozan yigit (Mon 30 Oct 2023 23:59:11 GMT) Committer: ozan yigit (Mon 30 Oct 2023 23:59:11 GMT) Merge branch 'millert-substr_overflow' into staging ____________________________________________________________________________________________________________ Commit: c7361cd72fa0032855b87f2a092cda0c750feb5a URL: https://git.catflap.org/onetrueawk/commit/?id=c7361cd72fa0032855b87f2a092cda0c750feb5a Merge: 28d4561 56dbbc2 Author: ozan yigit (Mon 30 Oct 2023 23:58:20 GMT) Committer: ozan yigit (Mon 30 Oct 2023 23:58:20 GMT) todd miller's substr fix for buffer overflow with utf-8 strings ____________________________________________________________________________________________________________ Commit: 28d4561613bceda26f93833333cdd3317d416243 URL: https://git.catflap.org/onetrueawk/commit/?id=28d4561613bceda26f93833333cdd3317d416243 Merge: 0575fbc 9666b77 Author: ozan yigit (Mon 30 Oct 2023 23:57:33 GMT) Committer: ozan yigit (Mon 30 Oct 2023 23:57:33 GMT) Merge branch 'millert-big_endian_fix' into staging ____________________________________________________________________________________________________________ Commit: 9666b77b369e342353c29eed5415123f58e58948 URL: https://git.catflap.org/onetrueawk/commit/?id=9666b77b369e342353c29eed5415123f58e58948 Merge: 0575fbc 0048c96 Author: ozan yigit (Mon 30 Oct 2023 23:56:09 GMT) Committer: ozan yigit (Mon 30 Oct 2023 23:56:09 GMT) todd miller's fix for big-endian systems, and out of bounds read for empty CCL. ____________________________________________________________________________________________________________ Commit: 0575fbc687f4ce8de6e25848350069a44bbe48ff URL: https://git.catflap.org/onetrueawk/commit/?id=0575fbc687f4ce8de6e25848350069a44bbe48ff Merge: b9b8a32 0609870 Author: ozan yigit (Mon 30 Oct 2023 23:55:33 GMT) Committer: ozan yigit (Mon 30 Oct 2023 23:55:33 GMT) Merge branch 'millert-multibyte_locale' into staging ____________________________________________________________________________________________________________ Commit: 0609870c7a2ffb86ad2fe286c20ddd6bc9908e28 URL: https://git.catflap.org/onetrueawk/commit/?id=0609870c7a2ffb86ad2fe286c20ddd6bc9908e28 Merge: b9b8a32 1087d46 Author: ozan yigit (Mon 30 Oct 2023 23:54:12 GMT) Committer: ozan yigit (Mon 30 Oct 2023 23:54:12 GMT) todd miller's change to disable utf-8 for non-multibyte locales such as C or POSIX ____________________________________________________________________________________________________________ Commit: b9b8a321d5353f8b43b22bb0595fa2de137530aa URL: https://git.catflap.org/onetrueawk/commit/?id=b9b8a321d5353f8b43b22bb0595fa2de137530aa Merge: f38a02c d9ad01c Author: ozan yigit (Mon 30 Oct 2023 23:53:01 GMT) Committer: ozan yigit (Mon 30 Oct 2023 23:53:01 GMT) Merge branch 'millert-extra_int_i' into staging ____________________________________________________________________________________________________________ Commit: d9ad01cd66f6f126bb86a12016e5f4408e35b0c6 URL: https://git.catflap.org/onetrueawk/commit/?id=d9ad01cd66f6f126bb86a12016e5f4408e35b0c6 Merge: f38a02c 14d0e87 Author: ozan yigit (Mon 30 Oct 2023 23:52:30 GMT) Committer: ozan yigit (Mon 30 Oct 2023 23:52:30 GMT) todd miller's code cleanup ____________________________________________________________________________________________________________ Commit: 56dbbc2f99f6e70c98db254e255fbe450bf4e7f0 URL: https://git.catflap.org/onetrueawk/commit/?id=56dbbc2f99f6e70c98db254e255fbe450bf4e7f0 Author: Todd C. Miller (Sat 28 Oct 2023 23:17:48 BST) Committer: Todd C. Miller (Sat 28 Oct 2023 23:17:48 BST) substr: fix buffer overflow with utf-8 strings We need to use u8_strlen(), not strlen(), to compute the length. Otherwise, there may be an out of bounds write when writing the NUL terminator to set the length of the substring. M run.c ____________________________________________________________________________________________________________ Commit: 11b2b7b6d5c42ea63f79ce1c1d88264f83cc2155 URL: https://git.catflap.org/onetrueawk/commit/?id=11b2b7b6d5c42ea63f79ce1c1d88264f83cc2155 Author: Arnold D. Robbins (Wed 25 Oct 2023 13:26:30 BST) Committer: Arnold D. Robbins (Wed 25 Oct 2023 13:26:30 BST) Add a missing free of f->gototab. M b.c ____________________________________________________________________________________________________________ Commit: 58dba2799941de8bdd486fcc3dde1b0ad8812c50 URL: https://git.catflap.org/onetrueawk/commit/?id=58dba2799941de8bdd486fcc3dde1b0ad8812c50 Author: Arnold D. Robbins (Mon 16 Oct 2023 09:23:22 BST) Committer: Arnold D. Robbins (Mon 16 Oct 2023 09:23:22 BST) Remove limit on character classes from README.md, now that code is fixed. M README.md ____________________________________________________________________________________________________________ Commit: 25baaf87ddcd93aa8c5f9f0afa8abdd318d6273b URL: https://git.catflap.org/onetrueawk/commit/?id=25baaf87ddcd93aa8c5f9f0afa8abdd318d6273b Author: ozan yigit (Sun 15 Oct 2023 16:27:40 BST) Committer: ozan yigit (Sun 15 Oct 2023 16:27:40 BST) gototab reallocation pulled into resize_gototab M b.c ____________________________________________________________________________________________________________ Commit: fe72348b892774d05e32e53bc42621d37e73362f URL: https://git.catflap.org/onetrueawk/commit/?id=fe72348b892774d05e32e53bc42621d37e73362f Merge: bae27a9 f38a02c Author: Arnold D. Robbins (Sun 15 Oct 2023 04:29:38 BST) Committer: Arnold D. Robbins (Sun 15 Oct 2023 04:29:38 BST) Merge branch 'master' into improve-gototab ____________________________________________________________________________________________________________ Commit: f38a02c8be0c605467cbff2c953a8d1c2cebdebc URL: https://git.catflap.org/onetrueawk/commit/?id=f38a02c8be0c605467cbff2c953a8d1c2cebdebc Author: Arnold D. Robbins (Sun 15 Oct 2023 04:28:43 BST) Committer: Arnold D. Robbins (Sun 15 Oct 2023 04:28:43 BST) Small fix in README.md. M README.md ____________________________________________________________________________________________________________ Commit: bae27a93c1298f3c7fcb1cd10e690c59a4fcc3f1 URL: https://git.catflap.org/onetrueawk/commit/?id=bae27a93c1298f3c7fcb1cd10e690c59a4fcc3f1 Author: Arnold D. Robbins (Sat 14 Oct 2023 18:30:00 BST) Committer: Arnold D. Robbins (Sat 14 Oct 2023 18:30:00 BST) Speed it back up. M b.c ____________________________________________________________________________________________________________ Commit: 220fd4eb0abc25eb923a4f98d34dae3fd63c1b37 URL: https://git.catflap.org/onetrueawk/commit/?id=220fd4eb0abc25eb923a4f98d34dae3fd63c1b37 Author: Arnold D. Robbins (Fri 13 Oct 2023 08:44:08 BST) Committer: Arnold D. Robbins (Fri 13 Oct 2023 08:44:08 BST) Be smarter about clearing a goto table. M b.c ____________________________________________________________________________________________________________ Commit: f4f0b0dd085ee82bfca2d761caeb07a9a5ba8d2c URL: https://git.catflap.org/onetrueawk/commit/?id=f4f0b0dd085ee82bfca2d761caeb07a9a5ba8d2c Author: Arnold D. Robbins (Fri 13 Oct 2023 06:33:34 BST) Committer: Arnold D. Robbins (Fri 13 Oct 2023 06:33:34 BST) Two small fixes. M b.c ____________________________________________________________________________________________________________ Commit: fa355f3eb97cdd89a525d61e4b4118a27fff26f7 URL: https://git.catflap.org/onetrueawk/commit/?id=fa355f3eb97cdd89a525d61e4b4118a27fff26f7 Author: Arnold D. Robbins (Wed 11 Oct 2023 07:01:04 BST) Committer: Arnold D. Robbins (Wed 11 Oct 2023 07:01:04 BST) Track inuse vs. allocated, use bsearch in set_gototab. M awk.h M b.c ____________________________________________________________________________________________________________ Commit: e7ad51dc32aa7b61dfce903c82c82f75b93bfae7 URL: https://git.catflap.org/onetrueawk/commit/?id=e7ad51dc32aa7b61dfce903c82c82f75b93bfae7 Author: Arnold D. Robbins (Tue 10 Oct 2023 19:05:18 BST) Committer: Arnold D. Robbins (Tue 10 Oct 2023 19:05:18 BST) Sort the gototab entries and binary search them. M b.c ____________________________________________________________________________________________________________ Commit: 328f0e4eddc575d7072c17e6082d91bb9851c878 URL: https://git.catflap.org/onetrueawk/commit/?id=328f0e4eddc575d7072c17e6082d91bb9851c878 Author: Arnold D. Robbins (Tue 10 Oct 2023 18:47:17 BST) Committer: Arnold D. Robbins (Tue 10 Oct 2023 18:47:17 BST) First round, dynamically grow entries in a gototab. M awk.h M b.c ____________________________________________________________________________________________________________ Commit: 1087d463e9debc7a984b9b7123e72b3dc70c9819 URL: https://git.catflap.org/onetrueawk/commit/?id=1087d463e9debc7a984b9b7123e72b3dc70c9819 Author: Todd C. Miller (Mon 18 Sep 2023 20:33:19 BST) Committer: Todd C. Miller (Thu 5 Oct 2023 19:41:01 BST) Disable utf-8 for non-multibyte locales, such as C or POSIX. This makes it possible to get the old awk behavior (where chars are bytes) by setting LC_CTYPE to C or POSIX. The value of MB_CUR_MAX is cached since in many cases is actually a function. No attempt is made to support arbitrary locales. If the locale can support multi-byte characters, utf-8 will be used. If not, 8-bit characters are used instead. M awk.h M b.c M main.c M run.c ____________________________________________________________________________________________________________ Commit: d8e4368964e4471a54a755823004f2b1aabc0f80 URL: https://git.catflap.org/onetrueawk/commit/?id=d8e4368964e4471a54a755823004f2b1aabc0f80 Author: ozan yigit (Thu 5 Oct 2023 19:24:12 BST) Committer: ozan yigit (Thu 5 Oct 2023 19:24:12 BST) updated FIXES [fnematch overhaul] M FIXES ____________________________________________________________________________________________________________ Commit: a7c1fbd7799d40577f4ac0fc79791a23df1381ca URL: https://git.catflap.org/onetrueawk/commit/?id=a7c1fbd7799d40577f4ac0fc79791a23df1381ca Author: ozan yigit (Thu 5 Oct 2023 01:24:52 BST) Committer: ozan yigit (Thu 5 Oct 2023 01:24:52 BST) adjusted version date and help string. M main.c ____________________________________________________________________________________________________________ Commit: 857450eb73d087c7f6a377c8f24ba04570fc6cae URL: https://git.catflap.org/onetrueawk/commit/?id=857450eb73d087c7f6a377c8f24ba04570fc6cae Author: ozan yigit (Thu 5 Oct 2023 00:18:44 BST) Committer: ozan yigit (Thu 5 Oct 2023 00:18:44 BST) new tests for arnold's unicode FS/RS and null match fixes A bugs-fixed/unicode-fs-rs-1.awk A bugs-fixed/unicode-fs-rs-1.in A bugs-fixed/unicode-fs-rs-1.ok A bugs-fixed/unicode-fs-rs-2.awk A bugs-fixed/unicode-fs-rs-2.in A bugs-fixed/unicode-fs-rs-2.ok A bugs-fixed/unicode-null-match.awk A bugs-fixed/unicode-null-match.bad A bugs-fixed/unicode-null-match.ok ____________________________________________________________________________________________________________ Commit: 53a653bb2889564a8fe053761dbf41baacfbe92b URL: https://git.catflap.org/onetrueawk/commit/?id=53a653bb2889564a8fe053761dbf41baacfbe92b Author: ozan yigit (Thu 28 Sep 2023 04:21:48 BST) Committer: ozan yigit (Thu 28 Sep 2023 04:21:48 BST) arnold's fix for gsub null match bug with unicode chars M run.c ____________________________________________________________________________________________________________ Commit: 89d12d31ee81163f1810018c3177971ab6b862ce URL: https://git.catflap.org/onetrueawk/commit/?id=89d12d31ee81163f1810018c3177971ab6b862ce Author: Arnold D. Robbins (Sun 24 Sep 2023 16:30:23 BST) Committer: Arnold D. Robbins (Sun 24 Sep 2023 16:30:23 BST) Additional fix in lib.c. M lib.c ____________________________________________________________________________________________________________ Commit: 0048c96e94c732c6fb2ebe50eeb3450c1672fe0f URL: https://git.catflap.org/onetrueawk/commit/?id=0048c96e94c732c6fb2ebe50eeb3450c1672fe0f Author: Todd C. Miller (Thu 21 Sep 2023 18:20:16 BST) Committer: Todd C. Miller (Thu 21 Sep 2023 18:20:16 BST) Use cclenter("") to construct an empty CCL, not tostring(""). We need to store a UTF-32 string, not a UTF-8 string, for consistency with the other CCL code. Fixes an out-of-bounds read of an empty CCL. M b.c ____________________________________________________________________________________________________________ Commit: c625b9713b0144ccfcadd09f7210dcd1fff4b8e1 URL: https://git.catflap.org/onetrueawk/commit/?id=c625b9713b0144ccfcadd09f7210dcd1fff4b8e1 Author: Arnold D. Robbins (Thu 21 Sep 2023 17:39:41 BST) Committer: Arnold D. Robbins (Thu 21 Sep 2023 17:39:41 BST) Restore makefile, final fix in b.c. M b.c M makefile ____________________________________________________________________________________________________________ Commit: c78a04e3f7969c206d199a3460f536c1bfab99a6 URL: https://git.catflap.org/onetrueawk/commit/?id=c78a04e3f7969c206d199a3460f536c1bfab99a6 Author: Arnold D. Robbins (Thu 21 Sep 2023 17:20:29 BST) Committer: Arnold D. Robbins (Thu 21 Sep 2023 17:20:29 BST) Start on rewrite of fnematch. M b.c M makefile ____________________________________________________________________________________________________________ Commit: 75c017ca09a70e14a862f7285cf91bb87ec1f443 URL: https://git.catflap.org/onetrueawk/commit/?id=75c017ca09a70e14a862f7285cf91bb87ec1f443 Author: Todd C. Miller (Tue 19 Sep 2023 00:34:34 BST) Committer: Todd C. Miller (Tue 19 Sep 2023 02:10:06 BST) Fix a bad cast to char * that causes incorrect results on big endian. Now that awk stores chars as int we need to cast the Node * to int *. M b.c ____________________________________________________________________________________________________________ Commit: 14d0e87c4ea81f4bcea409155e3e999a30d32862 URL: https://git.catflap.org/onetrueawk/commit/?id=14d0e87c4ea81f4bcea409155e3e999a30d32862 Author: Todd C. Miller (Mon 18 Sep 2023 16:20:32 BST) Committer: Todd C. Miller (Mon 18 Sep 2023 16:20:32 BST) Use upper scope "int i" scope instead of declaring another in the for loop. M run.c ____________________________________________________________________________________________________________ Commit: c8b4698d57d7b1dc6275fd514fcdf163955e8f67 URL: https://git.catflap.org/onetrueawk/commit/?id=c8b4698d57d7b1dc6275fd514fcdf163955e8f67 Author: ozan yigit (Thu 14 Sep 2023 16:16:07 BST) Committer: ozan yigit (Thu 14 Sep 2023 16:16:07 BST) adjusted version date. M main.c ____________________________________________________________________________________________________________ Commit: 3f04f886187fdde3001a1804d1bc1f5b150f1a41 URL: https://git.catflap.org/onetrueawk/commit/?id=3f04f886187fdde3001a1804d1bc1f5b150f1a41 Author: ozan yigit (Thu 14 Sep 2023 16:14:36 BST) Committer: ozan yigit (Thu 14 Sep 2023 16:14:36 BST) length error in u8_byte2char that set RSTART to -1 for EOL match(str, /$/). M FIXES A bugs-fixed/rstart-rlength.awk A bugs-fixed/rstart-rlength.ok M run.c ____________________________________________________________________________________________________________ Commit: 5b9d0b92a9734854eea52ec1ead5355c62797bdd URL: https://git.catflap.org/onetrueawk/commit/?id=5b9d0b92a9734854eea52ec1ead5355c62797bdd Author: ozan yigit (Mon 11 Sep 2023 15:17:08 BST) Committer: ozan yigit (Mon 11 Sep 2023 15:17:08 BST) updated version string M main.c ____________________________________________________________________________________________________________ Commit: b8937db63bc24a4989e6e76d384e56286c17facf URL: https://git.catflap.org/onetrueawk/commit/?id=b8937db63bc24a4989e6e76d384e56286c17facf Author: ozan yigit (Mon 11 Sep 2023 05:23:08 BST) Committer: ozan yigit (Mon 11 Sep 2023 05:23:08 BST) updated moved/old FIXES. M FIXES.1e ____________________________________________________________________________________________________________ Commit: 0a497bc5a1ad26e21a0e5018e884c7435b112c53 URL: https://git.catflap.org/onetrueawk/commit/?id=0a497bc5a1ad26e21a0e5018e884c7435b112c53 Merge: 13adc25 00d65d8 Author: ozan yigit (Mon 11 Sep 2023 05:22:24 BST) Committer: ozan yigit (Mon 11 Sep 2023 05:22:24 BST) Merge branch 'csv' into staging ____________________________________________________________________________________________________________ Commit: 13adc2564cb9b65123f64d9b130bf8232d4ee348 URL: https://git.catflap.org/onetrueawk/commit/?id=13adc2564cb9b65123f64d9b130bf8232d4ee348 Author: ozan yigit (Sun 10 Sep 2023 00:56:40 BST) Committer: ozan yigit (Sun 10 Sep 2023 00:56:40 BST) updated FIXES and version. M FIXES M main.c ____________________________________________________________________________________________________________ Commit: 1eae6de89dda9f3613ea0ae660e7d5d05b107276 URL: https://git.catflap.org/onetrueawk/commit/?id=1eae6de89dda9f3613ea0ae660e7d5d05b107276 Merge: ddfd88a bfe05fd Author: ozan yigit (Sun 10 Sep 2023 00:20:39 BST) Committer: ozan yigit (Sun 10 Sep 2023 00:20:39 BST) Merge branch 'AtariDreams-fixup' into staging ____________________________________________________________________________________________________________ Commit: ddfd88a55337d1380fc38126326b2cc8d1dfa4cd URL: https://git.catflap.org/onetrueawk/commit/?id=ddfd88a55337d1380fc38126326b2cc8d1dfa4cd Merge: 92aee59 4236e5a Author: ozan yigit (Fri 8 Sep 2023 05:21:09 BST) Committer: ozan yigit (Fri 8 Sep 2023 05:21:09 BST) Merge branch 'mpinjr-fix-re-clobbering' into staging ____________________________________________________________________________________________________________ Commit: 92aee59e6d4a1f052f2bede3f0c8b8e7440512a3 URL: https://git.catflap.org/onetrueawk/commit/?id=92aee59e6d4a1f052f2bede3f0c8b8e7440512a3 Author: ozan yigit (Fri 8 Sep 2023 05:16:59 BST) Committer: ozan yigit (Fri 8 Sep 2023 05:16:59 BST) FS is not set properly when assigned on the command line. see PR#163 for miguel's detailed discussion about savefs(). M lib.c ____________________________________________________________________________________________________________ Commit: 00d65d8b7df77cd7b6797f75fc3380a3024e8251 URL: https://git.catflap.org/onetrueawk/commit/?id=00d65d8b7df77cd7b6797f75fc3380a3024e8251 Author: Arnold D. Robbins (Sun 3 Sep 2023 18:02:06 BST) Committer: Arnold D. Robbins (Sun 3 Sep 2023 18:02:06 BST) In FIXES, remove reference to \U. M FIXES ____________________________________________________________________________________________________________ Commit: 65ccd65ffecc90ab44029f6207e31484780ff0ad URL: https://git.catflap.org/onetrueawk/commit/?id=65ccd65ffecc90ab44029f6207e31484780ff0ad Author: Brian Kernighan (Sun 3 Sep 2023 17:41:45 BST) Committer: Brian Kernighan (Sun 3 Sep 2023 17:41:45 BST) remove ref to \U; it is only lower case. Thanks Arnold. M README.md ____________________________________________________________________________________________________________ Commit: c76017e59eb71b5403d44fb974a83bf71462eb39 URL: https://git.catflap.org/onetrueawk/commit/?id=c76017e59eb71b5403d44fb974a83bf71462eb39 Author: Brian Kernighan (Sun 3 Sep 2023 15:39:49 BST) Committer: Brian Kernighan (Sun 3 Sep 2023 15:39:49 BST) Changes in preparation for publication of the second edition of the Awk book. README.md updated old FIXES moved to FIXES.1e new FIXES that briefly summarizes --csv and utf-8 changes. M FIXES A FIXES.1e M README.md ____________________________________________________________________________________________________________ Commit: 3ddd7b252f8d0dacee2a7556e5ffb0d54bcf4f58 URL: https://git.catflap.org/onetrueawk/commit/?id=3ddd7b252f8d0dacee2a7556e5ffb0d54bcf4f58 Author: Brian Kernighan (Mon 21 Aug 2023 14:46:16 BST) Committer: Brian Kernighan (Mon 21 Aug 2023 14:46:16 BST) clarification of length() function M awk.1 ____________________________________________________________________________________________________________ Commit: 1862ed634c484168ec7b9c5000a15ad0e23e082f URL: https://git.catflap.org/onetrueawk/commit/?id=1862ed634c484168ec7b9c5000a15ad0e23e082f Author: Brian Kernighan (Thu 10 Aug 2023 19:49:28 BST) Committer: Brian Kernighan (Thu 10 Aug 2023 19:49:28 BST) minor awk.1 update M awk.1 M testdir/T.csv ____________________________________________________________________________________________________________ Commit: 9b5913fffba9965972d1a63ce019dc533c0be40c URL: https://git.catflap.org/onetrueawk/commit/?id=9b5913fffba9965972d1a63ce019dc533c0be40c Author: Brian Kernighan (Mon 26 Jun 2023 06:54:12 BST) Committer: Brian Kernighan (Mon 26 Jun 2023 06:54:12 BST) added Arnold"s state machine for handling newlines inside quoted strings in --csv mode. Also fiddled awk.1 man page M lib.c ____________________________________________________________________________________________________________ Commit: 4b1b2d6357efbfbf037409e17e91ccdbbae642c1 URL: https://git.catflap.org/onetrueawk/commit/?id=4b1b2d6357efbfbf037409e17e91ccdbbae642c1 Author: Brian Kernighan (Sun 25 Jun 2023 16:51:25 BST) Committer: Brian Kernighan (Sun 25 Jun 2023 16:51:25 BST) fixed (I think) the behavior of Nan, thanks to code from Arnold Robbins; also updated awk.1 (ditto), though I think it needs more work M awk.1 M run.c ____________________________________________________________________________________________________________ Commit: 1a7797e938dc2b0a52b2d4116a98c019c447660b URL: https://git.catflap.org/onetrueawk/commit/?id=1a7797e938dc2b0a52b2d4116a98c019c447660b Author: Brian Kernighan (Wed 17 May 2023 22:38:53 BST) Committer: Brian Kernighan (Wed 17 May 2023 22:38:53 BST) fixes to --csv with embedded newlines M lib.c M main.c M testdir/T.csv M tran.c ____________________________________________________________________________________________________________ Commit: 8444a9d1ddb54fe044d26a9ce30c2619a1bf566d URL: https://git.catflap.org/onetrueawk/commit/?id=8444a9d1ddb54fe044d26a9ce30c2619a1bf566d Author: Brian Kernighan (Mon 15 May 2023 21:35:56 BST) Committer: Brian Kernighan (Mon 15 May 2023 21:35:56 BST) bit more context for error msg in lib.c M lib.c ____________________________________________________________________________________________________________ Commit: 3c3338de9904dfd0a3ef49656542b26a660b8501 URL: https://git.catflap.org/onetrueawk/commit/?id=3c3338de9904dfd0a3ef49656542b26a660b8501 Author: Brian Kernighan (Mon 15 May 2023 20:13:44 BST) Committer: Brian Kernighan (Mon 15 May 2023 20:13:44 BST) first cut at proper csv with embedded newlines M lib.c M tran.c ____________________________________________________________________________________________________________ Commit: bfe05fd9c460908abc244064113fb310e1eeab46 URL: https://git.catflap.org/onetrueawk/commit/?id=bfe05fd9c460908abc244064113fb310e1eeab46 Author: Rose <83477269+AtariDreams@users.noreply.github.com> (Thu 4 May 2023 19:15:09 BST) Committer: Rose <83477269+AtariDreams@users.noreply.github.com> (Thu 4 May 2023 19:28:02 BST) nodealloc should take a size_t rather than an int There is no reason to cast to int anyway. M parse.c M proto.h ____________________________________________________________________________________________________________ Commit: 927dadbc783653f3f1023478ac6e5374f4b24d03 URL: https://git.catflap.org/onetrueawk/commit/?id=927dadbc783653f3f1023478ac6e5374f4b24d03 Author: Brian Kernighan (Wed 15 Mar 2023 21:10:39 GMT) Committer: Brian Kernighan (Wed 15 Mar 2023 21:10:39 GMT) fixed split with CSV (i think) D README.unicode M b.c M proto.h M run.c M testdir/T.csv ____________________________________________________________________________________________________________ Commit: ac3084de9b64d0c838e520ea1ebdb2e1bde87b3f URL: https://git.catflap.org/onetrueawk/commit/?id=ac3084de9b64d0c838e520ea1ebdb2e1bde87b3f Author: Brian Kernighan (Wed 15 Mar 2023 15:14:16 GMT) Committer: Brian Kernighan (Wed 15 Mar 2023 15:14:16 GMT) added \u processing, based on plan9 runetochar() M awk.h M lex.c M lib.c M main.c M run.c ____________________________________________________________________________________________________________ Commit: 4236e5a9f45da97c0565cf0bc2a265d4c1d62af5 URL: https://git.catflap.org/onetrueawk/commit/?id=4236e5a9f45da97c0565cf0bc2a265d4c1d62af5 Author: Miguel Pineiro Jr (Mon 23 Jan 2023 20:11:51 GMT) Committer: Miguel Pineiro Jr (Mon 6 Feb 2023 20:11:26 GMT) Fix regular expression clobbering in the lexer It is a mistake for the lexer not to make a copy of regexp literals, because the parser may need to shift more than one of them onto its stack as it searches for a matching rule. For the following demonstration, the correct output is "1b": $ echo ab | ./master 'sub(/a/, "b" ~ /b/)' a1 The debugging output confirms that /b/ clobbered /a/, incorrectly modifying sub's first argument: $ echo ab | ./master -d 'sub(/a/, "b" ~ /b/)' | grep reparse reparse reparse One of those should have been "reparse ". I introduced this bug in a fix [1] for memory leaks discovered by Todd C. Miller [2]. This commit reverts my fix and applies a slightly modified version of Todd's recommendation (I omit the INDEX case because reg_expr is stored in a node). [1] 577a67cc1f129e3ab240fcc47bf6f31cf6996b8e [2] https://github.com/onetrueawk/awk/pull/156 Testing with `valgrind --leak-check=full $awk "$prog" (Tue 31 Jan 2023 18:54:45 GMT) Committer: Arnold D. Robbins (Tue 31 Jan 2023 18:54:45 GMT) Change wide_char_to_byte_str() to force UTF-8 encoding. M run.c ____________________________________________________________________________________________________________ Commit: 0fad22d32a168d7d3bb08d23529ebcf1c9677e84 URL: https://git.catflap.org/onetrueawk/commit/?id=0fad22d32a168d7d3bb08d23529ebcf1c9677e84 Author: Arnold D. Robbins (Sat 24 Dec 2022 20:46:37 GMT) Committer: Arnold D. Robbins (Sat 24 Dec 2022 20:46:37 GMT) Fix fnematch for unicode. Fix printf %c for unicode. M b.c M run.c ____________________________________________________________________________________________________________ Commit: 522a15d47ee76cab96415c8970b8dd2ae6b62d4b URL: https://git.catflap.org/onetrueawk/commit/?id=522a15d47ee76cab96415c8970b8dd2ae6b62d4b Merge: b404b49 5e49ea4 Author: Arnold D. Robbins (Thu 15 Dec 2022 18:37:02 GMT) Committer: Arnold D. Robbins (Thu 15 Dec 2022 18:37:02 GMT) Merge branch 'master' into unicode-support ____________________________________________________________________________________________________________ Commit: 5e49ea4d1f71d9134734011f2151cae4dbec5e5f URL: https://git.catflap.org/onetrueawk/commit/?id=5e49ea4d1f71d9134734011f2151cae4dbec5e5f Author: Arnold D. Robbins (Thu 15 Dec 2022 18:34:49 GMT) Committer: Arnold D. Robbins (Thu 15 Dec 2022 18:34:49 GMT) Limit \x to two following characters. M FIXES M lex.c M main.c ____________________________________________________________________________________________________________ Commit: b404b49c19a0c7923c32b120da99d6fa846010fe URL: https://git.catflap.org/onetrueawk/commit/?id=b404b49c19a0c7923c32b120da99d6fa846010fe Author: Arnold D. Robbins (Thu 20 Oct 2022 19:36:15 BST) Committer: Arnold D. Robbins (Thu 20 Oct 2022 19:36:15 BST) Addition unicode printf %c and %s fixes. M run.c ____________________________________________________________________________________________________________ Commit: d4d3ee54c45f827b903d7bcd702b6f50b92147e1 URL: https://git.catflap.org/onetrueawk/commit/?id=d4d3ee54c45f827b903d7bcd702b6f50b92147e1 Author: Brian Kernighan (Mon 17 Oct 2022 19:45:30 BST) Committer: Brian Kernighan (Mon 17 Oct 2022 19:45:30 BST) update T.utf M testdir/T.utf ____________________________________________________________________________________________________________ Commit: 44c8f22312adc76b9ae02d636c967baaa7e7661a URL: https://git.catflap.org/onetrueawk/commit/?id=44c8f22312adc76b9ae02d636c967baaa7e7661a Author: Brian Kernighan (Fri 14 Oct 2022 20:17:22 BST) Committer: Brian Kernighan (Fri 14 Oct 2022 20:17:22 BST) fixes for printf from arnold (for which many thanks) M b.c M main.c M run.c ____________________________________________________________________________________________________________ Commit: c1126ba66854b4b7a47deda563faafac60704d08 URL: https://git.catflap.org/onetrueawk/commit/?id=c1126ba66854b4b7a47deda563faafac60704d08 Author: Brian Kernighan (Sun 2 Oct 2022 19:52:04 BST) Committer: Brian Kernighan (Sun 2 Oct 2022 19:52:04 BST) "fixed" %c conversion for utf8 inputs M run.c M testdir/T.utf ____________________________________________________________________________________________________________ Commit: e6a25d8b345084f2ca0a0ef3dae6ef846ade7a52 URL: https://git.catflap.org/onetrueawk/commit/?id=e6a25d8b345084f2ca0a0ef3dae6ef846ade7a52 Merge: 7d78cca 9e248c3 Author: Brian Kernighan (Sun 2 Oct 2022 18:40:03 BST) Committer: Brian Kernighan (Sun 2 Oct 2022 18:40:03 BST) merged changes from master into unicode-support ____________________________________________________________________________________________________________ Commit: 7d78ccaab7bb7be44b8e326f7a7b807f187761f3 URL: https://git.catflap.org/onetrueawk/commit/?id=7d78ccaab7bb7be44b8e326f7a7b807f187761f3 Author: Brian Kernighan (Sun 2 Oct 2022 18:34:55 BST) Committer: Brian Kernighan (Sun 2 Oct 2022 18:34:55 BST) added test cases %-w.ps examples of utf8 in format() M run.c M testdir/T.utf ____________________________________________________________________________________________________________ Commit: 3b5c4d0f2ce435345a50a2fd240df753bd9f7104 URL: https://git.catflap.org/onetrueawk/commit/?id=3b5c4d0f2ce435345a50a2fd240df753bd9f7104 Author: Brian Kernighan (Mon 26 Sep 2022 17:48:50 BST) Committer: Brian Kernighan (Mon 26 Sep 2022 17:48:50 BST) finally got printf(%w.%ps) "working", though not really clean nor efficient. M run.c ____________________________________________________________________________________________________________ Commit: 9e248c317b88470fc86aa7c988919dc49452c88c URL: https://git.catflap.org/onetrueawk/commit/?id=9e248c317b88470fc86aa7c988919dc49452c88c Author: ozan yigit (Mon 12 Sep 2022 15:51:16 BST) Committer: ozan yigit (Mon 12 Sep 2022 15:51:16 BST) updated version M main.c ____________________________________________________________________________________________________________ Commit: 8c4290a0d3844bc143df8ceae54b3d9f9d427eac URL: https://git.catflap.org/onetrueawk/commit/?id=8c4290a0d3844bc143df8ceae54b3d9f9d427eac Author: ozan yigit (Mon 12 Sep 2022 15:50:37 BST) Committer: ozan yigit (Mon 12 Sep 2022 15:50:37 BST) updated M FIXES ____________________________________________________________________________________________________________ Commit: 60447afabcbb99c7060c49364902d71735bbc16b URL: https://git.catflap.org/onetrueawk/commit/?id=60447afabcbb99c7060c49364902d71735bbc16b Author: ozan yigit (Mon 12 Sep 2022 15:48:56 BST) Committer: ozan yigit (Mon 12 Sep 2022 15:48:56 BST) remove unnecessary variable in qstring M tran.c ____________________________________________________________________________________________________________ Commit: 994f5f0c289bac7791be212a1e5aae9ff4c6cc06 URL: https://git.catflap.org/onetrueawk/commit/?id=994f5f0c289bac7791be212a1e5aae9ff4c6cc06 Author: ozan yigit (Mon 12 Sep 2022 15:44:17 BST) Committer: ozan yigit (Mon 12 Sep 2022 15:44:17 BST) adjbuf minlen error in cat, resulting in NULL pbuf. use-after-free issue with tempfree(x) M run.c ____________________________________________________________________________________________________________ Commit: e305e56b104a74e8d1da9927433eb423fb65c28c URL: https://git.catflap.org/onetrueawk/commit/?id=e305e56b104a74e8d1da9927433eb423fb65c28c Merge: 63c5391 30791e0 Author: Brian Kernighan (Mon 5 Sep 2022 21:47:57 BST) Committer: Brian Kernighan (Mon 5 Sep 2022 21:47:57 BST) merged master and unicode-support ____________________________________________________________________________________________________________ Commit: 63c53912a8fc89aeb0c95dfdd26b40d6690d9fc0 URL: https://git.catflap.org/onetrueawk/commit/?id=63c53912a8fc89aeb0c95dfdd26b40d6690d9fc0 Author: Brian Kernighan (Mon 5 Sep 2022 21:37:18 BST) Committer: Brian Kernighan (Mon 5 Sep 2022 21:37:18 BST) fixed split so if 3rd argument is a comma, either directly or implicitly because FS is, splitting is done as if the string was in CSV format, as with input. M main.c M run.c M testdir/T.utf ____________________________________________________________________________________________________________ Commit: 30791e0f686010b39c1ab2121df85da180960d53 URL: https://git.catflap.org/onetrueawk/commit/?id=30791e0f686010b39c1ab2121df85da180960d53 Author: ozan yigit (Wed 31 Aug 2022 03:49:04 BST) Committer: ozan yigit (Wed 31 Aug 2022 03:49:04 BST) clean up xfree, remove redundant NULL check. M awk.h ____________________________________________________________________________________________________________ Commit: 07cc7ca88a0a33f0aa15d9900d4bf0472a93ced1 URL: https://git.catflap.org/onetrueawk/commit/?id=07cc7ca88a0a33f0aa15d9900d4bf0472a93ced1 Author: ozan yigit (Wed 31 Aug 2022 03:44:48 BST) Committer: ozan yigit (Wed 31 Aug 2022 03:44:48 BST) updated FIXES and version. M FIXES M main.c ____________________________________________________________________________________________________________ Commit: 821c502359855d0c43be8e9b08f037ecb543d310 URL: https://git.catflap.org/onetrueawk/commit/?id=821c502359855d0c43be8e9b08f037ecb543d310 Author: Miguel Pineiro Jr (Tue 30 Aug 2022 20:27:27 BST) Committer: Miguel Pineiro Jr (Tue 30 Aug 2022 23:46:32 BST) Stop leaking tempcells from extra arguments in format ===============> cat leak.sh #/bin/sh # Monitor awk's memory consumption while repeatedly calling printf # with extra, tempcell-producing expression arguments. ${1:-./a.out} ' BEGIN { mem = "ps -p $PPID -o rsz=" system(mem) while (++i <= 100000) { printf("%d", 1+2, 3+4, 5+6, 7+8, 9+0) > "/dev/null" if (i % 10000 == 0) system(mem) } } ' 2>/dev/null ===============> paste <(./leak.sh ./master.out) <(./leak.sh ./a.out) 2572 2564 4804 2600 6996 2600 9192 2600 11384 2600 13576 2600 15772 2600 17964 2600 20160 2600 22352 2600 24548 2600 M run.c ____________________________________________________________________________________________________________ Commit: 4da7f6957e1934deaea782b653e6242713d2a9b6 URL: https://git.catflap.org/onetrueawk/commit/?id=4da7f6957e1934deaea782b653e6242713d2a9b6 Author: Miguel Pineiro Jr (Tue 30 Aug 2022 19:43:34 BST) Committer: Miguel Pineiro Jr (Tue 30 Aug 2022 23:46:32 BST) Stop leaking tempcells from extra args in bltin ===============> cat leak.sh #/bin/sh # Monitor awk's memory consumption while repeatedly calling int() # with extra, tempcell-producing expression arguments. There is # nothing special about int(). Most of the other functions in # run.c/bltin() will do. ${1:-./a.out} ' BEGIN { mem = "ps -p $PPID -o rsz=" system(mem) while (++i <= 100000) { int(1+2, 3+4, 5+6, 7+8, 9+0) if (i % 10000 == 0) system(mem) } } ' 2>/dev/null ===============> paste <(./leak.sh ./master.out) <(./leak.sh ./a.out) 2404 2520 4612 2528 6804 2528 9000 2528 11192 2528 13384 2528 15580 2528 17772 2528 19968 2528 22160 2528 24356 2528 M run.c ____________________________________________________________________________________________________________ Commit: 13cb1f4bb3a03bf42eba8cbe52f2b83c11774807 URL: https://git.catflap.org/onetrueawk/commit/?id=13cb1f4bb3a03bf42eba8cbe52f2b83c11774807 Author: Miguel Pineiro Jr (Mon 29 Aug 2022 20:41:30 BST) Committer: Miguel Pineiro Jr (Tue 30 Aug 2022 23:46:32 BST) Fix leak of qstring result in setclvar Test: valgrind --leak-check=full ./a.out '{exit}' x=y (Mon 29 Aug 2022 20:13:39 BST) Committer: Miguel Pineiro Jr (Tue 30 Aug 2022 23:43:55 BST) Stop node leaks subsequent to strnode In every instance, after strnode has extracted the string, the node is leaked. Tests: valgrind --leak-check=full ./a.out '{sub("b", x)}' (Mon 29 Aug 2022 17:57:58 BST) Committer: Miguel Pineiro Jr (Mon 29 Aug 2022 17:57:58 BST) Fix leak of regex string representations The lexer returns a copy of a regular expression's string representation which is then leaked during parsing. Since the only consumer of that copy makes a copy of the copy (makedfa via mkdfa), just return a pointer to the original string. Test with: valgrind --leak-check=full a.out '/123/; /456/' (Mon 29 Aug 2022 17:02:15 BST) Committer: Miguel Pineiro Jr (Mon 29 Aug 2022 17:02:15 BST) Fix use-after-free in split In case the source string resides in the array that's about to be wiped, copy the string and release its cell immediately. To reproduce: BEGIN { a[1]="a b"; print split(a[1],a),a[1],a[2] } Reported by Todd C. Miller. M run.c ____________________________________________________________________________________________________________ Commit: d3a19e6f2533d479841e0a7e49582be8be3ea51c URL: https://git.catflap.org/onetrueawk/commit/?id=d3a19e6f2533d479841e0a7e49582be8be3ea51c Author: Brian Kernighan (Sat 27 Aug 2022 19:36:46 BST) Committer: Brian Kernighan (Sat 27 Aug 2022 19:36:46 BST) fixed (i think) the csv code in lib.c, added tests to T.csv, and also fixed splitting of input lines when FS="", plus tests in T.utf M lib.c A testdir/T.csv M testdir/T.utf ____________________________________________________________________________________________________________ Commit: 48a41180edf8160b140ef710c20aa34d0b01b063 URL: https://git.catflap.org/onetrueawk/commit/?id=48a41180edf8160b140ef710c20aa34d0b01b063 Author: Arnold D. Robbins (Wed 24 Aug 2022 14:43:06 BST) Committer: Arnold D. Robbins (Wed 24 Aug 2022 14:43:06 BST) Fix permissions on some files. M b.c M lib.c M run.c ____________________________________________________________________________________________________________ Commit: f3f5210cfac77479e6cf6ca2f21f8f08c012aa85 URL: https://git.catflap.org/onetrueawk/commit/?id=f3f5210cfac77479e6cf6ca2f21f8f08c012aa85 Author: Arnold D. Robbins (Wed 24 Aug 2022 14:42:27 BST) Committer: Arnold D. Robbins (Wed 24 Aug 2022 14:42:27 BST) Latest additions from BWK. M .gitignore M awk.h M b.c M lib.c M main.c M run.c ____________________________________________________________________________________________________________ Commit: 66a543eeadeed25d152a53c67ff0dd25ac017730 URL: https://git.catflap.org/onetrueawk/commit/?id=66a543eeadeed25d152a53c67ff0dd25ac017730 Merge: 9ebe940 f7c8148 Author: Arnold D. Robbins (Wed 24 Aug 2022 10:03:10 BST) Committer: Arnold D. Robbins (Wed 24 Aug 2022 10:03:10 BST) Merge branch 'master' into unicode-support ____________________________________________________________________________________________________________ Commit: f7c8148865033ff0e851c31da026bf10f250251e URL: https://git.catflap.org/onetrueawk/commit/?id=f7c8148865033ff0e851c31da026bf10f250251e Author: gpelisset <82290797+gpelisset@users.noreply.github.com> (Wed 24 Aug 2022 09:41:34 BST) Committer: GitHub (Wed 24 Aug 2022 09:41:34 BST) Fixed typo (#151) M lex.c ____________________________________________________________________________________________________________ Commit: 9ebe940cf3c652b0e373634d2aa4a00b8395b636 URL: https://git.catflap.org/onetrueawk/commit/?id=9ebe940cf3c652b0e373634d2aa4a00b8395b636 Author: Arnold D. Robbins (Tue 31 May 2022 20:43:34 BST) Committer: Arnold D. Robbins (Tue 31 May 2022 20:43:34 BST) Add BWK's email. A README.unicode ____________________________________________________________________________________________________________ Commit: d322b2b5fc16484affb09e86b044596a2e347853 URL: https://git.catflap.org/onetrueawk/commit/?id=d322b2b5fc16484affb09e86b044596a2e347853 Author: Arnold D. Robbins (Tue 31 May 2022 20:37:08 BST) Committer: Arnold D. Robbins (Tue 31 May 2022 20:37:08 BST) Changes from BWK for Unicode support. More to do though. M .gitignore M awk.h M b.c M proto.h M run.c A testdir/T.utf A testdir/T.utfre M testdir/tt.15 D testdir/xc ____________________________________________________________________________________________________________ Commit: b92d8cecd132ce8e02a373e28dd42e6be34d3d59 URL: https://git.catflap.org/onetrueawk/commit/?id=b92d8cecd132ce8e02a373e28dd42e6be34d3d59 Author: ozan yigit (Mon 30 May 2022 16:34:52 BST) Committer: ozan yigit (Mon 30 May 2022 16:34:52 BST) added YACC definition for byacc. M makefile ____________________________________________________________________________________________________________ Commit: 8fd1d697664f780b8adac60cb236d2f08f546f9b URL: https://git.catflap.org/onetrueawk/commit/?id=8fd1d697664f780b8adac60cb236d2f08f546f9b Merge: f3d9187 f009bd3 Author: ozan yigit (Mon 30 May 2022 16:33:58 BST) Committer: ozan yigit (Mon 30 May 2022 16:33:58 BST) resolved conflicts in description, release date. ____________________________________________________________________________________________________________ Commit: f009bd339788ee01539a74b68a9daf59969163bf URL: https://git.catflap.org/onetrueawk/commit/?id=f009bd339788ee01539a74b68a9daf59969163bf Author: Miguel Pineiro Jr (Mon 23 May 2022 22:14:42 BST) Committer: Miguel Pineiro Jr (Mon 23 May 2022 22:35:52 BST) Fix memory leak in string assignment to built-ins The new string value is always freeable (strdup'd by tostring), so never mark it as DONTFREE. $ paste <(./leak.sh master.out) <(./leak.sh fixed.out) 2564 2464 7260 2476 11948 2476 16636 2476 21324 2476 26012 2476 30700 2476 35388 2476 40076 2476 44760 2476 49448 2476 $ cat leak.sh #/bin/sh awk=${1:-nawk} # Print the initial resident set size # Assign each record to FS # Print rsz every 100,000 records # Exit after a million yes abcdefghijklmnopqrstuvwxyz | $awk -v mem='ps -p $PPID -o rsz=' ' BEGIN { system(mem) } { FS = $0 } NR % 100000 == 0 { system(mem) } NR == 1000000 { exit } ' M FIXES M main.c M tran.c ____________________________________________________________________________________________________________ Commit: f3d9187d4e0f02294fb1b0e31152070506314e67 URL: https://git.catflap.org/onetrueawk/commit/?id=f3d9187d4e0f02294fb1b0e31152070506314e67 Author: Miguel Pineiro Jr (Mon 14 Mar 2022 19:00:11 GMT) Committer: Miguel Pineiro Jr (Mon 14 Mar 2022 19:22:11 GMT) Fix assignment operand handling to preserve ARGV After initialization, ARGV is supposed to be under the control of the application (the awk script). However, when fulfilling the assignment specified by a "name=value" operand, the implementation modifies the operand's ARGV entry behind the application's back, truncating it. This commit undoes the munge before returning control to the application. $ echo | ./master 'BEGIN { print ARGV[1] } { print ARGV[1] }' name=value name=value name $ echo | ./a.out 'BEGIN { print ARGV[1] } { print ARGV[1] }' name=value name=value name=value History: setclvar had been modifying its string argument without ill-effect from the beginning (7th Edition UNIX, 1979) [1], when, in 1989, SVR4 switched the source of the argument from argv to ARGV [2]. The former cannot be accessed by the application, the latter can. Thus, a private implementation detail unintentionally became a public defect. [1] https://www.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/awk/lib.c [2] https://github.com/danfuzz/one-true-awk/blob/master/versions/1989-10-11/lib.c M FIXES M lib.c M main.c M testdir/T.argv ____________________________________________________________________________________________________________ Commit: 240201426090f9eca923980e388cab5e66ecc0ef URL: https://git.catflap.org/onetrueawk/commit/?id=240201426090f9eca923980e388cab5e66ecc0ef Author: Miguel Pineiro Jr (Thu 3 Mar 2022 14:51:27 GMT) Committer: Miguel Pineiro Jr (Thu 3 Mar 2022 14:57:23 GMT) Eliminate file management memory leak stdinit initializes the first three slots of the files array with statically allocated pathnames. closefile considers these slots permanently statically allocated. openfile does not. This discrepancy can leak memory: if a statically allocated slot is vacated, openfile will put a malloc'd string where closefile does not free. To reconcile, either openfile must not reuse these slots or stdinit and closefile must switch to dynamic allocation. I chose the latter, because the result is a little simpler and less interconnected than managing a partitioned array. Here's a (contrived) demo with my system's output: $ cat leak.sh #!/bin/sh # Close stderr, vacating files[2] # Print the initial resident set size # For each record, open and close a file named "y" # Print rsz every 50,000 iterations # Exit after 250,000 iterations awk=${1:-nawk} yes | $awk ' BEGIN { close("/dev/stderr") system(rsz = "ps -p $PPID -o rsz=") } { print > $0; close($0) } NR % 50000 == 0 { system(rsz) } NR == 250000 { exit }' # End of leak.sh $ paste <(./leak.sh ./master) <(./leak.sh ./a.out) 2444 2428 4016 2500 5576 2500 7140 2500 8704 2500 10264 2500 M FIXES M main.c M run.c ____________________________________________________________________________________________________________ Commit: 075624a72ab15649f255a3a1dabfd7cb7766a7d7 URL: https://git.catflap.org/onetrueawk/commit/?id=075624a72ab15649f255a3a1dabfd7cb7766a7d7 Author: ozan yigit (Mon 24 Jan 2022 23:59:18 GMT) Committer: ozan yigit (Mon 24 Jan 2022 23:59:18 GMT) minor edit, maintainer email. M README.md ____________________________________________________________________________________________________________ Commit: b9c01f51224fd302519e8a35bd06effc06f6d3d1 URL: https://git.catflap.org/onetrueawk/commit/?id=b9c01f51224fd302519e8a35bd06effc06f6d3d1 Merge: 01749f0 7816d47 Author: ozan yigit (Sun 26 Dec 2021 18:44:58 GMT) Committer: ozan yigit (Sun 26 Dec 2021 18:44:58 GMT) Merge branch 'mpinjr-fix-ioerrors' into staging ____________________________________________________________________________________________________________ Commit: 7816d47dc8abc54a77a7a11eff45317b459184bf URL: https://git.catflap.org/onetrueawk/commit/?id=7816d47dc8abc54a77a7a11eff45317b459184bf Author: Miguel Pineiro Jr (Fri 17 Dec 2021 01:07:10 GMT) Committer: Miguel Pineiro Jr (Fri 17 Dec 2021 01:07:10 GMT) When closing, don't flush input streams They don't need it. M run.c ____________________________________________________________________________________________________________ Commit: 99f6a432969cd42aa1dcba580eefe9d23601e51b URL: https://git.catflap.org/onetrueawk/commit/?id=99f6a432969cd42aa1dcba580eefe9d23601e51b Author: Miguel Pineiro Jr (Thu 9 Dec 2021 02:37:28 GMT) Committer: Miguel Pineiro Jr (Thu 9 Dec 2021 04:06:02 GMT) Fix error handling in closefile and closeall printstat and awkprintf are very clear: print statement errors are fatal. In Jan 2020 [1], to prevent fatal print errors from masquerading as fclose warnings, every WARNING in closefile and closeall became FATAL. This broke awk's close and getline functions. close no longer returns if there's an error, unless the stream doesn't exist. getline read errors still return -1, but they are no longer ignorable. Eventually, one of the closing functions will inspect the stream with ferror and call FATAL. In Jul 2020 [2], fatal stdout write errors which had been detectable by closefile for a few months became invisible, a consequence of switching standard streams from fclose (which reports flush errors) to freopen (which ignores them). The Jan 2020 changes which broke getline and close were themselves partially broken. The solution is to finish printing before closing. That is to flush and ferror every stream opened for writing before calling fclose, pclose, or freopen. A failure to write print statement data is fatal. A failure to close a flushed stream is a warning. They must be handled separately. Every redirected print statement is finished in printstat or awkprintf. The same is not true of unredirected print statements. To finish these, stdout must be flushed at some point after the final such statement. Any problem with that flush is fatal. Though only stdout needs it, let's defensively finish every stream opened for writing, so this bug won't recur if someone changes how redirected streams are flushed. Write errors on stderr by the implementation are never fatal. When closing, we only warn of them. Write errors from an application attempting a redirected print to /dev/stderr are as immediately fatal as every other redirected print statement. [1] fed1a562c3d1f3cf3cac0dd1413679191ac43002 [2] b82b649aa65fbdff45869d1fd6d72fd2b85946cd M FIXES M main.c M run.c ____________________________________________________________________________________________________________ Commit: 1d780ac4f8479c7b7a8d4699f25dc34488fb7c4d URL: https://git.catflap.org/onetrueawk/commit/?id=1d780ac4f8479c7b7a8d4699f25dc34488fb7c4d Author: Miguel Pineiro Jr (Wed 8 Dec 2021 23:42:59 GMT) Committer: Miguel Pineiro Jr (Thu 9 Dec 2021 03:07:49 GMT) Delete leading spaces surrounding closefile Aesthetics and convention aside, they confuse git diff into misidentifying closefile as filename. M run.c ____________________________________________________________________________________________________________ Commit: 01749f04cf1366ac50d998c4747acc89549c082f URL: https://git.catflap.org/onetrueawk/commit/?id=01749f04cf1366ac50d998c4747acc89549c082f Author: ozan yigit (Thu 25 Nov 2021 18:29:49 GMT) Committer: ozan yigit (Thu 25 Nov 2021 18:29:49 GMT) Revert "resolve parsing of a slash character within a cclass "/[/]/" without escape" This reverts commit d91c473c7c187079a886fcbc27fc7955da52a8fd. M lex.c M testdir/T.misc ____________________________________________________________________________________________________________ Commit: cfe6b6b99d841c0f46d090265e0aa882feee411f URL: https://git.catflap.org/onetrueawk/commit/?id=cfe6b6b99d841c0f46d090265e0aa882feee411f Author: ozan yigit (Thu 25 Nov 2021 18:29:16 GMT) Committer: ozan yigit (Thu 25 Nov 2021 18:29:16 GMT) Revert "version and FIXES updated." This reverts commit 52fb5d07d3524250353fa3eb262e7410d589f4b8. M FIXES M main.c ____________________________________________________________________________________________________________ Commit: 52fb5d07d3524250353fa3eb262e7410d589f4b8 URL: https://git.catflap.org/onetrueawk/commit/?id=52fb5d07d3524250353fa3eb262e7410d589f4b8 Author: ozan yigit (Tue 23 Nov 2021 21:10:27 GMT) Committer: ozan yigit (Tue 23 Nov 2021 21:10:27 GMT) version and FIXES updated. M FIXES M main.c ____________________________________________________________________________________________________________ Commit: d91c473c7c187079a886fcbc27fc7955da52a8fd URL: https://git.catflap.org/onetrueawk/commit/?id=d91c473c7c187079a886fcbc27fc7955da52a8fd Author: ozan yigit (Tue 23 Nov 2021 21:09:51 GMT) Committer: ozan yigit (Tue 23 Nov 2021 21:09:51 GMT) resolve parsing of a slash character within a cclass "/[/]/" without escape M lex.c M testdir/T.misc ____________________________________________________________________________________________________________ Commit: c50ef66d119d87e06a041e5522430265ccdce148 URL: https://git.catflap.org/onetrueawk/commit/?id=c50ef66d119d87e06a041e5522430265ccdce148 Author: ozan yigit (Thu 4 Nov 2021 02:44:35 GMT) Committer: ozan yigit (Thu 4 Nov 2021 02:44:35 GMT) updated M FIXES ____________________________________________________________________________________________________________ Commit: a4ca5ea32f68407da710cdee59f107c275812d23 URL: https://git.catflap.org/onetrueawk/commit/?id=a4ca5ea32f68407da710cdee59f107c275812d23 Author: ozan yigit (Thu 4 Nov 2021 02:41:23 GMT) Committer: ozan yigit (Thu 4 Nov 2021 02:41:23 GMT) updated version date M main.c ____________________________________________________________________________________________________________ Commit: 14c3fe42d2a93be3a4ceb1946f8bb7fcaf75ac4d URL: https://git.catflap.org/onetrueawk/commit/?id=14c3fe42d2a93be3a4ceb1946f8bb7fcaf75ac4d Author: ozan yigit (Thu 4 Nov 2021 02:34:20 GMT) Committer: ozan yigit (Thu 4 Nov 2021 02:34:20 GMT) updated FIXES, added getline corruption tests A bugs-fixed/getline-corruption.awk A bugs-fixed/getline-corruption.in A bugs-fixed/getline-corruption.ok ____________________________________________________________________________________________________________ Commit: 1debe1993fc852545a9215621d884be27f08a223 URL: https://git.catflap.org/onetrueawk/commit/?id=1debe1993fc852545a9215621d884be27f08a223 Author: Todd C. Miller (Mon 1 Nov 2021 17:58:54 GMT) Committer: Todd C. Miller (Mon 1 Nov 2021 18:03:32 GMT) awkgetline: do not access unitialized data on EOF getrec() returns 0 on EOF and leaves the contents of buf unchanged. Fixes #133. M run.c ____________________________________________________________________________________________________________ Commit: 275a80ff33ef2782f27c4fd720b65645c89e2bbb URL: https://git.catflap.org/onetrueawk/commit/?id=275a80ff33ef2782f27c4fd720b65645c89e2bbb Author: ozan yigit (Tue 12 Oct 2021 05:06:51 BST) Committer: ozan yigit (Tue 12 Oct 2021 05:06:51 BST) Heap buffer overflow from PR #83 fixed in #121 M FIXES M main.c ____________________________________________________________________________________________________________ Commit: 40f0527d5d1a32124163c4183d92f794844eb043 URL: https://git.catflap.org/onetrueawk/commit/?id=40f0527d5d1a32124163c4183d92f794844eb043 Author: Anonymous AWK fan (Sat 9 Oct 2021 19:23:05 BST) Committer: Anonymous AWK fan (Sat 9 Oct 2021 19:23:05 BST) Fix https://github.com/onetrueawk/awk/issues/121 M b.c ____________________________________________________________________________________________________________ Commit: f9affa922c5e074990a999d486d4bc823590fd93 URL: https://git.catflap.org/onetrueawk/commit/?id=f9affa922c5e074990a999d486d4bc823590fd93 Author: ozan yigit (Tue 27 Jul 2021 19:00:36 BST) Committer: ozan yigit (Tue 27 Jul 2021 19:00:36 BST) fix -F "str" vs -v FS="str" when str is null M FIXES ____________________________________________________________________________________________________________ Commit: dfd28d2e935d6905be2b2c2b96488ccaf460994a URL: https://git.catflap.org/onetrueawk/commit/?id=dfd28d2e935d6905be2b2c2b96488ccaf460994a Merge: aa8731e 45dab2a Author: ozan yigit (Tue 27 Jul 2021 02:50:22 BST) Committer: ozan yigit (Tue 27 Jul 2021 02:50:22 BST) Merge branch 'fs-inconsistency' of https://github.com/bsdimp/awk into bsdimp-fs-inconsistency ____________________________________________________________________________________________________________ Commit: aa8731ea81594dc036469dcfe16c7c5eb571eca0 URL: https://git.catflap.org/onetrueawk/commit/?id=aa8731ea81594dc036469dcfe16c7c5eb571eca0 Author: ozan yigit (Sun 25 Jul 2021 19:37:03 BST) Committer: ozan yigit (Sun 25 Jul 2021 19:37:03 BST) PR #112, #116, #117 M FIXES M README.md M lib.c M main.c ____________________________________________________________________________________________________________ Commit: 39133291204ab182e6fd24baacab0bb3a3f86606 URL: https://git.catflap.org/onetrueawk/commit/?id=39133291204ab182e6fd24baacab0bb3a3f86606 Merge: 30fb6ef 92f9e8a Author: ozan yigit (Sat 24 Jul 2021 20:10:25 BST) Committer: ozan yigit (Sat 24 Jul 2021 20:10:25 BST) Merge branch 'fix-readrec' of https://github.com/mpinjr/awk into staging ____________________________________________________________________________________________________________ Commit: 30fb6ef0da1f33473637a711381b58961331dc5f URL: https://git.catflap.org/onetrueawk/commit/?id=30fb6ef0da1f33473637a711381b58961331dc5f Merge: d54b703 feaf62d Author: ozan yigit (Sat 24 Jul 2021 20:06:21 BST) Committer: ozan yigit (Sat 24 Jul 2021 20:06:21 BST) Merge branch 'fix-RS' of https://github.com/mpinjr/awk into staging ____________________________________________________________________________________________________________ Commit: 45dab2a7e08ac950c8838e1b01f8d8439e2f0f7c URL: https://git.catflap.org/onetrueawk/commit/?id=45dab2a7e08ac950c8838e1b01f8d8439e2f0f7c Author: Warner Losh (Tue 20 Jul 2021 05:47:30 BST) Committer: Warner Losh (Tue 20 Jul 2021 15:10:50 BST) awk: Make -F '' and -v FS="" behave the same IEEE Std 1003.1-2008 mandates that -F str be treated the same as -v FS=str. For a null string, this was not the case. Since awk(1) documents that a null string for FS has a specific behavior, make -F '' behave consistently with -v FS="". PR: upstream issue: https://github.com/onetrueawk/awk/issues/127 Sponsored by: Netflix M main.c ____________________________________________________________________________________________________________ Commit: 92f9e8a9be1e6ded911f66c5cb81f28093c5450e URL: https://git.catflap.org/onetrueawk/commit/?id=92f9e8a9be1e6ded911f66c5cb81f28093c5450e Author: Miguel Pineiro Jr (Fri 23 Apr 2021 07:13:33 BST) Committer: Miguel Pineiro Jr (Sat 24 Apr 2021 01:08:58 BST) Fix readrec's definition of a record I botched readrec's definition of a record, when I implemented RS regular expression support. This is the relevant hunk from the old diff: ``` - return c == EOF && rr == buf ? 0 : 1; + isrec = *buf || !feof(inf); + dprintf( ("readrec saw <%s>, returns %d\n", buf, isrec) ); + return isrec; ``` Problem #1 Unlike testing with EOF, `*buf || !feof(inf)` is blind to stdio errors. This can cause an infinite loop whose each iteration fabricates an empty record. The following demonstration uses standard terminal access control policy to produce a persistent error condition. Note that the "i/o error" message does not come from readrec(). It's produced much later by closeall() at shutdown. ``` $ trap '' SIGTTIN && awk 'END {print NR}' & [1] 33517 $ # After fg, type ^D $ fg trap '' SIGTTIN && awk 'END {print NR}' 13847376 awk: i/o error occurred on /dev/stdin input record number 13847376, file source line number 1 ``` Each time awk tries to read the terminal from the background, while ignoring SIGTTIN, the read fails with EIO, getc returns EOF, the stream's end-of-file indicator remains clear, and `!feof` erroneously promotoes the empty buffer to an empty record. So long as the error persists, the stream's position does not advance and end-of-file is never set. Problem #2: When RS is a regex, `*buf || !feof(inf)` can't see an empty record's terminator at the end of a stream. ``` $ echo a | awk 1 RS='a\n' $ ``` That pipeline should have found one empty record and printed a blank line, but `*buf || !feof(inf)` considers reaching the end of the stream the conclusion of a fruitless search. That's only correct when the terminator is a single character, because a regex RS search can set the end-of-file marker even when it succeeds. The Fix `isrec` must be 0 **iff** no record is found. The correct definition of "no record" is a failure to find a record terminator and a failure to find any data (possibly from a final, unterminated record). Conceptually, for any RS: ``` isrec = (noTERM && noDATA) ? 0 : 1 ``` noDATA is an expression that's true if `buf` is empty, false otherwise. When RS is null or a single character, noTERM is an expression that is true when the sought after character is not found, false otherwise. Since the search for a single character can only end with that character or EOF, noTERM is `c == EOF`. ``` isrec = (c == EOF && rr == buf) ? 0 : 1 ``` When RS is a regular expression: noTERM is an expression that is true if a match for RS is not found, false otherwise. This is simply the inverse of the result of the function that conducts the search, `!found`. ``` isrec = (found == 0 && *buf == '\0') ? 0 : 1 ``` M lib.c M testdir/T.misc ____________________________________________________________________________________________________________ Commit: feaf62d159df0f26dfbd18d03ef428ce3ded812d URL: https://git.catflap.org/onetrueawk/commit/?id=feaf62d159df0f26dfbd18d03ef428ce3ded812d Author: Miguel Pineiro Jr (Sat 17 Apr 2021 01:31:36 BST) Committer: Miguel Pineiro Jr (Sat 17 Apr 2021 01:31:36 BST) Fix regular expression RS ^-anchoring RS ^-anchoring needs to know if it's reading the first record of a file. Unfortunately, innew, the flag that the main i/o loop uses to track this, didn't make it from NetBSD unscathed. This commit restores the last of the wayward lines. Without this fix, when reading the first record of an input file named on the command line, the regular expression machinery will be misconfigured, precluding a successful match. Relevant commits: 1. 643a5a3dad633431c6ce8831944c23059a6be309 (Initial import) 2. ffee7780fe08fa77f662a0903477545d9e26334f (Restoring innew) M lib.c M testdir/T.misc ____________________________________________________________________________________________________________ Commit: d54b703cae9c5e7d5cf0f251bc847d38a70170c4 URL: https://git.catflap.org/onetrueawk/commit/?id=d54b703cae9c5e7d5cf0f251bc847d38a70170c4 Author: Todd C. Miller (Tue 2 Mar 2021 19:58:50 GMT) Committer: Todd C. Miller (Tue 2 Mar 2021 19:58:50 GMT) Fix size computation in replace_repeat() for special_case REPEAT_WITH_Q. This resulted in the NUL terminator being written to the end of the buffer which was not the same as the end of the string. That in turn caused garbage bytes from malloc() to be processed. Also change the NUL termination to be less error prone by writing the NUL immediately after the last byte copied. Reproducible with the following under valgrind: echo '#!/usr/bin/awk' | awk \ '/^#! ?\/.*\/[a-z]{0,2}awk/ {sub(/^#! ?\/.*\/[a-z]{0,2}awk/,"#! awk"); print}' M b.c ____________________________________________________________________________________________________________ Commit: c0f4e97e4561ff42544e92512bbaf3d7d1f6a671 URL: https://git.catflap.org/onetrueawk/commit/?id=c0f4e97e4561ff42544e92512bbaf3d7d1f6a671 Author: Arnold D. Robbins (Mon 15 Feb 2021 18:33:15 GMT) Committer: Arnold D. Robbins (Mon 15 Feb 2021 18:33:15 GMT) Fix compiling with g++. M FIXES M main.c M tran.c ____________________________________________________________________________________________________________ Commit: 178f660b5a4fde6f39e8065185373166f55b6e0c URL: https://git.catflap.org/onetrueawk/commit/?id=178f660b5a4fde6f39e8065185373166f55b6e0c Author: ozan s. yigit (Sun 10 Jan 2021 20:24:37 GMT) Committer: ozan s. yigit (Sun 10 Jan 2021 20:24:37 GMT) Change T.errmsg print to file fail test. We cannot have a test that destroys eg. /etc/passwd if someone runs it as root. M testdir/T.errmsg ____________________________________________________________________________________________________________ Commit: 1fd5fa38cc801a9fb77494c2c3fce8f2403c5402 URL: https://git.catflap.org/onetrueawk/commit/?id=1fd5fa38cc801a9fb77494c2c3fce8f2403c5402 Author: ozan s. yigit (Wed 6 Jan 2021 23:37:48 GMT) Committer: ozan s. yigit (Wed 6 Jan 2021 23:37:48 GMT) Fix a decision bug with trailing stuff in lib.c:is_valid_number after dec 18 changes. updated FIXES, adjusted version date. M FIXES M lib.c M main.c ____________________________________________________________________________________________________________ Commit: 7d1848cfa6b7b3bb9a7c851339626982198a57bc URL: https://git.catflap.org/onetrueawk/commit/?id=7d1848cfa6b7b3bb9a7c851339626982198a57bc Merge: 8909e00 fdc0388 Author: ozan s. yigit (Fri 25 Dec 2020 21:55:02 GMT) Committer: ozan s. yigit (Fri 25 Dec 2020 21:55:02 GMT) Merge branch 'staging' for README.md ____________________________________________________________________________________________________________ Commit: fdc038833331f9d0ea63a95381fc93d6001e94b9 URL: https://git.catflap.org/onetrueawk/commit/?id=fdc038833331f9d0ea63a95381fc93d6001e94b9 Author: ozan s. yigit (Fri 25 Dec 2020 21:53:55 GMT) Committer: ozan s. yigit (Fri 25 Dec 2020 21:53:55 GMT) updated: new maintainer M README.md ____________________________________________________________________________________________________________ Commit: 8909e00b57874e5858a210bc3a7e9e56e10eda35 URL: https://git.catflap.org/onetrueawk/commit/?id=8909e00b57874e5858a210bc3a7e9e56e10eda35 Author: Arnold D. Robbins (Fri 18 Dec 2020 09:57:48 GMT) Committer: Arnold D. Robbins (Fri 18 Dec 2020 09:57:48 GMT) Inf and NaN values fixed and printing improved. "This time for sure!" M FIXES A bugs-fixed/inf-nan-torture.awk A bugs-fixed/inf-nan-torture.in A bugs-fixed/inf-nan-torture.ok M lib.c M main.c M tran.c ____________________________________________________________________________________________________________ Commit: 982a574e3282e0cb650b6e34f694ca191cb73fd4 URL: https://git.catflap.org/onetrueawk/commit/?id=982a574e3282e0cb650b6e34f694ca191cb73fd4 Author: Arnold D. Robbins (Tue 15 Dec 2020 12:49:18 GMT) Committer: Arnold D. Robbins (Tue 15 Dec 2020 12:49:18 GMT) Update FIXES and version. M FIXES M main.c ____________________________________________________________________________________________________________ Commit: 38e525fb7b8562a96422ffe9d7c65cb3569b3e6b URL: https://git.catflap.org/onetrueawk/commit/?id=38e525fb7b8562a96422ffe9d7c65cb3569b3e6b Author: Michael Forney (Tue 15 Dec 2020 12:46:30 GMT) Committer: GitHub (Tue 15 Dec 2020 12:46:30 GMT) Include for strcasecmp (#99) Though some implementations include this header indirectly through string.h by default, the POSIX header that declares strcasecmp is strings.h[0]. [0] https://pubs.opengroup.org/onlinepubs/9699919799/functions/strcasecmp.html M lib.c ____________________________________________________________________________________________________________ Commit: 6535bd6c3592f24a05d752939b89f6d6eeb458c3 URL: https://git.catflap.org/onetrueawk/commit/?id=6535bd6c3592f24a05d752939b89f6d6eeb458c3 Author: Arnold D. Robbins (Tue 8 Dec 2020 07:20:58 GMT) Committer: Arnold D. Robbins (Tue 8 Dec 2020 07:20:58 GMT) Update FIXES and version in main.c. M FIXES M main.c ____________________________________________________________________________________________________________ Commit: cc9e9b68d124c6c7770eb3903329423ff9f17201 URL: https://git.catflap.org/onetrueawk/commit/?id=cc9e9b68d124c6c7770eb3903329423ff9f17201 Author: Arnold Robbins (Tue 8 Dec 2020 06:05:22 GMT) Committer: GitHub (Tue 8 Dec 2020 06:05:22 GMT) Rework floating point conversions. (#98) M awk.1 M lex.c M lib.c M proto.h M run.c M tran.c ____________________________________________________________________________________________________________ Commit: e508d2861c26e89e7289a5a33d99df2951498ff4 URL: https://git.catflap.org/onetrueawk/commit/?id=e508d2861c26e89e7289a5a33d99df2951498ff4 Author: Arnold D. Robbins (Thu 3 Dec 2020 17:33:11 GMT) Committer: Arnold D. Robbins (Thu 3 Dec 2020 17:33:11 GMT) Update version and FIXES. M FIXES M main.c ____________________________________________________________________________________________________________ Commit: feb247a852c0a068dc8c23e0e683a5af075fff60 URL: https://git.catflap.org/onetrueawk/commit/?id=feb247a852c0a068dc8c23e0e683a5af075fff60 Author: Todd C. Miller (Thu 3 Dec 2020 17:30:36 GMT) Committer: GitHub (Thu 3 Dec 2020 17:30:36 GMT) Don't print extra newlines on error before awk starts parsing. (#97) If awk prints an error message while when compile_time is still set to ERROR_PRINTING, don't try to print the context since there is none. This can happen due to a problem with, e.g., unknown command line options. M lib.c ____________________________________________________________________________________________________________ Commit: a2a41a8e359dca5295c43dc2c2408094b96c3e0c URL: https://git.catflap.org/onetrueawk/commit/?id=a2a41a8e359dca5295c43dc2c2408094b96c3e0c Author: Arnold D. Robbins (Tue 24 Nov 2020 17:14:26 GMT) Committer: Arnold D. Robbins (Tue 24 Nov 2020 17:14:26 GMT) Add .TF macro to man page. Closes Issue #96. M awk.1 ____________________________________________________________________________________________________________ Commit: 3b42cfaf73fbe63c1332f9cf2c8e4d90ab686f05 URL: https://git.catflap.org/onetrueawk/commit/?id=3b42cfaf73fbe63c1332f9cf2c8e4d90ab686f05 Author: Arnold D. Robbins (Tue 13 Oct 2020 18:52:43 BST) Committer: Arnold D. Robbins (Tue 13 Oct 2020 18:52:43 BST) Make it compile with g++. M FIXES M README.md M b.c M lex.c M lib.c M main.c M makefile M parse.c M run.c M tran.c ____________________________________________________________________________________________________________ Commit: 9804285af0866f90731a6e0ce767ab0e7b23b6c6 URL: https://git.catflap.org/onetrueawk/commit/?id=9804285af0866f90731a6e0ce767ab0e7b23b6c6 Author: Arnold D. Robbins (Sun 16 Aug 2020 16:48:05 BST) Committer: Arnold D. Robbins (Sun 16 Aug 2020 16:48:05 BST) Additional fixes for DJGPP. M FIXES M main.c M run.c ____________________________________________________________________________________________________________ Commit: 9c63cb6ccd303fb64b703ff0836400f204078621 URL: https://git.catflap.org/onetrueawk/commit/?id=9c63cb6ccd303fb64b703ff0836400f204078621 Author: Arnold D. Robbins (Fri 7 Aug 2020 11:15:17 BST) Committer: Arnold D. Robbins (Fri 7 Aug 2020 11:15:17 BST) Update FIXES and version in main.c. M FIXES M main.c ____________________________________________________________________________________________________________ Commit: b78514101907978f7776df1b5d95dac8a7798129 URL: https://git.catflap.org/onetrueawk/commit/?id=b78514101907978f7776df1b5d95dac8a7798129 Author: Chris (Fri 7 Aug 2020 11:10:20 BST) Committer: GitHub (Fri 7 Aug 2020 11:10:20 BST) printf: The argument p shall be a pointer to void. (#93) M run.c M tran.c ____________________________________________________________________________________________________________ Commit: 1b3984634f0ac427443b30fccf58d8140e07af96 URL: https://git.catflap.org/onetrueawk/commit/?id=1b3984634f0ac427443b30fccf58d8140e07af96 Author: Arnold D. Robbins (Tue 4 Aug 2020 08:02:26 BST) Committer: Arnold D. Robbins (Tue 4 Aug 2020 08:02:26 BST) Fix Issue #92; see FIXES. M FIXES M main.c M run.c ____________________________________________________________________________________________________________ Commit: 9b80a7c137720bc21d4be4152aeb6ab9e1810f61 URL: https://git.catflap.org/onetrueawk/commit/?id=9b80a7c137720bc21d4be4152aeb6ab9e1810f61 Author: Arnold D. Robbins (Thu 30 Jul 2020 15:15:58 BST) Committer: Arnold D. Robbins (Thu 30 Jul 2020 15:15:58 BST) Update version and FIXES. M FIXES M main.c ____________________________________________________________________________________________________________ Commit: 07f04384230b0c4cb8c47da7b5a6aebdea992b1e URL: https://git.catflap.org/onetrueawk/commit/?id=07f04384230b0c4cb8c47da7b5a6aebdea992b1e Author: Arnold D. Robbins (Thu 30 Jul 2020 15:12:45 BST) Committer: Arnold D. Robbins (Thu 30 Jul 2020 15:12:45 BST) Move exclusively to bison as parser generator. M .gitignore M ChangeLog M b.c M lex.c M lib.c M main.c M makefile M maketab.c M parse.c M run.c M tran.c ____________________________________________________________________________________________________________ Commit: 453ce8642b69943dee03e89fb7666a80f7c84bcf URL: https://git.catflap.org/onetrueawk/commit/?id=453ce8642b69943dee03e89fb7666a80f7c84bcf Author: Todd C. Miller (Wed 29 Jul 2020 19:31:29 BST) Committer: GitHub (Wed 29 Jul 2020 19:31:29 BST) 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. A bugs-fixed/pfile-overflow.awk A bugs-fixed/pfile-overflow.ok M main.c ____________________________________________________________________________________________________________ Commit: e22bb7c625df14ad8c9195124ed99cc41d7dfcd2 URL: https://git.catflap.org/onetrueawk/commit/?id=e22bb7c625df14ad8c9195124ed99cc41d7dfcd2 Author: Tim van der Molen <58601421+tbvdm@users.noreply.github.com> (Wed 29 Jul 2020 19:29:46 BST) Committer: GitHub (Wed 29 Jul 2020 19:29:46 BST) Fix the T.errmsg test (#91) Co-authored-by: Tim van der Molen M testdir/T.errmsg ____________________________________________________________________________________________________________ Commit: 22ee26b925f0c93b3539efd2e195af74bdf34fac URL: https://git.catflap.org/onetrueawk/commit/?id=22ee26b925f0c93b3539efd2e195af74bdf34fac Author: Todd C. Miller (Wed 29 Jul 2020 19:27:45 BST) Committer: GitHub (Wed 29 Jul 2020 19:27:45 BST) 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. M b.c A bugs-fixed/rs_underflow.awk A bugs-fixed/rs_underflow.in A bugs-fixed/rs_underflow.ok M lex.c ____________________________________________________________________________________________________________ Commit: b82b649aa65fbdff45869d1fd6d72fd2b85946cd URL: https://git.catflap.org/onetrueawk/commit/?id=b82b649aa65fbdff45869d1fd6d72fd2b85946cd Author: Todd C. Miller (Mon 27 Jul 2020 08:03:58 BST) Committer: GitHub (Mon 27 Jul 2020 08:03:58 BST) Avoid using stdio streams after they have been closed. (#89) * In closeall(), skip stdin and flush std{err,out} instead of closing. Otherwise awk could fclose(stdin) twice (it may appear more than once) and closing stderr means awk cannot report errors with other streams. For example, "awk 'BEGIN { getline < "-" }' < /dev/null" will call fclose(stdin) twice, with undefined results. * If closefile() is called on std{in,out,err}, freopen() /dev/null instead. Otherwise, awk will continue trying to perform I/O on a closed stdio stream, the behavior of which is undefined. M run.c ____________________________________________________________________________________________________________ Commit: 2a4146ec3027d12e375209e03ed1c5a9ab230da4 URL: https://git.catflap.org/onetrueawk/commit/?id=2a4146ec3027d12e375209e03ed1c5a9ab230da4 Author: Arnold D. Robbins (Thu 2 Jul 2020 19:39:56 BST) Committer: Arnold D. Robbins (Thu 2 Jul 2020 19:39:56 BST) Add a note about low-level maintenance. M README.md ____________________________________________________________________________________________________________ Commit: b2554a9e3d57042b9a6713888c1a65de25b3ed63 URL: https://git.catflap.org/onetrueawk/commit/?id=b2554a9e3d57042b9a6713888c1a65de25b3ed63 Author: Arnold D. Robbins (Thu 2 Jul 2020 19:35:06 BST) Committer: Arnold D. Robbins (Thu 2 Jul 2020 19:35:06 BST) Add regression script for bugs-fixed directory. M FIXES M REGRESS A bugs-fixed/REGRESS A bugs-fixed/fs-overflow.ok M bugs-fixed/missing-precision.ok M bugs-fixed/negative-nf.ok M main.c ____________________________________________________________________________________________________________ Commit: ee5b49bb3307e70054299a00d6c3308996049ce2 URL: https://git.catflap.org/onetrueawk/commit/?id=ee5b49bb3307e70054299a00d6c3308996049ce2 Author: Tim van der Molen <58601421+tbvdm@users.noreply.github.com> (Thu 2 Jul 2020 19:22:15 BST) Committer: GitHub (Thu 2 Jul 2020 19:22:15 BST) Fix regression with changed SUBSEP in subscript (#86) Commit 0d8778bbbb415810bfd126694a38b6bf4b71e79c reintroduced a regression that was fixed in commit 97a4b7ed215ae6446d13fe0eab15b5b3ae4da7da. The length of SUBSEP needs to be rechecked after calling execute(), in case SUBSEP itself has been changed. Co-authored-by: Tim van der Molen M run.c ____________________________________________________________________________________________________________ Commit: cc19af1308fadaad9ff1611155c666cd48cfe32b URL: https://git.catflap.org/onetrueawk/commit/?id=cc19af1308fadaad9ff1611155c666cd48cfe32b Author: Tim van der Molen <58601421+tbvdm@users.noreply.github.com> (Thu 2 Jul 2020 19:21:10 BST) Committer: GitHub (Thu 2 Jul 2020 19:21:10 BST) Fix concatenation regression (#85) The optimization in commit 1d6ddfd9c0ed7119c0601474cded3a385068e886 reintroduced the regression that was fixed in commit e26237434fb769d9c1ea239101eb5b24be588eea. Co-authored-by: Tim van der Molen M run.c ____________________________________________________________________________________________________________ Commit: f232de85f6787967552cd3efe79fc0b4f152d090 URL: https://git.catflap.org/onetrueawk/commit/?id=f232de85f6787967552cd3efe79fc0b4f152d090 Author: Arnold D. Robbins (Thu 25 Jun 2020 19:36:24 BST) Committer: Arnold D. Robbins (Thu 25 Jun 2020 19:36:24 BST) Update FIXES and date in main.c. M FIXES M main.c ____________________________________________________________________________________________________________ Commit: 0f25df0619e9523f5449aea50bcbe9d5c34a491f URL: https://git.catflap.org/onetrueawk/commit/?id=0f25df0619e9523f5449aea50bcbe9d5c34a491f Merge: e5a89e6 292d39f Author: Arnold D. Robbins (Thu 25 Jun 2020 19:34:50 BST) Committer: Arnold D. Robbins (Thu 25 Jun 2020 19:34:50 BST) Merge branch 'staging' ____________________________________________________________________________________________________________ Commit: e5a89e63feb665c476df819f5ce5f247d0068124 URL: https://git.catflap.org/onetrueawk/commit/?id=e5a89e63feb665c476df819f5ce5f247d0068124 Author: awkfan77 (Thu 25 Jun 2020 19:33:52 BST) Committer: GitHub (Thu 25 Jun 2020 19:33:52 BST) Fix onetrueawk#83 (#84) M b.c ____________________________________________________________________________________________________________ Commit: 292d39f7b7b15e56a10f4712467d4680c8fedb2e URL: https://git.catflap.org/onetrueawk/commit/?id=292d39f7b7b15e56a10f4712467d4680c8fedb2e Author: Todd C. Miller (Thu 25 Jun 2020 19:32:34 BST) Committer: GitHub (Thu 25 Jun 2020 19:32:34 BST) Rename dprintf to DPRINTF and use C99 cpp variadic arguments. (#82) POSIX specifies a dprintf function that operates on an fd instead of a stdio stream. Using upper case for macros is more idiomatic too. We no longer need to use an extra set of parentheses for debugging printf statements. M awk.h M b.c M lib.c M main.c M parse.c M run.c M tran.c ____________________________________________________________________________________________________________ Commit: cef51801109a3032c66aa76503a92ce66724725a URL: https://git.catflap.org/onetrueawk/commit/?id=cef51801109a3032c66aa76503a92ce66724725a Author: Arnold D. Robbins (Fri 12 Jun 2020 12:30:03 BST) Committer: Arnold D. Robbins (Fri 12 Jun 2020 12:30:03 BST) Fix Issue 78 and apply PR 80. M FIXES M lib.c M main.c ____________________________________________________________________________________________________________ Commit: b2de1c4ee74c1283bae52cd6a94a56308430f79e URL: https://git.catflap.org/onetrueawk/commit/?id=b2de1c4ee74c1283bae52cd6a94a56308430f79e Author: Todd C. Miller (Fri 12 Jun 2020 12:16:12 BST) Committer: GitHub (Fri 12 Jun 2020 12:16:12 BST) Clear errno before using errcheck() to avoid spurious errors. (#80) The errcheck() function treats an errno of ERANGE or EDOM as something to report, so make sure errno is set to zero before invoking a function to check so that a previous such errno value won't result in a false positive. This could happen simply due to input line fields that looked enough like floating-point input to trigger ERANGE. Reported by Jordan Geoghegan, fix from Philip Guenther. M run.c ____________________________________________________________________________________________________________ Commit: 754cf93645ad3a0061bbd434618a667ac6110121 URL: https://git.catflap.org/onetrueawk/commit/?id=754cf93645ad3a0061bbd434618a667ac6110121 Author: Arnold D. Robbins (Fri 5 Jun 2020 10:25:15 BST) Committer: Arnold D. Robbins (Fri 5 Jun 2020 10:25:15 BST) In fldbld(), check that inputFS is set. M FIXES M lib.c M main.c ____________________________________________________________________________________________________________ Commit: 1107437dceb036a21745779d911539cc273bb094 URL: https://git.catflap.org/onetrueawk/commit/?id=1107437dceb036a21745779d911539cc273bb094 Author: Arnold D. Robbins (Fri 15 May 2020 13:12:15 BST) Committer: Arnold D. Robbins (Fri 15 May 2020 13:12:15 BST) Fix test for use of noreturn. M FIXES M awk.h M main.c ____________________________________________________________________________________________________________ Commit: 93e5dd87a1fc9782b877d41efa6222f55a0e4167 URL: https://git.catflap.org/onetrueawk/commit/?id=93e5dd87a1fc9782b877d41efa6222f55a0e4167 Author: Arnold D. Robbins (Thu 16 Apr 2020 18:56:49 BST) Committer: Arnold D. Robbins (Thu 16 Apr 2020 18:56:49 BST) Fix noreturn for old compilers. M FIXES M awk.h M main.c ____________________________________________________________________________________________________________ Commit: c3d8f9c50011b7e8e19449b0712e700c0aeb8543 URL: https://git.catflap.org/onetrueawk/commit/?id=c3d8f9c50011b7e8e19449b0712e700c0aeb8543 Author: Arnold D. Robbins (Sun 5 Apr 2020 19:14:46 BST) Committer: Arnold D. Robbins (Sun 5 Apr 2020 19:14:46 BST) Update FIXES and version date. M FIXES M main.c ____________________________________________________________________________________________________________ Commit: bb538fe67eb91f5aeeb99012304c91aeeb08ba97 URL: https://git.catflap.org/onetrueawk/commit/?id=bb538fe67eb91f5aeeb99012304c91aeeb08ba97 Author: awkfan77 (Sun 5 Apr 2020 19:10:52 BST) Committer: GitHub (Sun 5 Apr 2020 19:10:52 BST) Replace __attribute__((__noreturn__)) with _Noreturn. (#77) * Replace __attribute__((__noreturn__)) with _Noreturn. * Change _Noreturn to noreturn and #include M awk.h M main.c M proto.h ____________________________________________________________________________________________________________ Commit: 2017c2e6eaa6a0d5a3e1ad2c9c891e82411dca83 URL: https://git.catflap.org/onetrueawk/commit/?id=2017c2e6eaa6a0d5a3e1ad2c9c891e82411dca83 Author: Arnold D. Robbins (Fri 28 Feb 2020 11:47:42 GMT) Committer: Arnold D. Robbins (Fri 28 Feb 2020 11:47:42 GMT) Fixes from Christo Zoulas. M FIXES M main.c ____________________________________________________________________________________________________________ Commit: 92b775b3ecc1a67223b7f639abe1f676534e81c1 URL: https://git.catflap.org/onetrueawk/commit/?id=92b775b3ecc1a67223b7f639abe1f676534e81c1 Merge: ffee778 7b245a0 Author: Arnold D. Robbins (Fri 28 Feb 2020 11:24:19 GMT) Committer: Arnold D. Robbins (Fri 28 Feb 2020 11:24:19 GMT) Merge branch 'master' into staging ____________________________________________________________________________________________________________ Commit: ffee7780fe08fa77f662a0903477545d9e26334f URL: https://git.catflap.org/onetrueawk/commit/?id=ffee7780fe08fa77f662a0903477545d9e26334f Author: zoulasc (Fri 28 Feb 2020 11:23:54 GMT) Committer: GitHub (Fri 28 Feb 2020 11:23:54 GMT) 3 more fixes (#75) * LC_NUMERIC radix issue. According to https://pubs.opengroup.org/onlinepubs/7990989775/xcu/awk.html The period character is the character recognized in processing awk programs. Make it so that during output we also print the period character, since this is what other awk implementations do, and it makes sense from an interoperability point of view. * print "T.builtin" in the error message * Fix backslash continuation line handling. * Keep track of RS processing so we apply the regex properly only once per record. M lex.c M lib.c M main.c M proto.h M run.c M testdir/T.builtin M testdir/T.misc ____________________________________________________________________________________________________________ Commit: 7b245a02668dcb9f9677b36f5745cfd07cc216bd URL: https://git.catflap.org/onetrueawk/commit/?id=7b245a02668dcb9f9677b36f5745cfd07cc216bd Author: enh-google <53129816+enh-google@users.noreply.github.com> (Fri 28 Feb 2020 11:18:29 GMT) Committer: GitHub (Fri 28 Feb 2020 11:18:29 GMT) Fix hwasan global overflow. (#76) * Fix hwasan global overflow. Crash found with https://source.android.com/devices/tech/debug/hwasan but also detectable by regular ASan. Here's an ASan crash: ==215690==ERROR: AddressSanitizer: global-buffer-overflow on address 0x55d90f8da140 at pc 0x55d90f8b7503 bp 0x7ffd3dae6100 sp 0x7ffd3dae60f8 READ of size 4 at 0x55d90f8da140 thread T0 #0 0x55d90f8b7502 in word /tmp/awk/lex.c:496 #1 0x55d90f8b939f in yylex /tmp/awk/lex.c:191 #2 0x55d90f894ab9 in yyparse /tmp/awk/awkgram.tab.c:2366 #3 0x55d90f89edc2 in main /tmp/awk/main.c:216 #4 0x7ff263a78bba in __libc_start_main ../csu/libc-start.c:308 #5 0x55d90f8945a9 in _start (/tmp/awk/a.out+0x115a9) 0x55d90f8da141 is located 0 bytes to the right of global variable 'infunc' defined in 'awkgram.y:35:6' (0x55d90f8da140) of size 1 SUMMARY: AddressSanitizer: global-buffer-overflow /tmp/awk/lex.c:496 in word Shadow bytes around the buggy address: 0x0abba1f133d0: f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 0x0abba1f133e0: f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 0x0abba1f133f0: f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 0x0abba1f13400: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00 0x0abba1f13410: 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 =>0x0abba1f13420: 04 f9 f9 f9 f9 f9 f9 f9[01]f9 f9 f9 f9 f9 f9 f9 0x0abba1f13430: 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 0x0abba1f13440: 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 0x0abba1f13450: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 0x0abba1f13460: f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 0x0abba1f13470: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 And here's the stack trace from hwasan: Stack Trace: RELADDR FUNCTION FILE:LINE 00000000000168d4 word external/one-true-awk/lex.c:496:18 000000000002d1ec yyparse y.tab.c:2460:16 000000000001c82c main external/one-true-awk/main.c:179:2 00000000000b41a0 __libc_init bionic/libc/bionic/libc_init_dynamic.cpp:151:8 As it says, we're doing a 4-byte read from a 1-byte global. `infunc` is declared as an int but defined as a bool. Signed-off-by: Evgenii Stepanov * Add ASan cflags to makefile. They're not used by default, but this way they're easily to hand next time they're wanted. M lex.c M makefile ____________________________________________________________________________________________________________ Commit: 91eaf7f7015ba2223e993532f5d65dfda4d1f33f URL: https://git.catflap.org/onetrueawk/commit/?id=91eaf7f7015ba2223e993532f5d65dfda4d1f33f Author: Arnold D. Robbins (Thu 20 Feb 2020 17:53:39 GMT) Committer: Arnold D. Robbins (Thu 20 Feb 2020 17:53:39 GMT) Small fix to the man page. M awk.1 ____________________________________________________________________________________________________________ Commit: e92c8e4d0e36ec2c0395d945079016fdd13d3cc3 URL: https://git.catflap.org/onetrueawk/commit/?id=e92c8e4d0e36ec2c0395d945079016fdd13d3cc3 Author: Arnold D. Robbins (Wed 19 Feb 2020 18:47:40 GMT) Committer: Arnold D. Robbins (Wed 19 Feb 2020 18:47:40 GMT) Update FIXES, version. M FIXES M main.c ____________________________________________________________________________________________________________ Commit: c2c8ecbedfa8a6392a04698cfe5eb2e74a20f025 URL: https://git.catflap.org/onetrueawk/commit/?id=c2c8ecbedfa8a6392a04698cfe5eb2e74a20f025 Author: zoulasc (Wed 19 Feb 2020 18:44:49 GMT) Committer: GitHub (Wed 19 Feb 2020 18:44:49 GMT) More minor fixes: (#73) * More minor fixes: - add missing initializers - fix sign-compare warnings - fix shadowed variable M lib.c M run.c ____________________________________________________________________________________________________________ Commit: ed6ff8c1cb3136df1ea34ea2172fa84245c99c2b URL: https://git.catflap.org/onetrueawk/commit/?id=ed6ff8c1cb3136df1ea34ea2172fa84245c99c2b Author: Arnold D. Robbins (Tue 18 Feb 2020 19:26:24 GMT) Committer: Arnold D. Robbins (Tue 18 Feb 2020 19:26:24 GMT) Small cleanups before merge to master. M FIXES M main.c M maketab.c ____________________________________________________________________________________________________________ Commit: 94e4c04561f7b9c2a3e7ef498fbfe7ce5b20ed40 URL: https://git.catflap.org/onetrueawk/commit/?id=94e4c04561f7b9c2a3e7ef498fbfe7ce5b20ed40 Author: zoulasc (Tue 18 Feb 2020 19:20:27 GMT) Committer: GitHub (Tue 18 Feb 2020 19:20:27 GMT) argument parsing cleanups, dynamic program file allocation, fpe error enhancement. (#72) * - enhance fpe handler to print the error type - cleanup argument parsing - dynamically allocate program filename array * bison uses enums now, not #define's, make it work with that. * We need to use either the enums or the defines but not both. This is because bison -y will create both enums and #defines, while bison without -y produces only the enums, and byacc produces just #defines. * fix indentation * Set the tokentype when we have a match in the scan, and reset it later when we decide that the match was bad. Fixes nbyacc. * - don't use pattern rules for portability - try to move both flavors of generated names for portability * Amend tests for the new error messages M lib.c M main.c M makefile M maketab.c M proto.h M testdir/T.flags ____________________________________________________________________________________________________________ Commit: e9c99065fd31253a4db4a6bce673decd143f7a3e URL: https://git.catflap.org/onetrueawk/commit/?id=e9c99065fd31253a4db4a6bce673decd143f7a3e Author: Arnold D. Robbins (Fri 7 Feb 2020 07:32:41 GMT) Committer: Arnold D. Robbins (Fri 7 Feb 2020 07:32:41 GMT) Update README.md PR instructions. M README.md ____________________________________________________________________________________________________________ Commit: e6fe674b404151c66440fd76bca7708cf3a2fe37 URL: https://git.catflap.org/onetrueawk/commit/?id=e6fe674b404151c66440fd76bca7708cf3a2fe37 Author: Arnold D. Robbins (Thu 6 Feb 2020 20:38:30 GMT) Committer: Arnold D. Robbins (Thu 6 Feb 2020 20:38:30 GMT) Restore zoulas fixes, stage 3. M run.c ____________________________________________________________________________________________________________ Commit: cd552112a7c9d4d8892190fef4b45c646d43ad5d URL: https://git.catflap.org/onetrueawk/commit/?id=cd552112a7c9d4d8892190fef4b45c646d43ad5d Author: Arnold D. Robbins (Thu 6 Feb 2020 20:32:55 GMT) Committer: Arnold D. Robbins (Thu 6 Feb 2020 20:32:55 GMT) Restore zoulas fixes, stages 2. M run.c ____________________________________________________________________________________________________________ Commit: 5068d20ef6ec53686488f1e48bd99e35e98efa40 URL: https://git.catflap.org/onetrueawk/commit/?id=5068d20ef6ec53686488f1e48bd99e35e98efa40 Author: Arnold D. Robbins (Thu 6 Feb 2020 20:27:31 GMT) Committer: Arnold D. Robbins (Thu 6 Feb 2020 20:27:31 GMT) Restore zoulas fixes, step 1. M FIXES M main.c M proto.h M run.c M testdir/T.builtin M tran.c ____________________________________________________________________________________________________________ Commit: d7a7e4d1479ac90299401df3d5de513d1190b39f URL: https://git.catflap.org/onetrueawk/commit/?id=d7a7e4d1479ac90299401df3d5de513d1190b39f Author: Arnold D. Robbins (Thu 6 Feb 2020 20:08:20 GMT) Committer: Arnold D. Robbins (Thu 6 Feb 2020 20:08:20 GMT) Revert zoulas changes until we can keep tests passing. M FIXES M main.c M proto.h M run.c M testdir/T.builtin M tran.c ____________________________________________________________________________________________________________ Commit: 8447cc9d47e7d2d829cb5318824c3c07002b9ab7 URL: https://git.catflap.org/onetrueawk/commit/?id=8447cc9d47e7d2d829cb5318824c3c07002b9ab7 Author: Arnold D. Robbins (Thu 6 Feb 2020 19:47:31 GMT) Committer: Arnold D. Robbins (Thu 6 Feb 2020 19:47:31 GMT) Update version and FIXES. M FIXES M main.c ____________________________________________________________________________________________________________ Commit: 3c755f73f48c4a80e6014cc99ff4acc6dd91dd82 URL: https://git.catflap.org/onetrueawk/commit/?id=3c755f73f48c4a80e6014cc99ff4acc6dd91dd82 Author: Arnold D. Robbins (Thu 6 Feb 2020 19:45:46 GMT) Committer: Arnold D. Robbins (Thu 6 Feb 2020 19:45:46 GMT) Fix closeall for portability. M run.c ____________________________________________________________________________________________________________ Commit: 110bdc6b3e807bd672bf3b1113d01d71744a797a URL: https://git.catflap.org/onetrueawk/commit/?id=110bdc6b3e807bd672bf3b1113d01d71744a797a Author: zoulasc (Thu 6 Feb 2020 19:25:36 GMT) Committer: GitHub (Thu 6 Feb 2020 19:25:36 GMT) misc fixes (#69) * Add a test for german case folding. * Add a function to copy a string with a string with a larger allocation (to be used by the case folding routines) * Add printf attributes to the printf-like functions and fix one format warning * Cleanup the tempfree macro * make more functions static * rename fp to frp (FRame Pointer) to avoid shadowing with fp (File Pointer). * add more const * fix indent in UPLUS case * add locale-aware case folding * make nfiles size_t * fix bugs in file closing: - compare fclose to EOF and pclose to -1 - use nfiles instead of FOPEN_MAX in closeall - don't close files we did not open (0,1,2) fpurge/fflush instead * - use NUL instead of 0 for char comparisons - add ISWS() macro - use continue; instead of ; * Check for existance of the german locale before using it. * Add missing parentheses, thanks Arnold. M proto.h M run.c M testdir/T.builtin M tran.c ____________________________________________________________________________________________________________ Commit: 768d6b58865eb9b0ff5ebd4ef430b767d2108224 URL: https://git.catflap.org/onetrueawk/commit/?id=768d6b58865eb9b0ff5ebd4ef430b767d2108224 Author: Arnold D. Robbins (Fri 31 Jan 2020 06:54:10 GMT) Committer: Arnold D. Robbins (Fri 31 Jan 2020 06:54:10 GMT) Get tests working again. M FIXES M lex.c ____________________________________________________________________________________________________________ Commit: 78c79c06d07735d5881ea08cf40e014a41d341af URL: https://git.catflap.org/onetrueawk/commit/?id=78c79c06d07735d5881ea08cf40e014a41d341af Author: Arnold D. Robbins (Fri 31 Jan 2020 06:40:11 GMT) Committer: Arnold D. Robbins (Fri 31 Jan 2020 06:40:11 GMT) Fix a{0}, update tests. M FIXES M main.c M testdir/T.int-expr M testdir/T.misc ____________________________________________________________________________________________________________ Commit: e2d71a98a4c901a4584d4565ae54a2a594def747 URL: https://git.catflap.org/onetrueawk/commit/?id=e2d71a98a4c901a4584d4565ae54a2a594def747 Merge: 6932571 a3e9e82 Author: Arnold D. Robbins (Fri 31 Jan 2020 06:25:51 GMT) Committer: Arnold D. Robbins (Fri 31 Jan 2020 06:25:51 GMT) Merge branch 'fix-int-expr-zero' ____________________________________________________________________________________________________________ Commit: 69325710b145823367d4c21c8b55c0657305bd1c URL: https://git.catflap.org/onetrueawk/commit/?id=69325710b145823367d4c21c8b55c0657305bd1c Author: Michael Forney (Fri 31 Jan 2020 06:23:34 GMT) Committer: GitHub (Fri 31 Jan 2020 06:23:34 GMT) Use MB_LEN_MAX instead of MB_CUR_MAX to avoid VLA (#70) MB_CUR_MAX is the maximum number of bytes in a multibyte character for the current locale, and might not be a constant expression. MB_LEN_MAX is the maximum number of bytes in a multibyte character for any locale, and always expands to a constant-expression. M lib.c ____________________________________________________________________________________________________________ Commit: a3e9e8285e825e8d49570d9564b88b726dd30c2a URL: https://git.catflap.org/onetrueawk/commit/?id=a3e9e8285e825e8d49570d9564b88b726dd30c2a Author: Arnold D. Robbins (Wed 1 Jan 2020 20:47:29 GMT) Committer: Arnold D. Robbins (Fri 24 Jan 2020 09:16:31 GMT) Fix for a{0} bug. M awkgram.y M b.c ____________________________________________________________________________________________________________ Commit: 4d9b12969eaa9770fecda1f90b465939675ce5d0 URL: https://git.catflap.org/onetrueawk/commit/?id=4d9b12969eaa9770fecda1f90b465939675ce5d0 Author: Arnold D. Robbins (Fri 24 Jan 2020 09:15:30 GMT) Committer: Arnold D. Robbins (Fri 24 Jan 2020 09:15:30 GMT) Update version info. M FIXES M awk.h M main.c ____________________________________________________________________________________________________________ Commit: 6a8770929d4653725e75f4a7a3446f227c4c6817 URL: https://git.catflap.org/onetrueawk/commit/?id=6a8770929d4653725e75f4a7a3446f227c4c6817 Author: zoulasc (Fri 24 Jan 2020 09:11:59 GMT) Committer: Arnold Robbins (Fri 24 Jan 2020 09:11:59 GMT) Small fixes (#68) * sprinkle const, static * account for lineno in unput * Add an EMPTY string that is used when a non-const empty string is needed. * make inputFS static and dynamically allocated * Simplify and in the process avoid -Wwritable-strings * make fs const to avoid -Wwritable-strings M awk.h M b.c M lex.c M lib.c M maketab.c M run.c ____________________________________________________________________________________________________________ Commit: 5a18f63b8dfc35fb7bcda4688661e354783d2bb7 URL: https://git.catflap.org/onetrueawk/commit/?id=5a18f63b8dfc35fb7bcda4688661e354783d2bb7 Author: Arnold D. Robbins (Wed 22 Jan 2020 09:10:59 GMT) Committer: Arnold D. Robbins (Wed 22 Jan 2020 09:10:59 GMT) Set the close-on-exec flag for file and pipe redirections. M ChangeLog M TODO M run.c ____________________________________________________________________________________________________________ Commit: de6284e0377e1c10f6249586df1a67311e9c5b2f URL: https://git.catflap.org/onetrueawk/commit/?id=de6284e0377e1c10f6249586df1a67311e9c5b2f Author: Arnold D. Robbins (Sun 19 Jan 2020 18:37:33 GMT) Committer: Arnold D. Robbins (Sun 19 Jan 2020 18:37:33 GMT) Fix Issue 60; sub/gsub follow POSIX if POSIXLY_CORRECT in the environment. M FIXES M awk.1 M main.c M run.c ____________________________________________________________________________________________________________ Commit: df6ccd29820f4e51d15eff6dab3c62014e877550 URL: https://git.catflap.org/onetrueawk/commit/?id=df6ccd29820f4e51d15eff6dab3c62014e877550 Author: Arnold D. Robbins (Fri 17 Jan 2020 12:08:59 GMT) Committer: Arnold D. Robbins (Fri 17 Jan 2020 12:08:59 GMT) Add TODO file. A TODO ____________________________________________________________________________________________________________ Commit: 3ed74525f64cc60368bae56a6e3e40cafd9489f1 URL: https://git.catflap.org/onetrueawk/commit/?id=3ed74525f64cc60368bae56a6e3e40cafd9489f1 Author: Arnold D. Robbins (Fri 17 Jan 2020 12:03:52 GMT) Committer: Arnold D. Robbins (Fri 17 Jan 2020 12:03:52 GMT) Update date in version. M main.c ____________________________________________________________________________________________________________ Commit: fed1a562c3d1f3cf3cac0dd1413679191ac43002 URL: https://git.catflap.org/onetrueawk/commit/?id=fed1a562c3d1f3cf3cac0dd1413679191ac43002 Author: Martijn Dekker (Fri 17 Jan 2020 12:02:57 GMT) Committer: Arnold Robbins (Fri 17 Jan 2020 12:02:57 GMT) Make I/O errors fatal instead of mere warnings (#63) An input/output error indicates a fatal condition, even if it occurs when closing a file. Awk should not return success on I/O error, but treat I/O errors as it already treats write errors. Test case: $ (trap '' PIPE; awk 'BEGIN { print "hi"; }'; echo "E $?" >&2) | : awk: i/o error occurred while closing /dev/stdout source line number 1 E 2 The test case pipes a line into a dummy command that reads no input, with SIGPIPE ignored so we rely on awk's own I/O checking. No write error is detected, because the pipe is buffered; the broken pipe is only detected as an I/O error on closing stdout. Before this commit, "E 0" was printed (indicating status 0/success) because an I/O error merely produced a warning. A shell script was unable to detect the I/O error using the exit status. M FIXES M run.c M testdir/T.misc ____________________________________________________________________________________________________________ Commit: 2976507cc10587a8d6d540c099b1d481547d7807 URL: https://git.catflap.org/onetrueawk/commit/?id=2976507cc10587a8d6d540c099b1d481547d7807 Author: Martijn Dekker (Fri 10 Jan 2020 10:13:26 GMT) Committer: Arnold Robbins (Fri 10 Jan 2020 10:13:26 GMT) rename T.concat to T.csconcat to avoid case-insensitive conflict (#64) On case-insensitive file systems (i.e.: macOS), T.concat and t.concat are the same file, so these conflicted. This commit renames T.concat to avoid the conflict. R076 testdir/T.concat testdir/T.csconcat ____________________________________________________________________________________________________________ Commit: 944989bf683d30f306d8f29a3eb8c68c7c603fb4 URL: https://git.catflap.org/onetrueawk/commit/?id=944989bf683d30f306d8f29a3eb8c68c7c603fb4 Author: Arnold D. Robbins (Mon 6 Jan 2020 07:01:46 GMT) Committer: Arnold D. Robbins (Mon 6 Jan 2020 07:01:46 GMT) Minor fixes. M ChangeLog M b.c M lex.c M tran.c ____________________________________________________________________________________________________________ Commit: c7eeb57210cc7104df233a243295c36ffe6a2117 URL: https://git.catflap.org/onetrueawk/commit/?id=c7eeb57210cc7104df233a243295c36ffe6a2117 Author: Arnold D. Robbins (Sun 5 Jan 2020 19:18:36 GMT) Committer: Arnold D. Robbins (Sun 5 Jan 2020 19:18:36 GMT) Fix merging of concatenated string constants. M FIXES M lex.c M main.c A testdir/T.concat M tran.c ____________________________________________________________________________________________________________ Commit: a1aad88728f6a8bf70c9bf9fd07b062aa6540040 URL: https://git.catflap.org/onetrueawk/commit/?id=a1aad88728f6a8bf70c9bf9fd07b062aa6540040 Author: Arnold D. Robbins (Wed 1 Jan 2020 20:45:04 GMT) Committer: Arnold D. Robbins (Wed 1 Jan 2020 20:45:04 GMT) Correct text in README.md. M README.md ____________________________________________________________________________________________________________ Commit: 140802c128089987e4f1382909f5a55d09132b75 URL: https://git.catflap.org/onetrueawk/commit/?id=140802c128089987e4f1382909f5a55d09132b75 Author: Arnold D. Robbins (Wed 1 Jan 2020 20:42:50 GMT) Committer: Arnold D. Robbins (Wed 1 Jan 2020 20:42:50 GMT) Small formatting cleanups in b.c. M ChangeLog M b.c ____________________________________________________________________________________________________________ Commit: 3358f3f36b956bc8595e6e8ea0f6373e8f44f1f9 URL: https://git.catflap.org/onetrueawk/commit/?id=3358f3f36b956bc8595e6e8ea0f6373e8f44f1f9 Author: Arnold D. Robbins (Wed 1 Jan 2020 20:42:20 GMT) Committer: Arnold D. Robbins (Wed 1 Jan 2020 20:42:20 GMT) Cleanups from valgrind. M ChangeLog M tran.c ____________________________________________________________________________________________________________ Commit: 7db55ba13f856c868b23a83dc3e10fa9fbc5fa3b URL: https://git.catflap.org/onetrueawk/commit/?id=7db55ba13f856c868b23a83dc3e10fa9fbc5fa3b Author: Arnold D. Robbins (Fri 27 Dec 2019 10:02:52 GMT) Committer: Arnold D. Robbins (Fri 27 Dec 2019 10:03:35 GMT) Bug fix in interval expressions. M ChangeLog M FIXES M b.c M main.c A testdir/T.int-expr ____________________________________________________________________________________________________________ Commit: 1951e01288b48817b8cb5e9b789f4f9fb01527b7 URL: https://git.catflap.org/onetrueawk/commit/?id=1951e01288b48817b8cb5e9b789f4f9fb01527b7 Author: Arnold D. Robbins (Wed 11 Dec 2019 19:15:38 GMT) Committer: Arnold D. Robbins (Wed 11 Dec 2019 19:15:38 GMT) More edits in README.md. M README.md ____________________________________________________________________________________________________________ Commit: eda30ac8c5b8b437c0a6ae3bdc0082e50c0fcd84 URL: https://git.catflap.org/onetrueawk/commit/?id=eda30ac8c5b8b437c0a6ae3bdc0082e50c0fcd84 Author: Arnold D. Robbins (Wed 11 Dec 2019 18:53:26 GMT) Committer: Arnold D. Robbins (Wed 11 Dec 2019 18:53:26 GMT) Add last updated date to README.md. M README.md ____________________________________________________________________________________________________________ Commit: bab7b07f01e47121bfbbd746582b8969462ae822 URL: https://git.catflap.org/onetrueawk/commit/?id=bab7b07f01e47121bfbbd746582b8969462ae822 Author: Arnold D. Robbins (Wed 11 Dec 2019 18:52:54 GMT) Committer: Arnold D. Robbins (Wed 11 Dec 2019 18:52:54 GMT) Move README to README.md. M ChangeLog R054 README README.md ____________________________________________________________________________________________________________ Commit: 0b82bc6eb4533552d12ca7dd817203dfb53a6b80 URL: https://git.catflap.org/onetrueawk/commit/?id=0b82bc6eb4533552d12ca7dd817203dfb53a6b80 Author: Arnold D. Robbins (Wed 11 Dec 2019 07:24:38 GMT) Committer: Arnold D. Robbins (Wed 11 Dec 2019 07:24:38 GMT) Small edits, update version and FIXES. M FIXES M main.c M run.c ____________________________________________________________________________________________________________ Commit: a96aebbbd601a619318312e835b76c3cd7816518 URL: https://git.catflap.org/onetrueawk/commit/?id=a96aebbbd601a619318312e835b76c3cd7816518 Author: zoulasc (Wed 11 Dec 2019 07:17:34 GMT) Committer: Arnold Robbins (Wed 11 Dec 2019 07:17:34 GMT) Fix printf format conversions. (#59) Further simplify printf % parsing by eating the length specifiers during the copy phase, and substitute 'j' when finalizing the format. Add some more tests for this. M run.c M testdir/T.expr ____________________________________________________________________________________________________________ Commit: af86dacfad85857b2ea9fa95150ddd8c671695ed URL: https://git.catflap.org/onetrueawk/commit/?id=af86dacfad85857b2ea9fa95150ddd8c671695ed Author: zoulasc (Mon 9 Dec 2019 07:00:45 GMT) Committer: Arnold Robbins (Mon 9 Dec 2019 07:00:45 GMT) Fix memory corruption manifested on 32 bit binaries (#58) * Don't update gototab entries for HAT (corrupts memory) M b.c ____________________________________________________________________________________________________________ Commit: 416c6db5ee829b5e97dc8001b28e475fd942dbb6 URL: https://git.catflap.org/onetrueawk/commit/?id=416c6db5ee829b5e97dc8001b28e475fd942dbb6 Author: Arnold D. Robbins (Sun 8 Dec 2019 19:43:32 GMT) Committer: Arnold D. Robbins (Sun 8 Dec 2019 19:43:32 GMT) Update version and FIXES. M FIXES M main.c ____________________________________________________________________________________________________________ Commit: ff5d67610caab71d38625c3f1788547d00391337 URL: https://git.catflap.org/onetrueawk/commit/?id=ff5d67610caab71d38625c3f1788547d00391337 Author: zoulasc (Sun 8 Dec 2019 19:41:27 GMT) Committer: Arnold Robbins (Sun 8 Dec 2019 19:41:27 GMT) Fix printf formats for integers (#57) * More cleanups: - sprinkle const - add a macro (setptr) that cheats const to temporarily NUL terminate strings remove casts from allocations - use strdup instead of strlen+strcpy - use x = malloc(sizeof(*x)) instead of x = malloc(sizeof(type of *x))) - add -Wcast-qual (and casts through unitptr_t in the two macros we cheat (xfree, setptr)). * More cleanups: - add const - use bounded sscanf - use snprintf instead of sprintf * More cleanup: - use snprintf/strlcat instead of sprintf/strcat - use %j instead of %l since we are casting to intmax_t/uintmax_t * Merge the 3 copies of the code that evaluated array strings with separators and convert them to keep track of lengths and use memcpy instead of strcat. * Fix formats for 32 bit machines broken by previous commit. We use intmax_t to provide maximum range for both 32 and 64 bit machines. M run.c ____________________________________________________________________________________________________________ Commit: 108224b4845d7ac622cdc3dcbe47b463e4253a4b URL: https://git.catflap.org/onetrueawk/commit/?id=108224b4845d7ac622cdc3dcbe47b463e4253a4b Author: Arnold D. Robbins (Sun 10 Nov 2019 19:19:18 GMT) Committer: Arnold D. Robbins (Sun 10 Nov 2019 19:19:18 GMT) Convert variables to bool and enum. M FIXES M awk.h M awkgram.y M b.c M lex.c M lib.c M main.c M proto.h M run.c M tran.c ____________________________________________________________________________________________________________ Commit: c879fbf013b5314c27fa236c987ea56a521420e6 URL: https://git.catflap.org/onetrueawk/commit/?id=c879fbf013b5314c27fa236c987ea56a521420e6 Author: Arnold D. Robbins (Fri 8 Nov 2019 12:40:18 GMT) Committer: Arnold D. Robbins (Fri 8 Nov 2019 12:40:18 GMT) From Ori Bernstein, ori@eigenstate.org, for FS="" in multibyte locale. M FIXES M lib.c M main.c ____________________________________________________________________________________________________________ Commit: 0e1bebcc09e647ab3f7f6bd8fba34ee4a64efc48 URL: https://git.catflap.org/onetrueawk/commit/?id=0e1bebcc09e647ab3f7f6bd8fba34ee4a64efc48 Author: Arnold D. Robbins (Fri 8 Nov 2019 12:36:37 GMT) Committer: Arnold D. Robbins (Fri 8 Nov 2019 12:36:37 GMT) Small fixes in the test suite. M ChangeLog M testdir/T.chem M testdir/T.lilly ____________________________________________________________________________________________________________ Commit: b73bfabb42061208f3e534db51ea760d95a307dc URL: https://git.catflap.org/onetrueawk/commit/?id=b73bfabb42061208f3e534db51ea760d95a307dc Author: Arnold D. Robbins (Fri 8 Nov 2019 12:31:05 GMT) Committer: Arnold D. Robbins (Fri 8 Nov 2019 12:31:05 GMT) Typo fix in FIXES. M FIXES ____________________________________________________________________________________________________________ Commit: 2a8f1758b9bfe5f4c4b5db2fe2339a4bc18c88c0 URL: https://git.catflap.org/onetrueawk/commit/?id=2a8f1758b9bfe5f4c4b5db2fe2339a4bc18c88c0 Author: Arnold D. Robbins (Fri 25 Oct 2019 16:03:02 BST) Committer: Arnold D. Robbins (Fri 25 Oct 2019 16:03:02 BST) Update FIXES and main.c version. M FIXES M main.c ____________________________________________________________________________________________________________ Commit: 938b26cfaeaa7b1e7ba69d7d5985e63aefe0a0f4 URL: https://git.catflap.org/onetrueawk/commit/?id=938b26cfaeaa7b1e7ba69d7d5985e63aefe0a0f4 Author: Arnold D. Robbins (Fri 25 Oct 2019 16:01:17 BST) Committer: Arnold D. Robbins (Fri 25 Oct 2019 16:01:17 BST) Don't use 'j' flag on %x. Remove an unnecessary cast. M run.c ____________________________________________________________________________________________________________ Commit: 0d8778bbbb415810bfd126694a38b6bf4b71e79c URL: https://git.catflap.org/onetrueawk/commit/?id=0d8778bbbb415810bfd126694a38b6bf4b71e79c Author: zoulasc (Fri 25 Oct 2019 15:59:10 BST) Committer: Arnold Robbins (Fri 25 Oct 2019 15:59:09 BST) more cleanups (#55) * More cleanups: - sprinkle const - add a macro (setptr) that cheats const to temporarily NUL terminate strings remove casts from allocations - use strdup instead of strlen+strcpy - use x = malloc(sizeof(*x)) instead of x = malloc(sizeof(type of *x))) - add -Wcast-qual (and casts through unitptr_t in the two macros we cheat (xfree, setptr)). * More cleanups: - add const - use bounded sscanf - use snprintf instead of sprintf * More cleanup: - use snprintf/strlcat instead of sprintf/strcat - use %j instead of %l since we are casting to intmax_t/uintmax_t * Merge the 3 copies of the code that evaluated array strings with separators and convert them to keep track of lengths and use memcpy instead of strcat. M lib.c M maketab.c M proto.h M run.c ____________________________________________________________________________________________________________ Commit: 1d6ddfd9c0ed7119c0601474cded3a385068e886 URL: https://git.catflap.org/onetrueawk/commit/?id=1d6ddfd9c0ed7119c0601474cded3a385068e886 Author: Arnold D. Robbins (Thu 24 Oct 2019 15:06:10 BST) Committer: Arnold D. Robbins (Thu 24 Oct 2019 15:06:10 BST) Optimize string concatenation. M FIXES M run.c ____________________________________________________________________________________________________________ Commit: 8b92a4abcb83d7d463ff9e7b8356808e73a6156b URL: https://git.catflap.org/onetrueawk/commit/?id=8b92a4abcb83d7d463ff9e7b8356808e73a6156b Author: Arnold D. Robbins (Thu 24 Oct 2019 14:44:00 BST) Committer: Arnold D. Robbins (Thu 24 Oct 2019 14:44:00 BST) Add 'distclean' target to makefile. M makefile ____________________________________________________________________________________________________________ Commit: 961eec1fb550c90fa9ae09eebc42dd072f1b7718 URL: https://git.catflap.org/onetrueawk/commit/?id=961eec1fb550c90fa9ae09eebc42dd072f1b7718 Author: Arnold D. Robbins (Thu 24 Oct 2019 14:42:51 BST) Committer: Arnold D. Robbins (Thu 24 Oct 2019 14:42:51 BST) Additional fixes after merge of PR 53. M FIXES M awk.h M main.c M makefile ____________________________________________________________________________________________________________ Commit: 6589208eaf7e7da73a5a3fe8420c37c970206edc URL: https://git.catflap.org/onetrueawk/commit/?id=6589208eaf7e7da73a5a3fe8420c37c970206edc Author: zoulasc (Thu 24 Oct 2019 14:40:15 BST) Committer: Arnold Robbins (Thu 24 Oct 2019 14:40:15 BST) More cleanups: (#53) - sprinkle const - add a macro (setptr) that cheats const to temporarily NUL terminate strings remove casts from allocations - use strdup instead of strlen+strcpy - use x = malloc(sizeof(*x)) instead of x = malloc(sizeof(type of *x))) - add -Wcast-qual (and casts through unitptr_t in the two macros we cheat (xfree, setptr)). M awk.h M b.c M lex.c M lib.c M maketab.c M parse.c M proto.h M run.c M tran.c ____________________________________________________________________________________________________________ Commit: 1633ba1c8830ccd6592f27c732980a60579d81f2 URL: https://git.catflap.org/onetrueawk/commit/?id=1633ba1c8830ccd6592f27c732980a60579d81f2 Author: Arnold D. Robbins (Thu 17 Oct 2019 18:06:21 BST) Committer: Arnold D. Robbins (Thu 17 Oct 2019 18:06:21 BST) Update FIXES and date in main.c. M FIXES M main.c ____________________________________________________________________________________________________________ Commit: c16e8696d7f40f041fdfd7a730d8656bcda437b6 URL: https://git.catflap.org/onetrueawk/commit/?id=c16e8696d7f40f041fdfd7a730d8656bcda437b6 Author: zoulasc (Thu 17 Oct 2019 18:04:46 BST) Committer: Arnold Robbins (Thu 17 Oct 2019 18:04:45 BST) Amended the all pull request. (#51) * [from NetBSD] - dynamic state allocation - centralize vector growth - centralize int array allocation - no casts for void * functions * - add missing allocation - revert change loop in pmatch M awk.h M b.c ____________________________________________________________________________________________________________ Commit: 0ba1d0391d75532d3e75142bc904f862b0e033a4 URL: https://git.catflap.org/onetrueawk/commit/?id=0ba1d0391d75532d3e75142bc904f862b0e033a4 Author: Arnold D. Robbins (Tue 8 Oct 2019 08:30:09 BST) Committer: Arnold D. Robbins (Tue 8 Oct 2019 08:30:09 BST) Small code formatting fix in run.c. M run.c ____________________________________________________________________________________________________________ Commit: 5ff28208dbc73542eea072a4d80bb54b87aa17a2 URL: https://git.catflap.org/onetrueawk/commit/?id=5ff28208dbc73542eea072a4d80bb54b87aa17a2 Author: Arnold D. Robbins (Mon 7 Oct 2019 13:50:53 BST) Committer: Arnold D. Robbins (Mon 7 Oct 2019 13:50:53 BST) Fix compile warnings. M ChangeLog M b.c M proto.h ____________________________________________________________________________________________________________ Commit: 7cae39dfa53e17981990f649a2f6b4c1ba856112 URL: https://git.catflap.org/onetrueawk/commit/?id=7cae39dfa53e17981990f649a2f6b4c1ba856112 Author: Arnold D. Robbins (Sun 6 Oct 2019 20:34:20 BST) Committer: Arnold D. Robbins (Sun 6 Oct 2019 20:34:20 BST) Make RS as regexp work without ifdef. Add doc, bump version. M ChangeLog M FIXES M awk.1 M lib.c M main.c ____________________________________________________________________________________________________________ Commit: 643a5a3dad633431c6ce8831944c23059a6be309 URL: https://git.catflap.org/onetrueawk/commit/?id=643a5a3dad633431c6ce8831944c23059a6be309 Author: Arnold D. Robbins (Sun 28 Jul 2019 18:12:05 BST) Committer: Arnold D. Robbins (Tue 10 Sep 2019 10:19:48 BST) Add RS as regex code, ifdefed-out, from NetBSD. M b.c M lib.c M proto.h ____________________________________________________________________________________________________________ Commit: 34a6f41cca9141668ce49140c1b36690b18961dc URL: https://git.catflap.org/onetrueawk/commit/?id=34a6f41cca9141668ce49140c1b36690b18961dc Author: Arnold D. Robbins (Tue 10 Sep 2019 07:57:07 BST) Committer: Arnold D. Robbins (Tue 10 Sep 2019 07:57:07 BST) Update FIXES and version date in main.c. M FIXES M main.c ____________________________________________________________________________________________________________ Commit: ad9bd2f40a89ec9533b92254b86a756cf4f40fd4 URL: https://git.catflap.org/onetrueawk/commit/?id=ad9bd2f40a89ec9533b92254b86a756cf4f40fd4 Author: Alexander Richardson (Tue 10 Sep 2019 07:54:53 BST) Committer: Arnold Robbins (Tue 10 Sep 2019 07:54:53 BST) Avoid creating an out-of-bounds pointer in word() (#48) As it is never dereferenced in the n == -1 case it shouldn't cause any problems. However, UBSAN complains about this, so it is required to run the tests when compiling with -fsanitize=undefined. M lex.c ____________________________________________________________________________________________________________ Commit: cbf924342b63a095a4c6842280c3085b1b63ae45 URL: https://git.catflap.org/onetrueawk/commit/?id=cbf924342b63a095a4c6842280c3085b1b63ae45 Author: Alexander Richardson (Tue 10 Sep 2019 07:54:11 BST) Committer: Arnold Robbins (Tue 10 Sep 2019 07:54:11 BST) Fix out-of-bounds access in gototab array for caret character (#47) When matching a caret, the expression `f->gototab[s][c] = f->curstat;` in cgoto() will index the 2D-array gototab with [s][261]. However, gototab is declared as being of size [NSTATES][NCHARS], so [32][259]. Therefore, this assignment will write to the state for character 0x1. I'm not sure how to create a regression test for this, but increasing the array size to HAT+1 values fixes the error and the tests still pass. I found this issue while running awk on a CHERI system with sub-object protection enabled. On x86, this can be reproduced by compiling awk with -fsanitize=undefined. M awk.h M b.c ____________________________________________________________________________________________________________ Commit: 50e6962495a6f36f545d4102ccb82a2dc50b0a20 URL: https://git.catflap.org/onetrueawk/commit/?id=50e6962495a6f36f545d4102ccb82a2dc50b0a20 Author: Sevan Janiyan (Tue 13 Aug 2019 18:27:51 BST) Committer: Arnold Robbins (Tue 13 Aug 2019 18:27:51 BST) Drop Mac OS 9 reference (#46) "buildmac" file is no longer supplied. M README ____________________________________________________________________________________________________________ Commit: c95b96020f9185e64a80fadc9cd770a5d8684aa5 URL: https://git.catflap.org/onetrueawk/commit/?id=c95b96020f9185e64a80fadc9cd770a5d8684aa5 Author: Arnold D. Robbins (Sun 28 Jul 2019 18:09:24 BST) Committer: Arnold D. Robbins (Sun 28 Jul 2019 18:09:24 BST) Grammar optimization from NetBSD: Two adjacent string constants are merged. M FIXES M awkgram.y M main.c M proto.h M tran.c ____________________________________________________________________________________________________________ Commit: 795a06b58cdea7f8bb1858e7c383582c660fdf85 URL: https://git.catflap.org/onetrueawk/commit/?id=795a06b58cdea7f8bb1858e7c383582c660fdf85 Author: Arnold D. Robbins (Sun 28 Jul 2019 12:51:52 BST) Committer: Arnold D. Robbins (Sun 28 Jul 2019 12:51:52 BST) Remove trailing whitespace on lines in all files. M FIXES M awk.1 M awk.h M awkgram.y M b.c M lex.c M lib.c M main.c M makefile M tran.c ____________________________________________________________________________________________________________ Commit: cebda366a942aed45f7087b4ff74921da431cdbf URL: https://git.catflap.org/onetrueawk/commit/?id=cebda366a942aed45f7087b4ff74921da431cdbf Author: Arnold D. Robbins (Fri 26 Jul 2019 10:57:48 BST) Committer: Arnold D. Robbins (Fri 26 Jul 2019 10:57:48 BST) Improve cleanup of test directory upon 'make clean'. M makefile ____________________________________________________________________________________________________________ Commit: 5b602ca8a2c939e930ea84347ed5c9de256049f3 URL: https://git.catflap.org/onetrueawk/commit/?id=5b602ca8a2c939e930ea84347ed5c9de256049f3 Author: Martijn Dekker (Fri 26 Jul 2019 09:46:58 BST) Committer: Arnold Robbins (Fri 26 Jul 2019 09:46:58 BST) Add support for "\a" and "\v" to regex and command line args (#44) Support POSIX-specified C-style escape sequences "\a" (alarm) and "\v" (vertical tab) in command line arguments and regular expressions, further to the support for them in strings added on Apr 9, 1989. These now no longer match as literal "a" and "v" characters (as they don't on gawk and mawk). IOW, lex.c already supported these (lines 390-391 as of 4e343460); the support needed to be added to b.c and tran.c. Relevant POSIX reference: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/awk.html#tag_20_06_13_04 M FIXES M b.c M main.c M tran.c ____________________________________________________________________________________________________________ Commit: 4e34346094e52de09cf9d4f9ae632e81bfe0f981 URL: https://git.catflap.org/onetrueawk/commit/?id=4e34346094e52de09cf9d4f9ae632e81bfe0f981 Author: Arnold D. Robbins (Wed 17 Jul 2019 19:14:52 BST) Committer: Arnold D. Robbins (Wed 17 Jul 2019 19:14:52 BST) Update FIXES and main.c version. M FIXES M main.c ____________________________________________________________________________________________________________ Commit: 9310d452c9cd1dbff4d87557001634ed8d624ed4 URL: https://git.catflap.org/onetrueawk/commit/?id=9310d452c9cd1dbff4d87557001634ed8d624ed4 Author: M. Warner Losh (Sun 2 Jun 2019 22:23:06 BST) Committer: Arnold D. Robbins (Tue 16 Jul 2019 20:23:19 BST) Apply the following from FreeBSD / OpenBSD: 323965 | imp | 2017-09-23 23:04:06 -0600 (Sat, 23 Sep 2017) | 8 lines Don't display empty error context. Context extraction didn't handle this case and showed uninitialized memory. Obtained from: OpenBSD lib.c 1.21 Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D12379 M lib.c ____________________________________________________________________________________________________________ Commit: 0939e3392b0249d9fd15922aa3844cd65f9b4489 URL: https://git.catflap.org/onetrueawk/commit/?id=0939e3392b0249d9fd15922aa3844cd65f9b4489 Author: M. Warner Losh (Sun 2 Jun 2019 22:17:29 BST) Committer: Arnold D. Robbins (Tue 16 Jul 2019 20:23:02 BST) Apply r323963 from FreeBSD (pulling in the fix from OpenBSD) | Fix uninitialized variable | | echo | awk 'BEGIN {i=$1; print i}' prints a boatload of stack | garbage. NUL terminate the memory returned from malloc to prevent it. | | Obtained from: OpenBSD run.c 1.40 | Sponsored by: Netflix | Differential Revision: https://reviews.freebsd.org/D12379 M lib.c ____________________________________________________________________________________________________________ Commit: 966fdc9c293ed28fb2243801090801db8894a59a URL: https://git.catflap.org/onetrueawk/commit/?id=966fdc9c293ed28fb2243801090801db8894a59a Author: M. Warner Losh (Sun 2 Jun 2019 21:53:15 BST) Committer: Arnold D. Robbins (Tue 16 Jul 2019 20:21:33 BST) Bring in fix from FreeBSD: | r323964 | imp | 2017-09-23 23:04:02 -0600 (Sat, 23 Sep 2017) | 6 lines | | Fix %c for floating values that become 0 when coerced to int. | | Obtained from: OpenBSD run.c 1.36 (From Jeremy Devenport) | Sponsored by: Netflix | Differential Revision: https://reviews.freebsd.org/D12379 M run.c ____________________________________________________________________________________________________________ Commit: c70b9fe8823e8f21628725e634d5db1a6e3948d0 URL: https://git.catflap.org/onetrueawk/commit/?id=c70b9fe8823e8f21628725e634d5db1a6e3948d0 Author: pfg (Fri 19 Sep 2014 19:24:02 BST) Committer: Arnold D. Robbins (Tue 16 Jul 2019 20:19:56 BST) awk: Use random(3) instead of rand(3) While none of them is considered even near to cryptographic level, random(3) is a better random generator than rand(3). Use random(3) for awk as is done in other systems. Thanks to Chenguang Li for discussing this in the lists and submitting the patch upstream. PR: 193147 MFC after: 5 weeks git-svn-id: svn+ssh://svn.freebsd.org/base/head@271879 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f M awk.1 M main.c M run.c ____________________________________________________________________________________________________________ Commit: 650d868ec4bbb566255702fef37480438163d3ae URL: https://git.catflap.org/onetrueawk/commit/?id=650d868ec4bbb566255702fef37480438163d3ae Author: pfg (Thu 16 Mar 2017 21:32:05 GMT) Committer: Arnold D. Robbins (Tue 16 Jul 2019 20:12:26 BST) MFV r315425: one-true-awk: have calloc(3) do the multiplication. MFC after: 3 days git-svn-id: svn+ssh://svn.freebsd.org/base/head@315426 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f M b.c ____________________________________________________________________________________________________________ Commit: 524219409a5b235041353da32d9965ec96be1cd7 URL: https://git.catflap.org/onetrueawk/commit/?id=524219409a5b235041353da32d9965ec96be1cd7 Author: pfg (Fri 3 Jun 2016 22:23:11 BST) Committer: Arnold D. Robbins (Tue 16 Jul 2019 20:11:57 BST) MFV r300961: one-true-awk: replace 0 with NULL for pointers Also remove a redundant semicolon. Also had to rebase on upstream pull. git-svn-id: svn+ssh://svn.freebsd.org/base/head@301289 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f M b.c M lex.c M maketab.c M parse.c M run.c M tran.c ____________________________________________________________________________________________________________ Commit: b8e082709501405ec15071dfd1508f52d6985072 URL: https://git.catflap.org/onetrueawk/commit/?id=b8e082709501405ec15071dfd1508f52d6985072 Author: Arnold D. Robbins (Tue 16 Jul 2019 18:54:44 BST) Committer: Arnold D. Robbins (Tue 16 Jul 2019 18:54:44 BST) Update FIXES and version in main.c. M FIXES M main.c ____________________________________________________________________________________________________________ Commit: 147521b8315184004d69f3b75cf0bcfb49a717eb URL: https://git.catflap.org/onetrueawk/commit/?id=147521b8315184004d69f3b75cf0bcfb49a717eb Author: Arnold D. Robbins (Tue 16 Jul 2019 18:50:23 BST) Committer: Arnold D. Robbins (Tue 16 Jul 2019 18:50:23 BST) Revise testdir/T.split per PR #42. M testdir/T.split ____________________________________________________________________________________________________________ Commit: 891690942a5f935c2952ad5c30208d6331096a93 URL: https://git.catflap.org/onetrueawk/commit/?id=891690942a5f935c2952ad5c30208d6331096a93 Author: Arnold D. Robbins (Tue 16 Jul 2019 18:37:13 BST) Committer: Arnold D. Robbins (Tue 16 Jul 2019 18:37:13 BST) Update T.split to match code changes. M testdir/T.split ____________________________________________________________________________________________________________ Commit: 00170ba76c83a1a30d651a7ed45489ccb259b04a URL: https://git.catflap.org/onetrueawk/commit/?id=00170ba76c83a1a30d651a7ed45489ccb259b04a Merge: 7e368c2 b463680 Author: Arnold D. Robbins (Sun 14 Jul 2019 18:39:02 BST) Committer: Arnold D. Robbins (Sun 14 Jul 2019 18:39:02 BST) Merge remote-tracking branch 'melloc/posix-fs' into save-fs-fixes ____________________________________________________________________________________________________________ Commit: 7e368c272a128c656fa1c805edf55e72b04a293e URL: https://git.catflap.org/onetrueawk/commit/?id=7e368c272a128c656fa1c805edf55e72b04a293e Author: Arnold D. Robbins (Mon 24 Jun 2019 08:13:10 BST) Committer: Arnold D. Robbins (Mon 24 Jun 2019 08:13:10 BST) Update FIXES for test suite changes. M FIXES ____________________________________________________________________________________________________________ Commit: ab911ab204ef1dc8f80cf673ad6362f999fc24bb URL: https://git.catflap.org/onetrueawk/commit/?id=ab911ab204ef1dc8f80cf673ad6362f999fc24bb Author: Arnold D. Robbins (Mon 24 Jun 2019 08:10:24 BST) Committer: Arnold D. Robbins (Mon 24 Jun 2019 08:10:24 BST) Update makefile, mainly to clean up testdir. M ChangeLog M makefile ____________________________________________________________________________________________________________ Commit: 4a99bd14d0093b53215c1ec1cc9ee5209028973b URL: https://git.catflap.org/onetrueawk/commit/?id=4a99bd14d0093b53215c1ec1cc9ee5209028973b Author: Arnold D. Robbins (Sun 23 Jun 2019 10:14:32 BST) Committer: Arnold D. Robbins (Sun 23 Jun 2019 10:14:32 BST) Remove awktest.tar. M ChangeLog D awktest.tar ____________________________________________________________________________________________________________ Commit: d6c466c3671aeecf5e64b5bf9692f44517aefb46 URL: https://git.catflap.org/onetrueawk/commit/?id=d6c466c3671aeecf5e64b5bf9692f44517aefb46 Author: Arnold D. Robbins (Sun 23 Jun 2019 10:13:57 BST) Committer: Arnold D. Robbins (Sun 23 Jun 2019 10:13:57 BST) Extract testdir. M ChangeLog A testdir/Compare.T1 A testdir/Compare.drek A testdir/Compare.p A testdir/Compare.t A testdir/Compare.tt A testdir/NOTES A testdir/README.TESTS A testdir/REGRESS A testdir/T.-f-f A testdir/T.argv A testdir/T.arnold A testdir/T.beebe A testdir/T.builtin A testdir/T.chem A testdir/T.close A testdir/T.clv A testdir/T.delete A testdir/T.errmsg A testdir/T.expr A testdir/T.exprconv A testdir/T.flags A testdir/T.func A testdir/T.gawk A testdir/T.getline A testdir/T.latin1 A testdir/T.lilly A testdir/T.main A testdir/T.misc A testdir/T.nextfile A testdir/T.overflow A testdir/T.re A testdir/T.recache A testdir/T.redir A testdir/T.split A testdir/T.sub A testdir/T.system A testdir/arnold-fixes.tar A testdir/beebe.tar A testdir/bib A testdir/bundle.awk A testdir/chem.awk A testdir/cleanup A testdir/countries A testdir/ctimes A testdir/echo.c A testdir/funstack.awk A testdir/funstack.in A testdir/funstack.ok A testdir/ind A testdir/latin1 A testdir/lilly.ifile A testdir/lilly.out A testdir/lilly.progs A testdir/lsd1.p A testdir/p.1 A testdir/p.10 A testdir/p.11 A testdir/p.12 A testdir/p.13 A testdir/p.14 A testdir/p.15 A testdir/p.16 A testdir/p.17 A testdir/p.18 A testdir/p.19 A testdir/p.2 A testdir/p.20 A testdir/p.21 A testdir/p.21a A testdir/p.22 A testdir/p.23 A testdir/p.24 A testdir/p.25 A testdir/p.26 A testdir/p.26a A testdir/p.27 A testdir/p.28 A testdir/p.29 A testdir/p.3 A testdir/p.30 A testdir/p.31 A testdir/p.32 A testdir/p.33 A testdir/p.34 A testdir/p.35 A testdir/p.36 A testdir/p.37 A testdir/p.38 A testdir/p.39 A testdir/p.4 A testdir/p.40 A testdir/p.41 A testdir/p.42 A testdir/p.43 A testdir/p.44 A testdir/p.45 A testdir/p.46 A testdir/p.47 A testdir/p.48 A testdir/p.48a A testdir/p.48b A testdir/p.49 A testdir/p.5 A testdir/p.50 A testdir/p.51 A testdir/p.52 A testdir/p.5a A testdir/p.6 A testdir/p.7 A testdir/p.8 A testdir/p.9 A testdir/p.table A testdir/penicil.p A testdir/res.p A testdir/sgi.ctimes A testdir/t.0 A testdir/t.0a A testdir/t.1 A testdir/t.1.x A testdir/t.2 A testdir/t.2.x A testdir/t.3 A testdir/t.3.x A testdir/t.4 A testdir/t.4.x A testdir/t.5.x A testdir/t.6 A testdir/t.6.x A testdir/t.6a A testdir/t.6b A testdir/t.8.x A testdir/t.8.y A testdir/t.NF A testdir/t.a A testdir/t.addops A testdir/t.aeiou A testdir/t.aeiouy A testdir/t.arith A testdir/t.array A testdir/t.array1 A testdir/t.array2 A testdir/t.assert A testdir/t.avg A testdir/t.b.x A testdir/t.be A testdir/t.beginexit A testdir/t.beginnext A testdir/t.break A testdir/t.break1 A testdir/t.break2 A testdir/t.break3 A testdir/t.bug1 A testdir/t.builtins A testdir/t.cat A testdir/t.cat1 A testdir/t.cat2 A testdir/t.cmp A testdir/t.coerce A testdir/t.coerce2 A testdir/t.comment A testdir/t.comment1 A testdir/t.concat A testdir/t.cond A testdir/t.contin A testdir/t.count A testdir/t.crlf A testdir/t.cum A testdir/t.d.x A testdir/t.delete0 A testdir/t.delete1 A testdir/t.delete2 A testdir/t.delete3 A testdir/t.do A testdir/t.e A testdir/t.else A testdir/t.exit A testdir/t.exit1 A testdir/t.f A testdir/t.f.x A testdir/t.f0 A testdir/t.f1 A testdir/t.f2 A testdir/t.f3 A testdir/t.f4 A testdir/t.for A testdir/t.for1 A testdir/t.for2 A testdir/t.for3 A testdir/t.format4 A testdir/t.fun A testdir/t.fun0 A testdir/t.fun1 A testdir/t.fun2 A testdir/t.fun3 A testdir/t.fun4 A testdir/t.fun5 A testdir/t.getline1 A testdir/t.getval A testdir/t.gsub A testdir/t.gsub1 A testdir/t.gsub3 A testdir/t.gsub4 A testdir/t.i.x A testdir/t.if A testdir/t.in A testdir/t.in1 A testdir/t.in2 A testdir/t.in3 A testdir/t.incr A testdir/t.incr2 A testdir/t.incr3 A testdir/t.index A testdir/t.intest A testdir/t.intest2 A testdir/t.j.x A testdir/t.longstr A testdir/t.makef A testdir/t.match A testdir/t.match1 A testdir/t.max A testdir/t.mod A testdir/t.monotone A testdir/t.nameval A testdir/t.next A testdir/t.not A testdir/t.null0 A testdir/t.ofmt A testdir/t.ofs A testdir/t.ors A testdir/t.pat A testdir/t.pipe A testdir/t.pp A testdir/t.pp1 A testdir/t.pp2 A testdir/t.printf A testdir/t.printf2 A testdir/t.quote A testdir/t.randk A testdir/t.re1 A testdir/t.re1a A testdir/t.re2 A testdir/t.re3 A testdir/t.re4 A testdir/t.re5 A testdir/t.re7 A testdir/t.reFS A testdir/t.rec A testdir/t.redir1 A testdir/t.reg A testdir/t.roff A testdir/t.sep A testdir/t.seqno A testdir/t.set0 A testdir/t.set0a A testdir/t.set0b A testdir/t.set1 A testdir/t.set2 A testdir/t.set3 A testdir/t.split1 A testdir/t.split2 A testdir/t.split2a A testdir/t.split3 A testdir/t.split4 A testdir/t.split8 A testdir/t.split9 A testdir/t.split9a A testdir/t.stately A testdir/t.strcmp A testdir/t.strcmp1 A testdir/t.strnum A testdir/t.sub0 A testdir/t.sub1 A testdir/t.sub2 A testdir/t.sub3 A testdir/t.substr A testdir/t.substr1 A testdir/t.time A testdir/t.vf A testdir/t.vf1 A testdir/t.vf2 A testdir/t.vf3 A testdir/t.x A testdir/td.1 A testdir/test.countries A testdir/test.data A testdir/time.c A testdir/try A testdir/tt.01 A testdir/tt.02 A testdir/tt.02a A testdir/tt.03 A testdir/tt.03a A testdir/tt.04 A testdir/tt.05 A testdir/tt.06 A testdir/tt.07 A testdir/tt.08 A testdir/tt.09 A testdir/tt.10 A testdir/tt.10a A testdir/tt.11 A testdir/tt.12 A testdir/tt.13 A testdir/tt.13a A testdir/tt.14 A testdir/tt.15 A testdir/tt.16 A testdir/tt.big A testdir/u.main A testdir/unbundle.awk A testdir/xc A testdir/yc ____________________________________________________________________________________________________________ Commit: ae99b752af2f72bae5d4948f5b2e31dac0409601 URL: https://git.catflap.org/onetrueawk/commit/?id=ae99b752af2f72bae5d4948f5b2e31dac0409601 Author: Cody Mello (Mon 17 Jun 2019 20:08:54 BST) Committer: Arnold Robbins (Mon 17 Jun 2019 20:08:54 BST) Disallow deleting SYMTAB and its elements (#43) M FIXES M awk.h M main.c M run.c ____________________________________________________________________________________________________________ Commit: b46368059445b51d28d8899ffb8f457c1642b6cb URL: https://git.catflap.org/onetrueawk/commit/?id=b46368059445b51d28d8899ffb8f457c1642b6cb Author: Cody Peter Mello (Fri 19 Oct 2018 23:07:53 BST) Committer: Cody Peter Mello (Fri 14 Jun 2019 22:54:11 BST) Update field-splitting behaviour to match POSIX definition M lib.c M proto.h M tran.c ____________________________________________________________________________________________________________ Commit: fabf9efece19b24f11aa26dd4b63f7af52ab4bcc URL: https://git.catflap.org/onetrueawk/commit/?id=fabf9efece19b24f11aa26dd4b63f7af52ab4bcc Author: Arnold D. Robbins (Thu 6 Jun 2019 18:29:20 BST) Committer: Arnold D. Robbins (Thu 6 Jun 2019 18:29:20 BST) Minor fixes in the man page. M ChangeLog M awk.1 ____________________________________________________________________________________________________________ Commit: 28dacbd66b5fb07add399e2ee9e46d85258e078d URL: https://git.catflap.org/onetrueawk/commit/?id=28dacbd66b5fb07add399e2ee9e46d85258e078d Author: Arnold D. Robbins (Wed 5 Jun 2019 06:53:31 BST) Committer: Arnold D. Robbins (Wed 5 Jun 2019 06:53:31 BST) Allow unmatched right paren in regexes. Fixes Issue #40. M ChangeLog M FIXES M awktest.tar M b.c M main.c ____________________________________________________________________________________________________________ Commit: 4189ef5d585f54879014a00263300b9dfc7e128c URL: https://git.catflap.org/onetrueawk/commit/?id=4189ef5d585f54879014a00263300b9dfc7e128c Author: Arnold D. Robbins (Wed 29 May 2019 19:04:18 BST) Committer: Arnold D. Robbins (Wed 29 May 2019 19:04:18 BST) Fix Issue #38 - don't require non-= after = in cmd line assignment. M ChangeLog M FIXES M lib.c M main.c ____________________________________________________________________________________________________________ Commit: 89354cc23057158fa4feb566e46513ca5c44ac3b URL: https://git.catflap.org/onetrueawk/commit/?id=89354cc23057158fa4feb566e46513ca5c44ac3b Author: Arnold D. Robbins (Sun 7 Apr 2019 18:39:15 BST) Committer: Arnold D. Robbins (Sun 7 Apr 2019 18:39:15 BST) Update awktest.tar(p.50) to modern sort options. M FIXES M awktest.tar ____________________________________________________________________________________________________________ Commit: 55edb1b1ddaf56e18f8256f9872080bf713d895b URL: https://git.catflap.org/onetrueawk/commit/?id=55edb1b1ddaf56e18f8256f9872080bf713d895b Author: Arnold D. Robbins (Tue 12 Mar 2019 19:54:57 GMT) Committer: Arnold D. Robbins (Tue 12 Mar 2019 19:54:57 GMT) Simplify cross-compiling change. Update FIXES. M FIXES M makefile ____________________________________________________________________________________________________________ Commit: c83d9438305b8b6e21a64add29743da522e60c2e URL: https://git.catflap.org/onetrueawk/commit/?id=c83d9438305b8b6e21a64add29743da522e60c2e Author: nee-san <47295761+nee-san@users.noreply.github.com> (Tue 12 Mar 2019 19:52:17 GMT) Committer: Arnold Robbins (Tue 12 Mar 2019 19:52:17 GMT) Fix cross-build (#34) * Fix cross-build Fixes in make file to support cross-build because maketab is a host tool and should be compiled with host compiler * some M makefile ____________________________________________________________________________________________________________ Commit: 33ead6d2393268365253732a3ac566e3d3362b00 URL: https://git.catflap.org/onetrueawk/commit/?id=33ead6d2393268365253732a3ac566e3d3362b00 Author: Arnold D. Robbins (Tue 5 Mar 2019 19:39:02 GMT) Committer: Arnold D. Robbins (Tue 5 Mar 2019 19:39:02 GMT) Sync FIXES with GitHub repo activity. M FIXES ____________________________________________________________________________________________________________ Commit: 4bc685f70132a7370eb3ac27407cbce976aa1a13 URL: https://git.catflap.org/onetrueawk/commit/?id=4bc685f70132a7370eb3ac27407cbce976aa1a13 Merge: 2d9034a e6ecf52 Author: Arnold Robbins (Tue 5 Mar 2019 19:28:45 GMT) Committer: GitHub (Tue 5 Mar 2019 19:28:45 GMT) Merge pull request #30 from McDutchie/interval-expr backport ERE interval/repetition expressions from Apple awk-24 ____________________________________________________________________________________________________________ Commit: e6ecf52e04cba7104afedc17c1ef3ee61bdebcf5 URL: https://git.catflap.org/onetrueawk/commit/?id=e6ecf52e04cba7104afedc17c1ef3ee61bdebcf5 Merge: 0619d5d 2d9034a Author: Martijn Dekker (Tue 5 Mar 2019 02:45:40 GMT) Committer: Martijn Dekker (Tue 5 Mar 2019 02:45:40 GMT) Merge remote-tracking branch 'upstream/master' into interval-expr main.c: bump version to 20190305 ____________________________________________________________________________________________________________ Commit: 2d9034a01a91359c5e47fd4275a00debaaab56cc URL: https://git.catflap.org/onetrueawk/commit/?id=2d9034a01a91359c5e47fd4275a00debaaab56cc Merge: 1164fa7 785d108 Author: onetrueawk (Sun 3 Mar 2019 20:11:28 GMT) Committer: GitHub (Sun 3 Mar 2019 20:11:28 GMT) Merge pull request #32 from enh/master maketab: support build systems with read-only source. ____________________________________________________________________________________________________________ Commit: 1164fa7ace1beb249c885a1d1c9b6f3eb131e8bb URL: https://git.catflap.org/onetrueawk/commit/?id=1164fa7ace1beb249c885a1d1c9b6f3eb131e8bb Merge: 115fac0 f25e845 Author: onetrueawk (Sun 3 Mar 2019 20:10:03 GMT) Committer: GitHub (Sun 3 Mar 2019 20:10:03 GMT) Merge pull request #31 from arnoldrobbins/master Make getline handle numeric strings, and update FIXES ____________________________________________________________________________________________________________ Commit: 115fac05872c0def5dbc9959a3c7a4d078c454c5 URL: https://git.catflap.org/onetrueawk/commit/?id=115fac05872c0def5dbc9959a3c7a4d078c454c5 Merge: c3c7c13 031aac8 Author: onetrueawk (Sun 3 Mar 2019 20:08:25 GMT) Committer: GitHub (Sun 3 Mar 2019 20:08:25 GMT) Merge pull request #12 from iamleot/cc_func-avoid-undefined-behaviour Avoid undefined behaviour when using ctype(3) functions in relex() (possible fix for #11) ____________________________________________________________________________________________________________ Commit: 0619d5d5377ea2485b858e48da74780b75568500 URL: https://git.catflap.org/onetrueawk/commit/?id=0619d5d5377ea2485b858e48da74780b75568500 Author: Martijn Dekker (Thu 21 Feb 2019 21:38:16 GMT) Committer: Martijn Dekker (Thu 21 Feb 2019 21:38:16 GMT) repeat(): add FATAL calls for errors that should be impossible M b.c ____________________________________________________________________________________________________________ Commit: 785d10884a09fdb77583ca9499a52586e91e74d2 URL: https://git.catflap.org/onetrueawk/commit/?id=785d10884a09fdb77583ca9499a52586e91e74d2 Author: Elliott Hughes (Wed 30 Jan 2019 01:27:07 GMT) Committer: Elliott Hughes (Wed 30 Jan 2019 01:27:07 GMT) Add .gitignore. A .gitignore ____________________________________________________________________________________________________________ Commit: cc165f4be9a6ea8f77ff4533786bcddde1d13fdf URL: https://git.catflap.org/onetrueawk/commit/?id=cc165f4be9a6ea8f77ff4533786bcddde1d13fdf Author: Elliott Hughes (Wed 30 Jan 2019 01:20:00 GMT) Committer: Elliott Hughes (Wed 30 Jan 2019 01:20:00 GMT) maketab: support build systems with read-only source. If your generated files are considered outputs that live elsewhere, you need a way to tell maketab where ytab.h actually is. Specifically, I'm trying to avoid checking in generated files in Android's AOSP tree's copy of one-true-awk. M makefile M maketab.c ____________________________________________________________________________________________________________ Commit: 031aac816ddcb215bb65d6edfbfa61ee5bbf5bf3 URL: https://git.catflap.org/onetrueawk/commit/?id=031aac816ddcb215bb65d6edfbfa61ee5bbf5bf3 Merge: 05014f5 c3c7c13 Author: Leonardo Taccari (Mon 28 Jan 2019 16:34:58 GMT) Committer: GitHub (Mon 28 Jan 2019 16:34:58 GMT) Merge branch 'master' into cc_func-avoid-undefined-behaviour ____________________________________________________________________________________________________________ Commit: f25e845cf7a09d7b43c7a07e535a2e8d7f63aee1 URL: https://git.catflap.org/onetrueawk/commit/?id=f25e845cf7a09d7b43c7a07e535a2e8d7f63aee1 Author: Arnold D. Robbins (Sat 26 Jan 2019 19:55:03 GMT) Committer: Arnold D. Robbins (Sat 26 Jan 2019 19:55:03 GMT) Update version string in main.c. M ChangeLog M main.c ____________________________________________________________________________________________________________ Commit: 778d21f73b526874a24a56120657e4db6a34d82e URL: https://git.catflap.org/onetrueawk/commit/?id=778d21f73b526874a24a56120657e4db6a34d82e Author: Arnold D. Robbins (Sat 26 Jan 2019 18:50:31 GMT) Committer: Arnold D. Robbins (Sat 26 Jan 2019 18:50:31 GMT) Simplify getline-numeric input and results. M bugs-fixed/getline-numeric.bad M bugs-fixed/getline-numeric.in M bugs-fixed/getline-numeric.ok ____________________________________________________________________________________________________________ Commit: 9206c643e89e4d9d090293f83fcf36b782c7382c URL: https://git.catflap.org/onetrueawk/commit/?id=9206c643e89e4d9d090293f83fcf36b782c7382c Author: Arnold D. Robbins (Fri 25 Jan 2019 11:02:19 GMT) Committer: Arnold D. Robbins (Fri 25 Jan 2019 11:02:19 GMT) Update FIXES. M FIXES ____________________________________________________________________________________________________________ Commit: 9dbd1f1de31ea9a805d1095f5586fb146a1b6a9e URL: https://git.catflap.org/onetrueawk/commit/?id=9dbd1f1de31ea9a805d1095f5586fb146a1b6a9e Author: Arnold D. Robbins (Fri 25 Jan 2019 10:56:06 GMT) Committer: Arnold D. Robbins (Fri 25 Jan 2019 10:56:06 GMT) Make getline POSIX compliant w.r.t. numeric strings. M ChangeLog M bugs-fixed/README A bugs-fixed/getline-numeric.awk A bugs-fixed/getline-numeric.bad A bugs-fixed/getline-numeric.in A bugs-fixed/getline-numeric.ok M run.c ____________________________________________________________________________________________________________ Commit: 8a2222286cb82eca05a7b9f7b1fa60b69c2c8a9f URL: https://git.catflap.org/onetrueawk/commit/?id=8a2222286cb82eca05a7b9f7b1fa60b69c2c8a9f Author: Martijn Dekker (Wed 23 Jan 2019 09:12:27 GMT) Committer: Martijn Dekker (Wed 23 Jan 2019 09:12:27 GMT) backport ERE interval/repetition expressions from Apple awk-24 The lack of POSIX interval expressions[*] (a.k.a. bounds, a.k.a. repetition expressions) in regular expressions is listed under BUGS in 'awk.1'. Apple's version of onetrueawk has supported these since at least 2009, judging by the date stamp on their src/b.c in: https://opensource.apple.com/tarballs/awk/awk-24.tar.gz A bug report prompted NetBSD to swiftly integrate this code into their awk. This commit is based on that NetBSD diff. http://gnats.netbsd.org/53885 https://github.com/NetBSD/src/commit/f3e4c4ca1dfcdd939a2e33ebfe708f01e25b3bae b.c: - Backport POSIX-standard interval expressions support in regular expressions via NetBSD from Apple awk-24 (20070501). main.c: - Bump version ID. FIXES: - Add note and credit for this feature. awk.1: section BUGS: - Remove line saying interval expressions are not supported. _________ [*] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_04_06 M FIXES M awk.1 M b.c M main.c ____________________________________________________________________________________________________________ Commit: c3c7c1370e9a9969bdcaf2018c5e62096ac15c55 URL: https://git.catflap.org/onetrueawk/commit/?id=c3c7c1370e9a9969bdcaf2018c5e62096ac15c55 Merge: bf2585c e4bb3bc Author: onetrueawk (Mon 21 Jan 2019 19:21:43 GMT) Committer: GitHub (Mon 21 Jan 2019 19:21:43 GMT) Merge pull request #27 from junghans/fix_parallel_build fixed parallel build ____________________________________________________________________________________________________________ Commit: bf2585c9fd006e61c518b5915d6db05fa0fea748 URL: https://git.catflap.org/onetrueawk/commit/?id=bf2585c9fd006e61c518b5915d6db05fa0fea748 Merge: c154c3c 79f008e Author: onetrueawk (Mon 21 Jan 2019 19:20:37 GMT) Committer: GitHub (Mon 21 Jan 2019 19:20:37 GMT) Merge pull request #20 from melloc/nf-self-assign Fix issues with NF self-assignment and setting NF to negative values ____________________________________________________________________________________________________________ Commit: 79f008e85365b696374d70c9933498990aa248bc URL: https://git.catflap.org/onetrueawk/commit/?id=79f008e85365b696374d70c9933498990aa248bc Merge: 4f4701e c154c3c Author: onetrueawk (Mon 21 Jan 2019 19:20:28 GMT) Committer: GitHub (Mon 21 Jan 2019 19:20:28 GMT) Merge branch 'master' into nf-self-assign ____________________________________________________________________________________________________________ Commit: c154c3cb82d1799151917bb97f917fabc90a8d07 URL: https://git.catflap.org/onetrueawk/commit/?id=c154c3cb82d1799151917bb97f917fabc90a8d07 Merge: 0fd6135 5a8a060 Author: onetrueawk (Mon 21 Jan 2019 19:19:24 GMT) Committer: GitHub (Mon 21 Jan 2019 19:19:24 GMT) Merge pull request #19 from melloc/split-fs-from-array Fix calling split() with a third argument that lives in the target array ____________________________________________________________________________________________________________ Commit: 5a8a060bc34c8363dbe9beec1710b367f479f4ec URL: https://git.catflap.org/onetrueawk/commit/?id=5a8a060bc34c8363dbe9beec1710b367f479f4ec Merge: 8dfde73 0fd6135 Author: onetrueawk (Mon 21 Jan 2019 19:19:07 GMT) Committer: GitHub (Mon 21 Jan 2019 19:19:07 GMT) Merge branch 'master' into split-fs-from-array ____________________________________________________________________________________________________________ Commit: 0fd6135c236a58fc4ff28afb806801a2f089186c URL: https://git.catflap.org/onetrueawk/commit/?id=0fd6135c236a58fc4ff28afb806801a2f089186c Merge: 905d260 10da937 Author: onetrueawk (Mon 21 Jan 2019 19:18:07 GMT) Committer: GitHub (Mon 21 Jan 2019 19:18:07 GMT) Merge pull request #17 from melloc/subsep Fix issues with numeric separator values ____________________________________________________________________________________________________________ Commit: 10da9373405927e79f0dbb57499e1efe0d7b2df8 URL: https://git.catflap.org/onetrueawk/commit/?id=10da9373405927e79f0dbb57499e1efe0d7b2df8 Merge: 11c1fc6 905d260 Author: onetrueawk (Mon 21 Jan 2019 19:17:57 GMT) Committer: GitHub (Mon 21 Jan 2019 19:17:57 GMT) Merge branch 'master' into subsep ____________________________________________________________________________________________________________ Commit: 905d26010499d090ba9dac06cdd876f1ea2887e0 URL: https://git.catflap.org/onetrueawk/commit/?id=905d26010499d090ba9dac06cdd876f1ea2887e0 Merge: f70e368 1d836ff Author: onetrueawk (Mon 21 Jan 2019 19:17:19 GMT) Committer: GitHub (Mon 21 Jan 2019 19:17:19 GMT) Merge pull request #16 from melloc/assign-expr Fix issues with assigning during concatenation ____________________________________________________________________________________________________________ Commit: 1d836ff681967fa858902f2328f2dda83848cc23 URL: https://git.catflap.org/onetrueawk/commit/?id=1d836ff681967fa858902f2328f2dda83848cc23 Merge: 3222d96 f70e368 Author: onetrueawk (Mon 21 Jan 2019 19:17:03 GMT) Committer: GitHub (Mon 21 Jan 2019 19:17:03 GMT) Merge branch 'master' into assign-expr ____________________________________________________________________________________________________________ Commit: f70e36869ea55f9c19d328d4e910fa6a8d77d6da URL: https://git.catflap.org/onetrueawk/commit/?id=f70e36869ea55f9c19d328d4e910fa6a8d77d6da Merge: 55d20ec 7580235 Author: onetrueawk (Mon 21 Jan 2019 19:12:05 GMT) Committer: GitHub (Mon 21 Jan 2019 19:12:05 GMT) Merge pull request #24 from melloc/fields-init Fix initial "fields" buffer size ____________________________________________________________________________________________________________ Commit: 55d20ec4e198c05b57fcba14e8f07ca8d65748b8 URL: https://git.catflap.org/onetrueawk/commit/?id=55d20ec4e198c05b57fcba14e8f07ca8d65748b8 Merge: d3d7d3d a6392ef Author: onetrueawk (Mon 21 Jan 2019 19:11:21 GMT) Committer: GitHub (Mon 21 Jan 2019 19:11:21 GMT) Merge pull request #23 from melloc/cntrl-class Fix regular expressions containing [[:cntrl:]] ____________________________________________________________________________________________________________ Commit: d3d7d3d82deb40f8b551aad9acebdbc46c36c878 URL: https://git.catflap.org/onetrueawk/commit/?id=d3d7d3d82deb40f8b551aad9acebdbc46c36c878 Merge: 294f4c0 9b093ea Author: onetrueawk (Mon 21 Jan 2019 19:10:23 GMT) Committer: GitHub (Mon 21 Jan 2019 19:10:23 GMT) Merge pull request #21 from melloc/end-of-args Flags that begin with "--" should not be treated as end of args ____________________________________________________________________________________________________________ Commit: 4f4701e0903d14dcbae8761ad4d04ecb35a5a614 URL: https://git.catflap.org/onetrueawk/commit/?id=4f4701e0903d14dcbae8761ad4d04ecb35a5a614 Merge: 179536a 294f4c0 Author: onetrueawk (Mon 21 Jan 2019 19:09:21 GMT) Committer: GitHub (Mon 21 Jan 2019 19:09:21 GMT) Merge branch 'master' into nf-self-assign ____________________________________________________________________________________________________________ Commit: 8dfde739e99869fab11fdee14b5d3e3c1cd4315d URL: https://git.catflap.org/onetrueawk/commit/?id=8dfde739e99869fab11fdee14b5d3e3c1cd4315d Merge: d45db5e 294f4c0 Author: onetrueawk (Mon 21 Jan 2019 19:08:25 GMT) Committer: GitHub (Mon 21 Jan 2019 19:08:25 GMT) Merge branch 'master' into split-fs-from-array ____________________________________________________________________________________________________________ Commit: 294f4c0db5ed292a30959cb6b1c346f573083c62 URL: https://git.catflap.org/onetrueawk/commit/?id=294f4c0db5ed292a30959cb6b1c346f573083c62 Merge: 52ef99e 6fe0a04 Author: onetrueawk (Mon 21 Jan 2019 19:06:28 GMT) Committer: GitHub (Mon 21 Jan 2019 19:06:28 GMT) Merge pull request #18 from melloc/error-reporting Improve error reporting messages ____________________________________________________________________________________________________________ Commit: 11c1fc61d58763492995d433942a0586cef0fcd4 URL: https://git.catflap.org/onetrueawk/commit/?id=11c1fc61d58763492995d433942a0586cef0fcd4 Merge: 52566c0 52ef99e Author: onetrueawk (Mon 21 Jan 2019 19:05:24 GMT) Committer: GitHub (Mon 21 Jan 2019 19:05:24 GMT) Merge branch 'master' into subsep ____________________________________________________________________________________________________________ Commit: 52ef99e31025c3ae640823709e9119f873a39033 URL: https://git.catflap.org/onetrueawk/commit/?id=52ef99e31025c3ae640823709e9119f873a39033 Merge: 40b9214 611f775 Author: onetrueawk (Mon 21 Jan 2019 19:03:38 GMT) Committer: GitHub (Mon 21 Jan 2019 19:03:38 GMT) Merge pull request #15 from melloc/fmt-overflow Protect against overflowing during OFMT/CONVFMT conversions ____________________________________________________________________________________________________________ Commit: 611f775d8d48337cfc2b9f8686045984c859c3ed URL: https://git.catflap.org/onetrueawk/commit/?id=611f775d8d48337cfc2b9f8686045984c859c3ed Merge: e059b3b 40b9214 Author: onetrueawk (Mon 21 Jan 2019 19:02:18 GMT) Committer: GitHub (Mon 21 Jan 2019 19:02:18 GMT) Merge branch 'master' into fmt-overflow ____________________________________________________________________________________________________________ Commit: 3222d96844719666e9e37630666821c0a06cdc48 URL: https://git.catflap.org/onetrueawk/commit/?id=3222d96844719666e9e37630666821c0a06cdc48 Merge: e262374 40b9214 Author: onetrueawk (Mon 21 Jan 2019 19:00:32 GMT) Committer: GitHub (Mon 21 Jan 2019 19:00:32 GMT) Merge branch 'master' into assign-expr ____________________________________________________________________________________________________________ Commit: 40b9214d2a2098c6c8e76a85e6eedc990ca4d73f URL: https://git.catflap.org/onetrueawk/commit/?id=40b9214d2a2098c6c8e76a85e6eedc990ca4d73f Merge: c3e17cc 6cf37e9 Author: onetrueawk (Mon 21 Jan 2019 18:46:44 GMT) Committer: GitHub (Mon 21 Jan 2019 18:46:44 GMT) Merge pull request #14 from melloc/missing-precision Check for format character precision argument before using it ____________________________________________________________________________________________________________ Commit: c3e17cc1c791211f2ff1edf822b69363c63c610a URL: https://git.catflap.org/onetrueawk/commit/?id=c3e17cc1c791211f2ff1edf822b69363c63c610a Merge: e8c2800 40c6916 Author: onetrueawk (Mon 21 Jan 2019 18:41:41 GMT) Committer: GitHub (Mon 21 Jan 2019 18:41:41 GMT) Merge pull request #13 from arnoldrobbins/master Fix REGRESS so all tests run on Mac OS X. ____________________________________________________________________________________________________________ Commit: e4bb3bcbf09082748f91d312dad150246ab8b6fb URL: https://git.catflap.org/onetrueawk/commit/?id=e4bb3bcbf09082748f91d312dad150246ab8b6fb Author: Christoph Junghans (Sun 30 Dec 2018 16:04:34 GMT) Committer: Christoph Junghans (Sun 30 Dec 2018 16:04:34 GMT) fixed parallel build Signed-off-by: Christoph Junghans M makefile ____________________________________________________________________________________________________________ Commit: 7580235939d2c4f300827b9444675f35341a00e0 URL: https://git.catflap.org/onetrueawk/commit/?id=7580235939d2c4f300827b9444675f35341a00e0 Author: Cody Peter Mello (Mon 12 Nov 2018 18:34:19 GMT) Committer: Cody Peter Mello (Mon 12 Nov 2018 18:34:19 GMT) Fix initial "fields" buffer size M lib.c ____________________________________________________________________________________________________________ Commit: a6392ef31cbfee50d5b7dfd17dbfbbf2f49484b8 URL: https://git.catflap.org/onetrueawk/commit/?id=a6392ef31cbfee50d5b7dfd17dbfbbf2f49484b8 Author: Cody Peter Mello (Mon 12 Nov 2018 18:25:44 GMT) Committer: Cody Peter Mello (Mon 12 Nov 2018 18:25:44 GMT) Fix regular expressions containing [[:cntrl:]] M b.c ____________________________________________________________________________________________________________ Commit: e8c280034fad30d5234590ac3c62ebd0fe3d25dd URL: https://git.catflap.org/onetrueawk/commit/?id=e8c280034fad30d5234590ac3c62ebd0fe3d25dd Author: Brian Kernighan (Thu 25 Oct 2018 18:28:54 BST) Committer: Brian Kernighan (Thu 25 Oct 2018 18:28:54 BST) fix maketab non-bug M FIXES M makefile M maketab.c ____________________________________________________________________________________________________________ Commit: 9b093ea2d0be398b8ba7b3e838f99de17fd38018 URL: https://git.catflap.org/onetrueawk/commit/?id=9b093ea2d0be398b8ba7b3e838f99de17fd38018 Author: Cody Peter Mello (Tue 9 Oct 2018 19:46:57 BST) Committer: Cody Peter Mello (Tue 9 Oct 2018 19:46:57 BST) Flags that begin with "--" should not be treated as end of args M main.c ____________________________________________________________________________________________________________ Commit: 179536a5160006db2bd59772a96501f469bb6029 URL: https://git.catflap.org/onetrueawk/commit/?id=179536a5160006db2bd59772a96501f469bb6029 Author: Cody Peter Mello (Wed 26 Sep 2018 05:19:49 BST) Committer: Cody Peter Mello (Wed 26 Sep 2018 05:19:49 BST) Print an error message for negative NF values M bugs-fixed/README A bugs-fixed/negative-nf.awk A bugs-fixed/negative-nf.ok M lib.c ____________________________________________________________________________________________________________ Commit: 6315525dbef08bac66b6369f7d6952b67b5adcba URL: https://git.catflap.org/onetrueawk/commit/?id=6315525dbef08bac66b6369f7d6952b67b5adcba Author: Cody Peter Mello (Mon 24 Sep 2018 01:59:52 BST) Committer: Cody Peter Mello (Mon 24 Sep 2018 01:59:52 BST) Rebuild fields when NF is assigned to itself M bugs-fixed/README A bugs-fixed/nf-self-assign.awk A bugs-fixed/nf-self-assign.bad A bugs-fixed/nf-self-assign.ok M run.c ____________________________________________________________________________________________________________ Commit: 52566c0aa464c3791cf7b7c282d29d184d913f89 URL: https://git.catflap.org/onetrueawk/commit/?id=52566c0aa464c3791cf7b7c282d29d184d913f89 Author: Cody Peter Mello (Tue 18 Sep 2018 23:45:55 BST) Committer: Cody Peter Mello (Mon 24 Sep 2018 01:35:45 BST) Handle numeric FS, RS, OFS, and ORS values M awk.h M bugs-fixed/README A bugs-fixed/fs-overflow.awk A bugs-fixed/numeric-fs.awk A bugs-fixed/numeric-fs.ok A bugs-fixed/numeric-output-seps.awk A bugs-fixed/numeric-output-seps.bad A bugs-fixed/numeric-output-seps.ok A bugs-fixed/numeric-rs.awk A bugs-fixed/numeric-rs.bad A bugs-fixed/numeric-rs.ok M lib.c M run.c M tran.c ____________________________________________________________________________________________________________ Commit: 6fe0a049bb5d5e5608f399245f1e519664c6af5a URL: https://git.catflap.org/onetrueawk/commit/?id=6fe0a049bb5d5e5608f399245f1e519664c6af5a Author: Cody Peter Mello (Fri 21 Sep 2018 19:16:27 BST) Committer: Cody Peter Mello (Fri 21 Sep 2018 19:16:27 BST) Improve error reporting messages M lex.c ____________________________________________________________________________________________________________ Commit: d45db5e9d802659e8e4ba3457c1f354fa99b18d2 URL: https://git.catflap.org/onetrueawk/commit/?id=d45db5e9d802659e8e4ba3457c1f354fa99b18d2 Author: Cody Peter Mello (Tue 18 Sep 2018 23:20:44 BST) Committer: Cody Peter Mello (Tue 18 Sep 2018 23:20:44 BST) Fix calling split() with a third argument that lives in the target array M bugs-fixed/README A bugs-fixed/split-fs-from-array.awk A bugs-fixed/split-fs-from-array.ok M run.c ____________________________________________________________________________________________________________ Commit: 97a4b7ed215ae6446d13fe0eab15b5b3ae4da7da URL: https://git.catflap.org/onetrueawk/commit/?id=97a4b7ed215ae6446d13fe0eab15b5b3ae4da7da Author: Cody Peter Mello (Mon 17 Sep 2018 19:59:04 BST) Committer: Cody Peter Mello (Mon 17 Sep 2018 19:59:04 BST) Fix issues with numeric SUBSEP and large SUBSEP values M awk.h M bugs-fixed/README A bugs-fixed/numeric-subsep.awk A bugs-fixed/numeric-subsep.bad A bugs-fixed/numeric-subsep.ok A bugs-fixed/subsep-overflow.awk A bugs-fixed/subsep-overflow.ok M run.c M tran.c ____________________________________________________________________________________________________________ Commit: e26237434fb769d9c1ea239101eb5b24be588eea URL: https://git.catflap.org/onetrueawk/commit/?id=e26237434fb769d9c1ea239101eb5b24be588eea Author: Cody Peter Mello (Sat 15 Sep 2018 09:38:39 BST) Committer: Cody Peter Mello (Sat 15 Sep 2018 09:43:21 BST) Fix issues with assigning during concatenation M bugs-fixed/README A bugs-fixed/concat-assign-same.awk A bugs-fixed/concat-assign-same.bad A bugs-fixed/concat-assign-same.ok M run.c ____________________________________________________________________________________________________________ Commit: e059b3b197ce7da33b8b0b3529af65fb85b25186 URL: https://git.catflap.org/onetrueawk/commit/?id=e059b3b197ce7da33b8b0b3529af65fb85b25186 Author: Cody Peter Mello (Sat 15 Sep 2018 03:56:34 BST) Committer: Cody Peter Mello (Sat 15 Sep 2018 03:56:34 BST) Protect against overflowing during OFMT/CONVFMT conversions M bugs-fixed/README A bugs-fixed/fmt-overflow.awk A bugs-fixed/fmt-overflow.ok M tran.c ____________________________________________________________________________________________________________ Commit: 6cf37e9d15c15a3ba5f5c93c05e2fcafc35a2338 URL: https://git.catflap.org/onetrueawk/commit/?id=6cf37e9d15c15a3ba5f5c93c05e2fcafc35a2338 Author: Cody Peter Mello (Sat 15 Sep 2018 01:29:06 BST) Committer: Cody Peter Mello (Sat 15 Sep 2018 01:34:17 BST) Check for format character precision argument before using it M bugs-fixed/README A bugs-fixed/missing-precision.awk A bugs-fixed/missing-precision.ok M run.c ____________________________________________________________________________________________________________ Commit: 40c6916307e503c77a03c512e1abb226e9c0ee03 URL: https://git.catflap.org/onetrueawk/commit/?id=40c6916307e503c77a03c512e1abb226e9c0ee03 Author: Arnold D. Robbins (Wed 29 Aug 2018 19:18:21 BST) Committer: Arnold D. Robbins (Wed 29 Aug 2018 19:18:21 BST) Fix REGRESS so all tests run on Mac OS X. M ChangeLog M REGRESS ____________________________________________________________________________________________________________ Commit: 05014f5b9e468730925c0452a3d3399ea4353fd3 URL: https://git.catflap.org/onetrueawk/commit/?id=05014f5b9e468730925c0452a3d3399ea4353fd3 Author: Leonardo Taccari (Wed 29 Aug 2018 17:06:33 BST) Committer: Leonardo Taccari (Wed 29 Aug 2018 17:06:33 BST) avoid undefined behaviour when using ctype(3) functions in relex() Because NCHARS is (256+3) cc->cc_func(i) was called with 256, 257 and 258 as argument leading to possible undefined behaviour (at least on NetBSD with non-C locale (e.g. `en_US.UTF-8') this led to only honoring one `[:...:]' character class in bracket expressions). Fix #11 M b.c ____________________________________________________________________________________________________________ Commit: 2dc7e5ff1a4feeeb549f32706cf34e17aba89192 URL: https://git.catflap.org/onetrueawk/commit/?id=2dc7e5ff1a4feeeb549f32706cf34e17aba89192 Merge: 1d9d864 9a4aa89 Author: onetrueawk (Tue 28 Aug 2018 21:05:48 BST) Committer: GitHub (Tue 28 Aug 2018 21:05:48 BST) Merge pull request #9 from atsampson/master makefile fixes: allow parallel make and work with pmake ____________________________________________________________________________________________________________ Commit: 9a4aa891763a9894825395871e231defc6aacd51 URL: https://git.catflap.org/onetrueawk/commit/?id=9a4aa891763a9894825395871e231defc6aacd51 Author: Adam Sampson (Mon 27 Aug 2018 20:28:29 BST) Committer: Adam Sampson (Mon 27 Aug 2018 20:28:29 BST) Fix ytab.[ch] dependencies to allow parallel make. The old ytab.o rule produced ytab.c and ytab.h too, but this wasn't visible as dependencies, so make -j would fail. Make this explicit, and use the implicit .c.o rule rather than writing out the $(CC) command. M makefile ____________________________________________________________________________________________________________ Commit: 837b8da3a5080c21479457d7fde693e8f5b211cc URL: https://git.catflap.org/onetrueawk/commit/?id=837b8da3a5080c21479457d7fde693e8f5b211cc Author: Adam Sampson (Mon 27 Aug 2018 20:27:34 BST) Committer: Adam Sampson (Mon 27 Aug 2018 20:27:34 BST) Fix comment syntax for pmake. GNU make is happy with leading tabs before a comment, but pmake says "Unassociated shell command". M makefile ____________________________________________________________________________________________________________ Commit: 1d9d86418a8e77a0270b5cff4ba97c9c4106b750 URL: https://git.catflap.org/onetrueawk/commit/?id=1d9d86418a8e77a0270b5cff4ba97c9c4106b750 Author: Brian Kernighan (Mon 27 Aug 2018 13:58:33 BST) Committer: Brian Kernighan (Mon 27 Aug 2018 13:58:33 BST) forgot to update version string M main.c ____________________________________________________________________________________________________________ Commit: 22aff9e657f95a2d37d33d7a3fd4d98595d7c9f3 URL: https://git.catflap.org/onetrueawk/commit/?id=22aff9e657f95a2d37d33d7a3fd4d98595d7c9f3 Author: Brian Kernighan (Mon 27 Aug 2018 13:52:34 BST) Committer: Brian Kernighan (Mon 27 Aug 2018 13:52:34 BST) disallow $ in printf formats M FIXES M awktest.tar M run.c M tran.c ____________________________________________________________________________________________________________ Commit: 0f4e1ba922ccd45f7bd47701e923d98566ceb7c5 URL: https://git.catflap.org/onetrueawk/commit/?id=0f4e1ba922ccd45f7bd47701e923d98566ceb7c5 Author: Brian Kernighan (Fri 24 Aug 2018 14:09:59 BST) Committer: Brian Kernighan (Fri 24 Aug 2018 14:09:59 BST) added Arnold's fixes, updates to awktest.tar M FIXES D TODO M awktest.tar M main.c M makefile ____________________________________________________________________________________________________________ Commit: b619480f94c4710be9fc7990551a4fa4c876fc0e URL: https://git.catflap.org/onetrueawk/commit/?id=b619480f94c4710be9fc7990551a4fa4c876fc0e Merge: ba7569c 32093f5 Author: onetrueawk (Thu 23 Aug 2018 13:14:25 BST) Committer: GitHub (Thu 23 Aug 2018 13:14:25 BST) Merge pull request #8 from arnoldrobbins/master Fix multiple long-standing bugs, improve test suite. ____________________________________________________________________________________________________________ Commit: 32093f5bbf567525d88566a449a89c72d2845e7e URL: https://git.catflap.org/onetrueawk/commit/?id=32093f5bbf567525d88566a449a89c72d2845e7e Author: Arnold D. Robbins (Wed 22 Aug 2018 18:40:26 BST) Committer: Arnold D. Robbins (Wed 22 Aug 2018 18:40:26 BST) Fix multiple long-standing bugs, improve test suite. A ChangeLog M FIXES M REGRESS A TODO M awk.1 M awk.h M awkgram.y M awktest.tar M b.c A bugs-fixed/README A bugs-fixed/a-format.awk A bugs-fixed/a-format.bad A bugs-fixed/a-format.ok A bugs-fixed/decr-NF.awk A bugs-fixed/decr-NF.bad A bugs-fixed/decr-NF.ok A bugs-fixed/ofs-rebuild.awk A bugs-fixed/ofs-rebuild.bad A bugs-fixed/ofs-rebuild.ok A bugs-fixed/space.awk A bugs-fixed/space.bad A bugs-fixed/space.ok A bugs-fixed/string-conv.awk A bugs-fixed/string-conv.bad A bugs-fixed/string-conv.ok A bugs-fixed/system-status.awk A bugs-fixed/system-status.bad A bugs-fixed/system-status.ok A bugs-fixed/unary-plus.awk A bugs-fixed/unary-plus.bad A bugs-fixed/unary-plus.ok M lib.c M main.c M makefile M maketab.c M proto.h M run.c M tran.c ____________________________________________________________________________________________________________ Commit: ba7569c255707801e91d04387fbcf22465b9181e URL: https://git.catflap.org/onetrueawk/commit/?id=ba7569c255707801e91d04387fbcf22465b9181e Author: Brian Kernighan (Thu 16 Aug 2018 14:41:13 BST) Committer: Brian Kernighan (Thu 16 Aug 2018 14:41:13 BST) FIXES, makefile, REGRESS to smooth out base for Arnold M FIXES A REGRESS M makefile ____________________________________________________________________________________________________________ Commit: 1eef717cd24bcd6c8feb834a8c9f8702b944d3c0 URL: https://git.catflap.org/onetrueawk/commit/?id=1eef717cd24bcd6c8feb834a8c9f8702b944d3c0 Author: Brian Kernighan (Wed 15 Aug 2018 20:43:28 BST) Committer: Brian Kernighan (Wed 15 Aug 2018 20:43:28 BST) update awktest.tar with proper beebe,lilly tests M awktest.tar ____________________________________________________________________________________________________________ Commit: 3ed9e245db3f306c2898b5ad7b541b230d121070 URL: https://git.catflap.org/onetrueawk/commit/?id=3ed9e245db3f306c2898b5ad7b541b230d121070 Author: Brian Kernighan (Wed 15 Aug 2018 15:45:03 BST) Committer: Brian Kernighan (Wed 15 Aug 2018 15:45:03 BST) set baseline so Arnold can send pull request M FIXES D awktest.a M awktest.tar M lib.c M main.c M makefile M run.c ____________________________________________________________________________________________________________ Commit: 2af1c7c65841101bda4f0e4651d6c5b77d7fd462 URL: https://git.catflap.org/onetrueawk/commit/?id=2af1c7c65841101bda4f0e4651d6c5b77d7fd462 Author: Brian Kernighan (Thu 16 Feb 2017 00:16:44 GMT) Committer: Brian Kernighan (Thu 16 Feb 2017 00:16:44 GMT) awktest.tar added; .ar files work poorly A awktest.tar ____________________________________________________________________________________________________________ Commit: e37f882d7273c61cb0b33c47d5fed3801ad38a6b URL: https://git.catflap.org/onetrueawk/commit/?id=e37f882d7273c61cb0b33c47d5fed3801ad38a6b Author: Brian Kernighan (Sat 22 Dec 2012 15:46:35 GMT) Committer: Brian Kernighan (Sat 22 Dec 2012 15:46:35 GMT) should have been in initial list A FIXES ____________________________________________________________________________________________________________ Commit: 87b94932e6f12ad16e9fc1af1a7b5b66ae9381e2 URL: https://git.catflap.org/onetrueawk/commit/?id=87b94932e6f12ad16e9fc1af1a7b5b66ae9381e2 Author: Brian Kernighan (Sat 22 Dec 2012 15:35:39 GMT) Committer: Brian Kernighan (Sat 22 Dec 2012 15:35:39 GMT) initial commit for github A LICENSE A README A awk.1 A awk.h A awkgram.y A awktest.a A b.c A lex.c A lib.c A main.c A makefile A maketab.c A parse.c A proto.h A run.c A tran.c ___________________________________________________________________________________________________________