postgresql/contrib/test_parser
Tom Lane 3852cfaf60 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.
2012-01-09 19:57:55 -05:00
..
expected Add sample text search dictionary templates and parsers, to replace the 2007-10-15 21:36:50 +00:00
sql Add sample text search dictionary templates and parsers, to replace the 2007-10-15 21:36:50 +00:00
.gitignore Some more gitignore cleanups: cover contrib and PL regression test outputs. 2010-09-22 17:23:05 -04:00
Makefile Remove obsoleted README files. 2007-12-03 04:22:54 +00:00
test_parser.c Fix one-byte buffer overrun in contrib/test_parser. 2012-01-09 19:57:55 -05:00
test_parser.sql.in Add CVS version labels to all install/uninstall scripts. 2007-11-13 04:24:29 +00:00
uninstall_test_parser.sql Add CVS version labels to all install/uninstall scripts. 2007-11-13 04:24:29 +00:00