Skip to content

Commit 0915feb

Browse files
committed
ATRONIX: Validate type before inserting into Gob
This fixes the crash caused by: >> make gob! [pane: [make gob! []]] because this code would cause "count" to be 0, and results in a zero-sized series, which is now prohibited. (cherry picked from commit 46e5d3a)
1 parent b86e4b2 commit 0915feb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/t-gob.c

+2
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ const REBCNT Gob_Flag_Words[] = {
192192
Detach_Gob(VAL_GOB(val));
193193
if (i >= 0 && (REBINT)index > i) index--;
194194
}
195+
} else {
196+
Trap_Arg(val);
195197
}
196198
}
197199
arg = sarg;

0 commit comments

Comments
 (0)