Changeset: 93de279476de for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=93de279476de
Modified Files:
sql/backends/monet5/UDF/udf.c
Branch: Dec2011
Log Message:
UDF: check for NULL before dereferencing pointer
diffs (12 lines):
diff --git a/sql/backends/monet5/UDF/udf.c b/sql/backends/monet5/UDF/udf.c
--- a/sql/backends/monet5/UDF/udf.c
+++ b/sql/backends/monet5/UDF/udf.c
@@ -60,7 +60,7 @@ str UDFBATreverse(int *ret, int *bid)
str v;
/* locate the BAT in the buffer pool */
- if ((left = BATdescriptor(*bid)) == NULL)
+ if (bid == NULL || (left = BATdescriptor(*bid)) == NULL)
throw(MAL, "mal.reverse", RUNTIME_OBJECT_MISSING);
/* create the result container */
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list