Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2021-02-19
07:22 • Closed ticket [7c64aa5e1a]: Another uninitialized-variable bug in BRE-mode parsi... artifact: c19052e5ec user: jan.nijtmans
07:20
Fix [7c64aa5e1a]: Another uninitialized-variable bug in BRE-mode parsing. Thanks to Tom Lane for the... check-in: 4113aee487 user: jan.nijtmans tags: core-8-6-branch
07:18
Fix [7c64aa5e1a]: Another uninitialized-variable bug in BRE-mode parsing. Thanks to Tom Lane for the... check-in: 2162ee3450 user: jan.nijtmans tags: core-8-5-branch
03:51 • New ticket [7c64aa5e1a] Another uninitialized-variable bug in BRE-mode parsing</... artifact: 813bd6d24d user: tgl

Another uninitialized-variable bug in BRE-mode parsing

Closed / Fixed7c64aa5e1a633176212261d21419d93a8a597347Created 6 years agoUpdated 6 years ago
Descriptionplain2021-02-19 03:51:08
It turns out that the bug reported in ticket 1dab713a3808489ef0a23be683b3d2058fbd3f27 has a sibling.

% regexp -inline {(?b).\{1,10\}} {abcdef}
a

The correct result to that is "abcdef", but the quantifier is being read as non-greedy.  The fix is to
change "RET('}')" to "RETV('}', 1)" in next().  See also

https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=b5a66e7353ba65c11c5fc6a79b72213bde8dbe44
Referenced by2
  • 4113aee487Fix [7c64aa5e1a]: Another uninitialized-variable bug in BRE-mode parsing. Thanks to Tom Lane for the bug-report and the fix check-in2021-02-19 07:20:06
  • 2162ee3450Fix [7c64aa5e1a]: Another uninitialized-variable bug in BRE-mode parsing. Thanks to Tom Lane for the bug-report and the fix. check-in2021-02-19 07:18:13
jan.nijtmanswiki2021-02-19 07:22:41

Fixed in all branches (8.5 and up) now. Many thanks, again, Tom!

Log in (anonymous is fine) to add a comment.