Changeset: 886cfd63cee9 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=886cfd63cee9
Modified Files:
        gdk/gdk_batop.c
Branch: unlock
Log Message:

Use correct comparison so as to not look beyond buffer.


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
@@ -593,7 +593,7 @@ append_msk_bat(BAT *b, BAT *n, struct ca
                                *bp++ |= (*np & mask) << boff;
                                cnt -= 32;
                        }
-                       if (cnt > noff) {
+                       if (cnt > boff) {
                                /* the last bits come from two words
                                 * in n */
                                *bp = (*np++ & ~mask) >> noff;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to