Ticket #45202

Some invalid heredoc inputs trigger an assertion

Open Date: 2022-07-24 04:51 Last Update: 2022-07-24 13:19

Reporter:
(Anonymous)
Owner:
Type:
Status:
Closed
Component:
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
None
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Details

./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.

Ticket History (3/3 Histories)

2022-07-24 04:51 Updated by: None
  • New Ticket "Some invalid heredoc inputs trigger an assertion" created
2022-07-24 12:32 Updated by: magicant
  • Status Update from Open to Closed
  • Resolution Update from None to Fixed
Comment

Thanks for reporting the issue.

Fixed in r4187

2022-07-24 13:19 Updated by: magicant
  • Owner Update from (None) to magicant
  • Component Update from (None) to shell-main

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login