Skip to content

Commit

Permalink
Fix possible out-of-bounds write from a \ followed by multiple newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorse authored and Mike Gorse committed Aug 30, 2017
1 parent 7bad0a2 commit edf8ee0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions liblouis/compileTranslationTable.c
Expand Up @@ -336,6 +336,7 @@ _lou_getALine (FileInfo * nested)
if (pch == '\\' && ch == 10)
{
nested->linelen--;
pch = ch;
continue;
}
if (ch == 10 || nested->linelen >= MAXSTRING-1)
Expand Down

0 comments on commit edf8ee0

Please sign in to comment.