* fix infinite loop when the utf-8 -> utf-32 converter encounters an invalid

utf-8 sequence/byte


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@37479 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe 2010-07-12 15:58:03 +00:00
parent 5f114e19ea
commit 1e5b315f7e
2 changed files with 2 additions and 0 deletions

View File

@ -2174,6 +2174,7 @@ yylex ()
default:
warning ("Skipping invalid UTF-8 byte in wide char "
"string literal");
c = GETC ();
continue;
}
for (i = 1; i < len; ++i)

View File

@ -4290,6 +4290,7 @@ real_yylex ()
default:
warning ("Skipping invalid UTF-8 byte in wide char "
"string literal");
c = getch ();
continue;
}
for (i = 1; i < len; ++i)