Update of /cvsroot/monetdb/sql/src/common
In directory sc8-pr-cvs16:/tmp/cvs-serv22612/src/common
Modified Files:
sql_types.mx
Log Message:
fix possible crash because of uninitialized fields in the type,func and aggr
structs.
Index: sql_types.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/common/sql_types.mx,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- sql_types.mx 26 Apr 2007 14:35:08 -0000 1.83
+++ sql_types.mx 28 Apr 2007 19:53:15 -0000 1.84
@@ -986,6 +986,7 @@
t->localtype = ATOMindex(t->base.name);
t->radix = radix;
t->eclass = eclass;
+ t->s = NULL;
if (!keyword_exists(t->sqlname))
keywords_insert(t->sqlname, KW_TYPE);
list_append(types, t);
@@ -1013,6 +1014,7 @@
assert(res);
sql_init_subtype(&t->res, res, 0, 0);
t->nr = list_length(aggrs);
+ t->s = NULL;
list_append(aggrs, t);
return t;
}
@@ -1118,6 +1120,8 @@
t->res.type = NULL;
t->nr = list_length(funcs);
t->sql = 0;
+ t->aggr = 0;
+ t->s = NULL;
list_append(funcs, t);
return t;
}
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins