Update of /cvsroot/pypgsql/pypgsql
In directory sc8-pr-cvs1:/tmp/cvs-serv4937
Modified Files:
libpqmodule.c
Log Message:
09NOV2003 bga Fixed a buffer overrun error in libPQquoteBytea based on a fix
by James Matthew Farrow. [Bug #838317].
Index: libpqmodule.c
===================================================================
RCS file: /cvsroot/pypgsql/pypgsql/libpqmodule.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** libpqmodule.c 17 Jun 2003 01:28:30 -0000 1.29
--- libpqmodule.c 10 Nov 2003 05:11:00 -0000 1.30
***************
*** 32,35 ****
--- 32,37 ----
| Date Ini Description |
| --------- --- ------------------------------------------------------- |
+ | 09NOV2003 bga Fixed a buffer overrun error in libPQquoteBytea based |
+ | on a fix by James Matthew Farrow. [Bug #838317]. |
| 16JUN2003 gh On win32, we usually statically link against libpq. |
| Because of fortunate circumstances, a problem didn't |
***************
*** 365,369 ****
sout[j++] = (forArray ? '"' : '\'');
- sout[j] = (char)0;
result = Py_BuildValue("s#", sout, j);
--- 367,370 ----
***************
*** 411,416 ****
}
}
-
- sout[j] = (char)0;
result = Py_BuildValue("s#", sout, j);
--- 412,415 ----
|