Changeset: 7a9214df99d4 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7a9214df99d4
Modified Files:
sql/backends/monet5/sciql.c
Branch: SciQL-2
Log Message:
SCIQLmaterialise(): fixed off-by-one bug: do not (try to) read/write beyond
allocated memory
(found by using correct types, and adding and listening to overflow sanity
checks)
diffs (12 lines):
diff --git a/sql/backends/monet5/sciql.c b/sql/backends/monet5/sciql.c
--- a/sql/backends/monet5/sciql.c
+++ b/sql/backends/monet5/sciql.c
@@ -120,7 +120,7 @@ SCIQLmaterialise(Client cntxt, MalBlkPtr
assert(N[j] <= lim);
N[j] *= cnt_i;
}
- for (j = a->valence; j > i; j--) {
+ for (j = a->valence - 1; j > i; j--) {
assert(M[j] <= lim);
M[j] *= cnt_i;
}
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list