Changeset: 289ed634cc42 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=289ed634cc42
Modified Files:
gdk/gdk_heap.c
Branch: Jul2012
Log Message:
Add assert to help coverity.
diffs (11 lines):
diff --git a/gdk/gdk_heap.c b/gdk/gdk_heap.c
--- a/gdk/gdk_heap.c
+++ b/gdk/gdk_heap.c
@@ -710,6 +710,7 @@ HEAPsave_intern(Heap *h, const char *nme
if (h->storage != STORE_MEM && store == STORE_PRIV) {
/* anonymous or private VM is saved as if it were malloced */
store = STORE_MEM;
+ assert(strlen(ext) + strlen(suffix) < sizeof(extension));
strcpy(extension, ext);
strcat(extension, suffix);
ext = extension;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list