Add missing array-enlargement logic to test_regex.c.
Tom Lane <tgl@sss.pgh.pa.us>
Add missing array-enlargement logic to test_regex.c. The stanza to report a "partial" match could overrun the initially allocated output array, so it needs its own copy of the array-resizing logic that's in the main loop. I overlooked the need for this in ca8217c10. Per report from Alexander Lakhin. Discussion: https://postgr.es/m/3206aace-50db-e02a-bbea-76d5cdaa2cb6@gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/test/modules/test_regex/test_regex.c | modified | +14 −0 |
Discussion
- Test harness for regex code (to allow importing Tcl's test suite) 6 messages · 2021-01-04 → 2021-01-17