Tíquete #33075

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

: 2014-02-03 18:46 Última Atualização: 2014-02-03 18:46

Relator:
(Anônimo)
Dono:
(Nenhum)
Tipo:
Estado:
Aberto
Componente:
(Nenhum)
Marcos:
(Nenhum)
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Nenhum
Arquivo:
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

Editar

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