diff options
author | Palle Girgensohn <girgen@FreeBSD.org> | 2005-05-10 23:42:54 +0000 |
---|---|---|
committer | Palle Girgensohn <girgen@FreeBSD.org> | 2005-05-10 23:42:54 +0000 |
commit | 30f96e3f96a6ea572bedb04f88ba9b5d021d1654 (patch) | |
tree | f8a272cbdd0f40d79bf36be34398badc66945f70 /databases/postgresql74-server/files/patch-src-pl-plpgsql-src-gram-y | |
parent | - Fix a bug in the Python interface for getting the IP address (diff) |
Update PostgreSQL to latest versions. For details on the fixes,
please see the HISTORY file included in the Release, but a summary
consists of:
* Change encoding function signature to prevent misuse
* Change "contrib/tsearch2" to avoid unsafe use of INTERNAL function
results
* Repair race condition between relation extension and VACUUM
This could theoretically have caused loss of a page's worth of
freshly-inserted data, although the scenario seems of very low
probability. There are no known cases of it having caused more than
an Assert failure.
Security: http://www.postgresql.org/about/news.315
Notes
Notes:
svn path=/head/; revision=135023
Diffstat (limited to 'databases/postgresql74-server/files/patch-src-pl-plpgsql-src-gram-y')
-rw-r--r-- | databases/postgresql74-server/files/patch-src-pl-plpgsql-src-gram-y | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/databases/postgresql74-server/files/patch-src-pl-plpgsql-src-gram-y b/databases/postgresql74-server/files/patch-src-pl-plpgsql-src-gram-y deleted file mode 100644 index 053c44d5baf8..000000000000 --- a/databases/postgresql74-server/files/patch-src-pl-plpgsql-src-gram-y +++ /dev/null @@ -1,77 +0,0 @@ ---- src/pl/plpgsql/src/gram.y 2005/01/21 00:31:21 1.48.2.1 REL7_4_7 -+++ src/pl/plpgsql/src/gram.y 2005/02/08 18:22:11 1.48.2.3 REL7_4_STABLE -@@ -4,7 +4,7 @@ - * procedural language - * - * IDENTIFICATION -- * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.48.2.1 2005/01/21 00:31:21 neilc Exp $ -+ * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.48.2.3 2005/02/08 18:22:11 tgl Exp $ - * - * This software is copyrighted by Jan Wieck - Hamburg. - * -@@ -1699,6 +1699,16 @@ read_sql_construct(int until, - } - if (plpgsql_SpaceScanned) - plpgsql_dstring_append(&ds, " "); -+ -+ /* Check for array overflow */ -+ if (nparams >= 1024) -+ { -+ plpgsql_error_lineno = lno; -+ ereport(ERROR, -+ (errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED), -+ errmsg("too many variables specified in SQL statement"))); -+ } -+ - switch (tok) - { - case T_VARIABLE: -@@ -1856,6 +1866,15 @@ make_select_stmt(void) - - while ((tok = yylex()) == ',') - { -+ /* Check for array overflow */ -+ if (nfields >= 1024) -+ { -+ plpgsql_error_lineno = plpgsql_scanner_lineno(); -+ ereport(ERROR, -+ (errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED), -+ errmsg("too many INTO variables specified"))); -+ } -+ - tok = yylex(); - switch(tok) - { -@@ -1906,6 +1925,16 @@ make_select_stmt(void) - - if (plpgsql_SpaceScanned) - plpgsql_dstring_append(&ds, " "); -+ -+ /* Check for array overflow */ -+ if (nparams >= 1024) -+ { -+ plpgsql_error_lineno = plpgsql_scanner_lineno(); -+ ereport(ERROR, -+ (errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED), -+ errmsg("too many variables specified in SQL statement"))); -+ } -+ - switch (tok) - { - case T_VARIABLE: -@@ -1989,6 +2018,15 @@ make_fetch_stmt(void) - - while ((tok = yylex()) == ',') - { -+ /* Check for array overflow */ -+ if (nfields >= 1024) -+ { -+ plpgsql_error_lineno = plpgsql_scanner_lineno(); -+ ereport(ERROR, -+ (errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED), -+ errmsg("too many INTO variables specified"))); -+ } -+ - tok = yylex(); - switch(tok) - { |