mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-20 05:44:32 +00:00
Fix OOM for too-small overlay files in 32K mode (rgblink -t)
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
SECTION "test", ROM0[$42]
|
||||
Label:: dw Label
|
||||
@@ -0,0 +1,3 @@
|
||||
warning: Overlay file does not have a size multiple of 0x4000
|
||||
warning: Overlay is less than 0x8000 bytes large
|
||||
warning: Output is larger than overlay file, but no padding value was specified
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
@@ -1 +1,2 @@
|
||||
warning: Overlay file does not have a size multiple of 0x4000
|
||||
warning: Overlay is less than 0x8000 bytes large
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user