Skip to content

Commit ef899c7

Browse files
committed
RemoveFunction didn't defend against too many args.
1 parent 488f315 commit ef899c7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/backend/commands/remove.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.43 2000/01/10 17:14:32 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.44 2000/01/12 05:25:09 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -320,7 +320,9 @@ RemoveFunction(char *functionName, /* function name to be removed */
320320
char *typename;
321321
int i;
322322

323-
323+
if (nargs > FUNC_MAX_ARGS)
324+
elog(ERROR, "functions cannot have more than %d arguments",
325+
FUNC_MAX_ARGS);
324326
MemSet(argList, 0, FUNC_MAX_ARGS * sizeof(Oid));
325327
for (i = 0; i < nargs; i++)
326328
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy