Manifest of check-in
[d1dd282861]
- Fix [1178541]: with REG_BOSONLY only the first alternative was anchored at the beginning of the string, because the flag was implemented by inserting \A as the first token. Instead, do not allow the top-level NFA to start a match anywhere else. Patch by Tom Lane. New test reg-30.9.
by
serhiy.storchaka on
2026-10-11 08:45:09.
B 9383b0c9135923809443d500937f89513263efd4eee9395e86dd2a282890e865
C Fix\s[1178541]:\swith\sREG_BOSONLY\sonly\sthe\sfirst\salternative\swas\sanchored\sat\sthe\sbeginning\sof\sthe\sstring,\sbecause\sthe\sflag\swas\simplemented\sby\sinserting\s\\A\sas\sthe\sfirst\stoken.\sInstead,\sdo\snot\sallow\sthe\stop-level\sNFA\sto\sstart\sa\smatch\sanywhere\selse.\sPatch\sby\sTom\sLane.\sNew\stest\sreg-30.9.
D 2026-10-11T08:45:09.035
F generic/regc_lex.c 6ee7ee3df1a228a2f8a73370668cf35c68be9f229e0aab664e241a8ca458c955
F generic/regc_nfa.c 07d05e8c2bccc2eb84ba6da36bfddf6ffd43e9af889c9c2044533a7f1918318d
F generic/regex.h 60a8ec0a81ccc295eae823669a9b0ac4eac919289f754177e5025b3d79b39c03
F generic/tclInt.h 0616d185b06917b8ee12799f64ce5cee329f16517d6b7dd3255ebfe0d60993d1
F tests/reg.test 634aeac310991867f43f3f8492d4d79c616291e4b6c1ffbd18c018b91be47ddd
P 9383b0c9135923809443d500937f89513263efd4eee9395e86dd2a282890e865
R 238aec105ccdbe31dfc07014d5157c2d
T *branch * regexp-bosonly-alternatives
T *sym-regexp-bosonly-alternatives *
T -sym-main *
T -sym-trunk *
U serhiy.storchaka
Z 26e7c1e88c5ac7444c4cb7a2a85a59bd