Update of /cvsroot/monetdb/pathfinder/runtime
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv9672/runtime
Modified Files:
xrpc_server.mx
Log Message:
propagated changes of Thursday Dec 24 2009 - Saturday Dec 26 2009
from the Nov2009 branch to the development trunk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/12/24 - sjoerd: runtime/xrpc_server.mx,1.91.2.2
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.92
retrieving revision 1.93
diff -u -d -r1.92 -r1.93
--- xrpc_server.mx 9 Dec 2009 12:47:56 -0000 1.92
+++ xrpc_server.mx 26 Dec 2009 10:58:15 -0000 1.93
@@ -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