diff options
author | Tom Lane | 2012-01-10 00:56:27 +0000 |
---|---|---|
committer | Tom Lane | 2012-01-10 00:56:27 +0000 |
commit | 89b3c6cc8b560f7f46a6a25b270aed5330c09a0e (patch) | |
tree | 9f34e62bf87efb730d3e3b0f4c62b3c6fcd13c2e /src/timezone/scheck.c | |
parent | 743ed082accbc542294a4408e2e45a6ffb8ec966 (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/timezone/scheck.c')
0 files changed, 0 insertions, 0 deletions