Update of /cvsroot/monetdb/pathfinder/runtime
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv14813
Modified Files:
Tag: Nov2009
xrpc_server.mx
Log Message:
Likely a typo.
If strchr returns non-NULL, we know that *q!=0, and if it does return
NULL, you get a crash.
Found by Coverity.
Index: xrpc_server.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/xrpc_server.mx,v
retrieving revision 1.91.2.1
retrieving revision 1.91.2.2
diff -u -d -r1.91.2.1 -r1.91.2.2
--- xrpc_server.mx 7 Dec 2009 11:58:02 -0000 1.91.2.1
+++ xrpc_server.mx 24 Dec 2009 09:30:07 -0000 1.91.2.2
@@ -656,7 +656,7 @@
if (*p != ' ' && *p != '\t' && *p != '\n') break;
if (*p == '\'' || *p == '\"') {
char *q = strchr(p+1, *p);
- if (*q) { *q = 0; mode = p+1; }
+ if (q) { *q = 0; mode = p+1; }
}
}
msg = strchr(msg, '<');
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins