Update of /cvsroot/monetdb/sql/src/server
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv16259

Modified Files:
      Tag: Nov2009
        rel_bin.mx 
Log Message:
In the unlikely event that exp_bin returns NULL, don't dereference.
Found by Coverity.


Index: rel_bin.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/rel_bin.mx,v
retrieving revision 1.93.2.4
retrieving revision 1.93.2.5
diff -u -d -r1.93.2.4 -r1.93.2.5
--- rel_bin.mx  4 Dec 2009 14:15:30 -0000       1.93.2.4
+++ rel_bin.mx  23 Dec 2009 16:14:34 -0000      1.93.2.5
@@ -1501,6 +1501,8 @@
 
                assert(e->type == e_cmp && e->flag == cmp_equal);
                s = exp_bin(sql, e->r, NULL, NULL, NULL, NULL);
+               if (s == NULL)
+                       return NULL;
 
                if (h) {
                        sql_subfunc *xor = 
sql_bind_func_result3(sql->session->schema, "rotate_xor_hash", wrd, it, 
tail_type(s), wrd);


------------------------------------------------------------------------------
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-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to