Changeset: 2fc692287fbe for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2fc692287fbe Modified Files: gdk/gdk_batop.c Branch: Oct2014 Log Message:
Only copy allocated heap space. diffs (12 lines): diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c --- a/gdk/gdk_batop.c +++ b/gdk/gdk_batop.c @@ -177,7 +177,7 @@ insert_string_bat(BAT *b, BAT *n, int ap toff = ~(size_t) 0; goto bunins_failed; } - memcpy(b->T->vheap->base + toff, n->T->vheap->base, n->T->vheap->size); + memcpy(b->T->vheap->base + toff, n->T->vheap->base, n->T->vheap->free); b->T->vheap->free = toff + n->T->vheap->free; /* flush double-elimination hash table */ memset(b->T->vheap->base, 0, GDK_STRHASHSIZE); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list