mirror of https://github.com/postgres/postgres
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.REL8_4_STABLE
parent
a2beb5b3d1
commit
23bd628b9f
Loading…
Reference in new issue