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:33 -0500 |
| commit | e3fce282b5d507b8105c26543b079bc279da4000 (patch) | |
| tree | 55b3d51109c6a2b725b077bce4bf0c3ba26d5ddf /src/backend/utils/cache/ts_cache.c | |
| parent | bb65cb8cdf864e61bc939d3c4b28bbd43d926700 (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/utils/cache/ts_cache.c')
0 files changed, 0 insertions, 0 deletions
