rgbds: peekInternal: Assertion `ofs < expansion->len' failed.
The following code
test: MACRO
v equs "X"
X equs ""
\1
ENDM
test v 0
Results in this crash when compiled with assertions enabled:
rgbasm: src/asm/lexer.c:836: peekInternal: Assertion `ofs < expansion->len' failed.
Aborted (core dumped)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (15 by maintainers)
Commits related to this issue
- Do not expand empty strings Fixes #813 — committed to Rangi42/rgbds by Rangi42 3 years ago
- Store the nested expansions starting from the deepest one This shortens the lexer by around 100 lines and simplifies access to expansion contents, since it usually needs the deepest one, not the top-... — committed to Rangi42/rgbds by Rangi42 3 years ago
- Store the nested expansions starting from the deepest one This shortens the lexer by around 100 lines and simplifies access to expansion contents, since it usually needs the deepest one, not the top-... — committed to Rangi42/rgbds by Rangi42 3 years ago
- Store the nested expansions starting from the deepest one This shortens the lexer by around 100 lines and simplifies access to expansion contents, since it usually needs the deepest one, not the top-... — committed to Rangi42/rgbds by Rangi42 3 years ago
- Store the nested expansions starting from the deepest one This shortens the lexer by around 100 lines and simplifies access to expansion contents, since it usually needs the deepest one, not the top-... — committed to Rangi42/rgbds by Rangi42 3 years ago
- Store the nested expansions starting from the deepest one This shortens the lexer by around 100 lines and simplifies access to expansion contents, since it usually needs the deepest one, not the top-... — committed to Rangi42/rgbds by Rangi42 3 years ago
- Store the nested expansions starting from the deepest one This shortens the lexer by 100 lines and simplifies access to expansion contents, since it usually needs the deepest one, not the top-level o... — committed to Rangi42/rgbds by Rangi42 3 years ago
- Store the nested expansions starting from the deepest one This shortens the lexer by 100 lines and simplifies access to expansion contents, since it usually needs the deepest one, not the top-level o... — committed to Rangi42/rgbds by Rangi42 3 years ago
- Store the nested expansions starting from the deepest one This shortens the lexer by 100 lines and simplifies access to expansion contents, since it usually needs the deepest one, not the top-level o... — committed to Rangi42/rgbds by Rangi42 3 years ago
- Store the nested expansions starting from the deepest one This shortens the lexer by 100 lines and simplifies access to expansion contents, since it usually needs the deepest one, not the top-level o... — committed to Rangi42/rgbds by Rangi42 3 years ago
- Store the nested expansions starting from the deepest one This shortens the lexer by 100 lines and simplifies access to expansion contents, since it usually needs the deepest one, not the top-level o... — committed to Rangi42/rgbds by Rangi42 3 years ago
- Store the nested expansions starting from the deepest one (#829) This shortens the lexer by 100 lines and simplifies access to expansion contents, since it usually needs the deepest one, not the to... — committed to gbdev/rgbds by Rangi42 3 years ago
I am using AFL++. After minimization and deduplication, it’s 53 tests. dedup-crashes.tar.gz