待辦事項 #45202

Some invalid heredoc inputs trigger an assertion

啟用日期: 2022-07-24 04:51 最後更新: 2022-07-24 13:19

回報者:
(匿名)
負責人:
類型:
狀態:
關閉
元件:
里程碑:
(無)
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
修正
檔案:
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

細節

./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
  • 狀態 Update from 開啟 to 關閉
  • 處理結果 Update from to 修正
評語

Thanks for reporting the issue.

Fixed in r4187

2022-07-24 13:19 Updated by: magicant
  • 負責人 Update from (無) to magicant
  • 元件 Update from (無) to shell-main

Attachment File List

No attachments

編輯

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