summaryrefslogtreecommitdiff
path: root/src/backend/executor/execProcnode.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:57:55 -0500
commit3852cfaf6065f14dd3dc4d2f59583de3c594d28b (patch)
tree1aaa2b49a953b0d667e7ced503b4c95684b20a1b /src/backend/executor/execProcnode.c
parentaa31c350fe01c4f5db571ea48b32869d97b70db4 (diff)
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/executor/execProcnode.c')
0 files changed, 0 insertions, 0 deletions