Skip to content

Commit 46e5d3a

Browse files
committed
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.
1 parent 895a6e7 commit 46e5d3a

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
@@ -197,6 +197,8 @@ const REBCNT Gob_Flag_Words[] = {
197197
Detach_Gob(VAL_GOB(val));
198198
if ((REBINT)index > i) index--;
199199
}
200+
} else {
201+
Trap_Arg(val);
200202
}
201203
}
202204
arg = sarg;

0 commit comments

Comments
 (0)