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:
dbrotz
2019-09-10 03:03:04 -07:00
parent 89eda89838
commit f36a3d5b2a
6 changed files with 47 additions and 25 deletions

View File

@@ -0,0 +1,7 @@
m: MACRO
ENDM
m2: MACRO
m \ ENDM
m2

View File

View File

@@ -0,0 +1,8 @@
m: MACRO
ENDM
REPT 1
m ENDR
REPT 1
m \ ENDR

View File