CVS User Account cvsuser
Mon Aug 2 21:57:55 PDT 2004
Log Message:
-----------
Opps another possible buffer overrun

Modified Files:
--------------
    slony1-engine/src/slon:
        dbutils.c (r1.9 -> r1.10)

-------------- next part --------------
Index: dbutils.c
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/slon/dbutils.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -Lsrc/slon/dbutils.c -Lsrc/slon/dbutils.c -u -w -r1.9 -r1.10
--- src/slon/dbutils.c
+++ src/slon/dbutils.c
@@ -288,7 +288,7 @@
 								break;
 
 					case 'q':	s = va_arg(ap, char *);
-								while (*s != '\0')
+								while (s && *s != '\0')
 								{
 									switch (*s)
 									{


More information about the Slony1-commit mailing list