Changeset: 7715f221cde3 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/7715f221cde3
Modified Files:
        sql/backends/monet5/copy_convert.c
Branch: default
Log Message:

one more pointer overflowing


diffs (18 lines):

diff --git a/sql/backends/monet5/copy_convert.c 
b/sql/backends/monet5/copy_convert.c
--- a/sql/backends/monet5/copy_convert.c
+++ b/sql/backends/monet5/copy_convert.c
@@ -72,13 +72,13 @@ COPYparse_generic(Client cntxt, MalBlkPt
        for (BUN i = 0; i < n; i++) {
                gdk_return ok = GDK_SUCCEED;
                int offset = offsetp[i];
-               const char *src = start + offset;
                const void *to_insert;
 
                if (is_int_nil(offset)) {
                        to_insert = nil_ptr;
                        has_nil = true;
                } else {
+                       const char *src = start + offset;
                        ssize_t len = BATatoms[tpe].atomFromStr(ma, src, 
&buffer_len, &buffer, false);
                        if (len >= 0) {
                                to_insert = buffer;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to