git.postgresql.org Git - postgresql.git/commit
2012年1月10日 00:56:27 +0000 (19:56 -0500)
2012年1月10日 00:56:27 +0000 (19:56 -0500)
commit 89b3c6cc8b560f7f46a6a25b270aed5330c09a0e
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.
This is the main PostgreSQL git repository.
RSS
Atom