diff options
| author | Zufu Liu <unknown> | 2020-04-30 20:18:43 +1000 |
|---|---|---|
| committer | Zufu Liu <unknown> | 2020-04-30 20:18:43 +1000 |
| commit | b234bfefb654bc13420698e87f5c5a83c3bb9662 (patch) | |
| tree | 0b86259236d4cc0531776e96b83faef708d4d822 /lexilla/test/examples/mmixal/references.mms | |
| parent | 1aee5f9e2a49a64a20b03d6b71cb9a38ca691ae3 (diff) | |
| download | scintilla-mirror-b234bfefb654bc13420698e87f5c5a83c3bb9662.tar.gz | |
Bug [#2019]. Fix buffer over-read with absolute reference.
Diffstat (limited to 'lexilla/test/examples/mmixal/references.mms')
| -rw-r--r-- | lexilla/test/examples/mmixal/references.mms | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lexilla/test/examples/mmixal/references.mms b/lexilla/test/examples/mmixal/references.mms new file mode 100644 index 000000000..82be6e8c9 --- /dev/null +++ b/lexilla/test/examples/mmixal/references.mms @@ -0,0 +1,16 @@ +# Bug #2019 Buffer over-read in MMIXAL lexer +label + PREFIX Foo: +% Relative reference (uses PREFIX) + JMP label +% + JMP @label +% Absolute reference (does not use PREFIX) + JMP :label +% In register list so treated as register + JMP :rA +% Too long for buffer so truncated + JMP l1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 +% Too long for buffer so truncated then treated as absolute + JMP :l1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 +% |
