Ticket #33075

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

Open Date: 2014-02-03 18:46 Last Update: 2014-02-03 18:46

Reporter:
(Anonymous)
Owner:
(None)
Type:
Status:
Open
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
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 History (3/4 Histories)

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

Attachment File List

Edit

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