This is an automated email from the git hooks/post-receive script. ebourg-guest pushed a commit to tag REL8_1_408 in repository libpostgresql-jdbc-java.
commit 08eb1295ebed72a3440dc2d01ef18f178053e76e Author: Kris Jurka <[email protected]> Date: Tue Sep 26 04:42:25 2006 +0000 Fix a bug in function escape processing. When dealing with an invalid escape the code attempted to read until it hit the escape end and press on, but it forgot to increment its position counter. This lead to an infinite loop that eventually resulted in an out of memory error. --- org/postgresql/jdbc2/AbstractJdbc2Statement.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org/postgresql/jdbc2/AbstractJdbc2Statement.java b/org/postgresql/jdbc2/AbstractJdbc2Statement.java index 1e49d22..242ccff 100644 --- a/org/postgresql/jdbc2/AbstractJdbc2Statement.java +++ b/org/postgresql/jdbc2/AbstractJdbc2Statement.java @@ -3,7 +3,7 @@ * Copyright (c) 2004-2005, PostgreSQL Global Development Group * * IDENTIFICATION -* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java,v 1.84.2.4 2006/05/22 09:56:34 jurka Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java,v 1.84.2.5 2006/05/23 19:37:24 jurka Exp $ * *------------------------------------------------------------------------- */ @@ -911,7 +911,7 @@ public abstract class AbstractJdbc2Statement implements BaseStatement // go to the end of the function copying anything found i++; while (i<len && p_sql.charAt(i)!='}') - newsql.append(p_sql.charAt(i)); + newsql.append(p_sql.charAt(i++)); state = IN_SQLCODE; // end of escaped function (or query) break; case ESC_TIMEDATE: -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

