Changeset: 1953a320e27e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/1953a320e27e
Modified Files:
monetdb5/mal/mal_instruction.c
Branch: Dec2025
Log Message:
add assert
diffs (11 lines):
diff --git a/monetdb5/mal/mal_instruction.c b/monetdb5/mal/mal_instruction.c
--- a/monetdb5/mal/mal_instruction.c
+++ b/monetdb5/mal/mal_instruction.c
@@ -443,6 +443,7 @@ int
findVariableLength(MalBlkPtr mb, const char *name, int len)
{
int i;
+ assert(mb->vtop <= mb->vsize);
for (i = mb->vtop - 1; i >= 0; i--) {
const char *s = mb->var[i].name;
if (s && strncmp(name, s, len) == 0 && s[len] == 0)
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]