任务单 #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 - Medium
严重性:
5 - Medium
处理结果:
文件:
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().

任务单历史 (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. » 登录名