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

Most upvoted comments

It might help, can’t hurt. What fuzzer are you using?

I am using AFL++. After minimization and deduplication, it’s 53 tests. dedup-crashes.tar.gz