Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory
23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv7996/sql/src/backends/monet5
Modified Files:
Tag: Nov2009
sql_result.mx
Log Message:
correctly fix potential NULL-pointer dereference detected by Coverity
Index: sql_result.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql_result.mx,v
retrieving revision 1.127.2.3
retrieving revision 1.127.2.4
diff -u -d -r1.127.2.3 -r1.127.2.4
--- sql_result.mx 10 Nov 2009 13:26:52 -0000 1.127.2.3
+++ sql_result.mx 10 Nov 2009 15:53:43 -0000 1.127.2.4
@@ -445,7 +445,13 @@
m->type = -1;
return NULL;
}
- if (!bs ||stream_errnr(bs->s)) {
+ if (!bs) {
+ showException(IO,"sql", "no stream (pointer) provided");
+
+ m->type = -1;
+ return NULL;
+ }
+ if (stream_errnr(bs->s)) {
showException(IO,"sql", "stream not open %d",
stream_errnr(bs->s));
m->type = -1;
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins