]> granicus.if.org Git - postgresql/commit
While I was running some tests in psql, trying to figure out how to change
authorBruce Momjian <bruce@momjian.us>
Tue, 20 Jul 1999 17:20:43 +0000 (17:20 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 20 Jul 1999 17:20:43 +0000 (17:20 +0000)
commitf96babac12cdf5cef5f18686916a95e089fa1203
tree94ad24e011d85bb6f733e39b79de10cab656bdec
parenta2bb39c7381a4cf2050fe612c8a59b3ffaa71dd7
While I was running some tests in psql, trying to figure out how to change
the query string to handle any length, I discovered that under certain
conditions, psql will core dump when handling long strings.  Thus, the
patch.  It was caused by a buffer overrun, probably not noticeable in a lot
of cases, but pretty noticeable in mine.

Problem was caused by the fact that the length check is only performed after
the check for a ; to get the end of the query and execute.

Cheers...

MikeA
src/bin/psql/psql.c