mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-03 14:17:12 +00:00
address buffer overrun when dict listx file has no trailling newline
See ar_listx as an example.
This commit is contained in:
@@ -411,8 +411,8 @@ static int compile_line(char *linebuf, char *dict_line, int n_dict_line, int *ha
|
||||
|
||||
step = LINE_PARSER_WORD;
|
||||
|
||||
c = 0;
|
||||
while (c != '\n') {
|
||||
c = *p;
|
||||
while (c != '\n' && c != '\0') {
|
||||
c = *p;
|
||||
|
||||
if ((c == '?') && (step == 0)) {
|
||||
|
||||
Reference in New Issue
Block a user