We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13fab5b commit 9eeeb98Copy full SHA for 9eeeb98
src/pl/plpgsql/src/gram.y
@@ -4,7 +4,7 @@
4
* procedural language
5
*
6
* IDENTIFICATION
7
- * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.29.2.1 2002/05/21 18:50:18 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.29.2.2 2005/01/27 01:52:34 neilc Exp $
8
9
* This software is copyrighted by Jan Wieck - Hamburg.
10
@@ -476,6 +476,10 @@ decl_cursor_arglist : decl_cursor_arg
476
{
477
int i = $1->nfields++;
478
479
+ /* Guard against overflowing the array on malicious input */
480
+ if (i >= 1024)
481
+ yyerror("too many parameters specified for refcursor");
482
+
483
$1->fieldnames[i] = $3->refname;
484
$1->varnos[i] = $3->varno;
485
0 commit comments