Ticket #33075

anthy goes into an infinite loop if the end of anthy journal file is broken.

Eröffnet am: 2014-02-03 18:46 Letztes Update: 2014-02-03 18:46

Auswertung:
(Anonym)
Verantwortlicher:
(Keine)
Typ:
Status:
Offen
Komponente:
(Keine)
Meilenstein:
(Keine)
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Keine
Datei:
2

Details

Normally the end of anthy journal file, $HOME/.anthy/last-record2_default.utf8, should be '\n' when we check it with 'od' command.
But if that file is broken, the end of file would not be '\n' and anthy_do_create_context() could go into an infinite loop.

The solution is to check EOF besides '\n' in record.c:read_1_token().

Ticket-Verlauf (3/4 Historien)

2014-02-03 18:46 Aktualisiert von: None
  • New Ticket "anthy goes into an infinite loop if the end of anthy journal file is broken." created

Dateianhangliste

Bearbeiten

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