Changeset: a4160f607bef for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a4160f607bef
Modified Files:
        gdk/gdk_batop.c
Branch: Jun2016
Log Message:

Unshare the string heap when we may write to it.
This should fix bug 6118.


diffs (13 lines):

diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c
--- a/gdk/gdk_batop.c
+++ b/gdk/gdk_batop.c
@@ -217,7 +217,8 @@ insert_string_bat(BAT *b, BAT *n, int fo
                        }
                        b->tvarsized = 0;
                }
-       }
+       } else if (unshare_string_heap(b) != GDK_SUCCEED)
+               return GDK_FAIL;
        if (toff == 0 && n->T->width == b->T->width) {
                /* we don't need to do any translation of offset
                 * values, so we can use fast memcpy */
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to