K 10 svn:author V 3 imp K 8 svn:date V 27 2021-07-10T17:14:06.818927Z K 7 svn:log V 727 awk: Fix subobject out-of-bounds access When matching a regex with ^, it would attempt to access gototab[NSTATES][NCHARS+2], and therefore access the state for the \002 character instead. This change is required to run awk under CHERI (with sub-object bounds) and when running with UBSan instrumentation. This was committed upstream as https://github.com/onetrueawk/awk/commit/cbf924342b63a095a4c6842280c3085b1b63ae45 Found by: CHERI (with subobject bounds enabled) Obtained from: CheriBSD Reviewed By: imp Differential Revision: https://reviews.freebsd.org/D26509 (cherry picked from commit ae692c42cb46a5e72772070070840b15dd5d6bd8) Git Hash: e32d04bed89057c54147db931fa544bb601f48ac Git Author: arichardson@FreeBSD.org END