Changeset: f9d95257de96 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/f9d95257de96
Modified Files:
sql/backends/monet5/rel_bin.c
Branch: Dec2025
Log Message:
Add sanity check on valid sel1 pointer to prevent segmentation fault on
sel1->nrcols, as currently happens in query of 7880.
This does not fix 7880. It now fails with an assertion failurei as explained in
the comments.
diffs (12 lines):
diff --git a/sql/backends/monet5/rel_bin.c b/sql/backends/monet5/rel_bin.c
--- a/sql/backends/monet5/rel_bin.c
+++ b/sql/backends/monet5/rel_bin.c
@@ -731,7 +731,7 @@ exp_bin_conjunctive(backend *be, sql_exp
}
sel1 = s;
}
- if (sel1->nrcols == 0 && left) {
+ if (sel1 && sel1->nrcols == 0 && left) {
stmt *predicate = bin_find_smallest_column(be, left);
if (!reduce) {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]