mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-27 17:15:18 +00:00
Disallow NUL characters in section names and assertion messages
Allowing these in object files would lose anything after the '\0' when RGBLINK reads the object.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
assert x, "oops \0 null"
|
||||
@@ -0,0 +1,2 @@
|
||||
FATAL: Assertion messages cannot contain '\0' characters
|
||||
at assert-nul.asm(1)
|
||||
@@ -0,0 +1,2 @@
|
||||
SECTION "test\0 foo", ROM0
|
||||
SECTION "test\0 bar", ROM0
|
||||
@@ -0,0 +1,2 @@
|
||||
FATAL: Section names cannot contain '\0' characters
|
||||
at section-name-nul.asm(1)
|
||||
@@ -7,4 +7,4 @@ SECTION "ROM2 1K", ROMX,BANK[2]
|
||||
ds $1000
|
||||
SECTION "ROM2 1", ROMX,BANK[2]
|
||||
ds 1
|
||||
SECTION "\\\"\'\n\r\t\0", ROM0
|
||||
SECTION "\\\"\'\n\r\t", ROM0
|
||||
|
||||
Reference in New Issue
Block a user