diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-01-09 19:56:27 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-01-09 19:57:55 -0500 |
commit | 3852cfaf6065f14dd3dc4d2f59583de3c594d28b (patch) | |
tree | 1aaa2b49a953b0d667e7ced503b4c95684b20a1b /src/backend/executor/execProcnode.c | |
parent | aa31c350fe01c4f5db571ea48b32869d97b70db4 (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