postgresql/src
Bruce Momjian cbe733d752 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
2002-08-22 04:54:20 +00:00
..
backend repeat() fix: 2002-08-22 04:54:20 +00:00
bin Add a bunch of pseudo-types to replace the behavior formerly associated 2002-08-22 00:01:51 +00:00
corba Convert files from DOS format to normal text. 2000-12-03 14:43:59 +00:00
data I've sent 3 mails to pgsql-patches. There are two files, one for doc 1999-08-16 20:27:19 +00:00
include As suggested by Tom, this patch restricts the right-hand argument of 2002-08-22 04:45:11 +00:00
interfaces Okay, libpq++ is moved to GBorg, and all traces of it have been removed 2002-08-22 00:15:14 +00:00
makefiles Assemble portability modules into libpgport library. 2002-07-27 20:10:05 +00:00
pl Add a bunch of pseudo-types to replace the behavior formerly associated 2002-08-22 00:01:51 +00:00
port Remove use of __P so that <sys/cdefs.h> is not needed. Per suggestion 2002-08-12 15:24:07 +00:00
template Fix case syntax for freebsd template. 2002-07-08 01:54:30 +00:00
test # Disallow TRUNCATE on tables that are involved in referential 2002-08-22 04:51:06 +00:00
tools Add mention of copyright year update. 2002-07-24 17:58:24 +00:00
tutorial Add a bunch of pseudo-types to replace the behavior formerly associated 2002-08-22 00:01:51 +00:00
utils Assemble portability modules into libpgport library. 2002-07-27 20:10:05 +00:00
DEVELOPERS just testing a script... 1999-07-30 03:45:57 +00:00
Makefile Ensure that src/tutorial gets cleaned by top-level make clean. 2002-07-30 17:47:58 +00:00
Makefile.global.in Assemble portability modules into libpgport library. 2002-07-27 20:10:05 +00:00
Makefile.shlib Assemble portability modules into libpgport library. 2002-07-27 20:10:05 +00:00
nls-global.mk Move PO files into subdirectories separate from the source code. 2002-08-21 20:42:27 +00:00
win32.mak Okay, libpq++ is moved to GBorg, and all traces of it have been removed 2002-08-22 00:15:14 +00:00