Re: 7.2 fe-exec.c patch to PQescapeString() - Mailing list pgsql-patches

From Ed Loehr
Subject Re: 7.2 fe-exec.c patch to PQescapeString()
Date
Msg-id 3CACE860.9090308@bluepolka.net
Whole thread Raw
Responses Re: 7.2 fe-exec.c patch to PQescapeString()  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
This patch makes PQescapeString() guard against null input

ptrs and/or length == 0 input.  If any of these occur, the

function returns 0.

*** fe-exec.c.orig    Thu Apr  4 16:06:38 2002
--- fe-exec.c    Thu Apr  4 16:07:30 2002
***************
*** 75,76 ****
--- 75,80 ----

+     if ( ! to || ! from || ! length ) {
+         return 0;
+     }
+
      while (remaining > 0)

pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: please apply patch - build on Unixware with GCC
Next
From: "Nicolas Bazin"
Date:
Subject: Re: please apply patch - build on Unixware with GCC