Ticket #45202

Some invalid heredoc inputs trigger an assertion

Eröffnet am: 2022-07-24 04:51 Letztes Update: 2022-07-24 13:19

Auswertung:
(Anonym)
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
(Keine)
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
Keine
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-Verlauf (3/3 Historien)

2022-07-24 04:51 Aktualisiert von: None
  • New Ticket "Some invalid heredoc inputs trigger an assertion" created
2022-07-24 12:32 Aktualisiert von: magicant
  • Status Update from Offen to Geschlossen
  • Lösung Update from Keine to Gefixt
Kommentar

Thanks for reporting the issue.

Fixed in r4187

2022-07-24 13:19 Aktualisiert von: magicant
  • Verantwortlicher Update from (Keine) to magicant
  • Komponente Update from (Keine) to shell-main

Dateianhangliste

Keine Anhänge

Bearbeiten

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