Fix OOM for too-small overlay files in 32K mode (rgblink -t)

This commit is contained in:
Rangi
2026-07-13 16:17:30 -04:00
parent 66312f55dd
commit 417b5212d4
7 changed files with 24 additions and 4 deletions
+10
View File
@@ -260,6 +260,16 @@ tryDiff "$test"/out.err "$outtemp"
tryCmp "$test"/out.gb "$gbtemp"
evaluateTest
test="overlay/smaller-32k"
startTest
"$RGBASM" -o "$otemp" "$test"/a.asm
continueTest
rgblinkQuiet -o "$gbtemp" -t -O "$test"/overlay.gb "$otemp" 2>"$outtemp"
tryDiff "$test"/out.err "$outtemp"
# This test does not trim its output with 'dd' because it needs to verify the correct output size
tryCmp "$test"/out.gb "$gbtemp"
evaluateTest
test="overlay/unfixed"
startTest
"$RGBASM" -o "$otemp" "$test"/a.asm