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 committed 2019-09-10 03:03:04 -07:00
1 parent 89eda89838
commit f36a3d5b2a
6 files changed
+47 -25

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
m: MACRO
ENDM
m2: MACRO
m \ ENDM
m2
Whitespace-only changes.
+8
View File
@@ -0,0 +1,8 @@
m: MACRO
ENDM
REPT 1
m ENDR
REPT 1
m \ ENDR
View File
Whitespace-only changes.