aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/regexp.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-01-09 19:56:27 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2012-01-09 19:56:27 -0500
commit89b3c6cc8b560f7f46a6a25b270aed5330c09a0e (patch)
tree9f34e62bf87efb730d3e3b0f4c62b3c6fcd13c2e /src/backend/utils/adt/regexp.c
parent743ed082accbc542294a4408e2e45a6ffb8ec966 (diff)
downloadpostgresql-89b3c6cc8b560f7f46a6a25b270aed5330c09a0e.tar.gz
postgresql-89b3c6cc8b560f7f46a6a25b270aed5330c09a0e.zip
Fix one-byte buffer overrun in contrib/test_parser.
The original coding examined the next character before verifying that there *is* a next character. In the worst case with the input buffer right up against the end of memory, this would result in a segfault. Problem spotted by Paul Guyot; this commit extends his patch to fix an additional case. In addition, make the code a tad more readable by not overloading the usage of *tlen.
Diffstat (limited to 'src/backend/utils/adt/regexp.c')
0 files changed, 0 insertions, 0 deletions