| author | Oliver Tappe <zooey@hirschkaefer.de> | 2010-07-12 15:58:03.0 +00:00:00 |
|---|---|---|
| committer | Oliver Tappe <zooey@hirschkaefer.de> | 2010-07-12 15:58:03.0 +00:00:00 |
| commit | 1e5b315f7e0798add14c809a56dc6bbb7db55f1f [patch] |
|
| tree | 2eac662f5df7392ddc9418141e46ea007e048f5a |
|
| parent | 5f114e19ea5bdb5aa234aeab2a6e69c01e5a3ae4 |
|
| download | 1e5b315f7e0798add14c809a56dc6bbb7db55f1f.tar.gz |
|
* 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
Diff
legacy/gcc/gcc/c-lex.c | 1 + legacy/gcc/gcc/cp/lex.c | 1 + 2 files changed, 2 insertions(+) diff --git a/legacy/gcc/gcc/c-lex.c b/legacy/gcc/gcc/c-lex.c index e9888c3..2f058c2 100644 --- a/legacy/gcc/gcc/c-lex.c +++ b/legacy/gcc/gcc/c-lex.c @@ -2174,6 +2174,7 @@ default: warning ("Skipping invalid UTF-8 byte in wide char " "string literal"); c = GETC (); continue; } for (i = 1; i < len; ++i) diff --git a/legacy/gcc/gcc/cp/lex.c b/legacy/gcc/gcc/cp/lex.c index 6d2ef4e..d37d9a4 100644 --- a/legacy/gcc/gcc/cp/lex.c +++ b/legacy/gcc/gcc/cp/lex.c @@ -4290,6 +4290,7 @@ default: warning ("Skipping invalid UTF-8 byte in wide char " "string literal"); c = getch (); continue; } for (i = 1; i < len; ++i)