Some invalid heredoc inputs trigger an assertion
./configure --debug
Then:
$ printf '<<!<<!\n!' | ./yash yash: parser.c:3236: is_end_of_heredoc_contents: Assertion `ps->src.length > 0 && ps->src.contents[ps->index - 1] == L'\n'' failed. Aborted
I discovered this through fuzzing with afl.
Thanks for reporting the issue.
Fixed in r4187
Then:
I discovered this through fuzzing with afl.