Closed Rangi42 closed 1 month ago
Note that this also fixes a segfault when you INCBIN
an unbounded-size file:
$ cat incbin-urandom.asm
SECTION "test", ROM0
INCBIN "/dev/urandom"
$ rgbasm incbin-urandom.asm
Segmentation fault (core dumped)
$ ./rgbasm incbin-urandom.asm
FATAL: incbin-urandom.asm(2):
Section size would overflow internal counter
Fixes #538
Also since this doesn't make space-declaring directives into no-ops when they occur after an overflow, now errors with those directives don't get silenced.