diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-08-22 04:54:20 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-08-22 04:54:20 +0000 |
commit | cbe733d7527058300f325d7b3f8fec4aa4ffe3de (patch) | |
tree | 69656b33976c7cb015d653ea7a89802106559968 /doc/src | |
parent | c76f5aa53032790f5f464ad658c8f65595c12eca (diff) | |
download | postgresql-cbe733d7527058300f325d7b3f8fec4aa4ffe3de.tar.gz postgresql-cbe733d7527058300f325d7b3f8fec4aa4ffe3de.zip |
repeat() fix:
> Neil Conway <neilc@samurai.com> writes:
> > + /* Check for integer overflow */
> > + if (tlen / slen != count)
> > + elog(ERROR, "Requested buffer is too large.");
>
> What about slen == 0?
Good point -- that wouldn't cause incorrect results or a security
problem, but it would reject input that we should really accept.
Revised patch is attached.
Neil Conway
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions