]> granicus.if.org Git - postgresql/commit
Fix a read of uninitialized memory in next_token() of hba.c, spotted via
authorNeil Conway <neilc@samurai.com>
Mon, 2 Feb 2004 16:58:30 +0000 (16:58 +0000)
committerNeil Conway <neilc@samurai.com>
Mon, 2 Feb 2004 16:58:30 +0000 (16:58 +0000)
commit9e218af7edc63125436c895891119d15873f5a24
treec3e20c5af396bbf57f9981e4a8141a96bab56c02
parent4c29e215782e357a81d6fbb794b47b5c3210caf5
Fix a read of uninitialized memory in next_token() of hba.c, spotted via
valgrind: a buffer passed to strncmp() had to be NUL-terminated. Original
report and patch from Dennis Bjorkland, some cleanup by Andrew Dunstan,
and finally some editorializing from Neil Conway.
src/backend/libpq/hba.c
src/include/libpq/hba.h