mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-21 03:22:01 +00:00
Fix macro and rept buffer overflows
Macro and rept buffers were not always being terminated with newlines and/or were vulnerable to the final newline being escaped, allowing buffer overflows to occur. Now, they are terminated with newlines using the same mechanism as the file buffer.
This commit is contained in:
1 parent
89eda89838
commit
f36a3d5b2a
6 files changed
+47
-25
No files matched your search
@@ -0,0 +1,7 @@
|
||||
m: MACRO
|
||||
ENDM
|
||||
|
||||
m2: MACRO
|
||||
m \ ENDM
|
||||
|
||||
m2
|
||||
Whitespace-only changes.
@@ -0,0 +1,8 @@
|
||||
m: MACRO
|
||||
ENDM
|
||||
|
||||
REPT 1
|
||||
m ENDR
|
||||
|
||||
REPT 1
|
||||
m \ ENDR
|
||||
Whitespace-only changes.
Reference in new issue
Block a user