待辦事項 #33075

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

啟用日期: 2014-02-03 18:46 最後更新: 2014-02-03 18:46

回報者:
(匿名)
負責人:
(無)
類型:
狀態:
開啟
元件:
(無)
里程碑:
(無)
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
檔案:
2

細節

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

編輯

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