Update of /cvsroot/monetdb/sql/src/server
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv24711
Modified Files:
Tag: Nov2009
rel_bin.mx
Log Message:
If column_name fails (strdup failure), nme can be NULL.
Triggered by Coverity.
Index: rel_bin.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/rel_bin.mx,v
retrieving revision 1.93.2.3
retrieving revision 1.93.2.4
diff -u -d -r1.93.2.3 -r1.93.2.4
--- rel_bin.mx 29 Nov 2009 09:42:21 -0000 1.93.2.3
+++ rel_bin.mx 4 Dec 2009 14:15:30 -0000 1.93.2.4
@@ -85,7 +85,7 @@
for (n = sub->op1.lval->h; n; n = n->next) {
char *nme = column_name(n->data);
- if (strcmp(nme, name) == 0) {
+ if (nme && strcmp(nme, name) == 0) {
res = n->data;
_DELETE(nme);
break;
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins