diff options
author | albert-github <albert.tests@gmail.com> | 2019-04-19 14:10:19 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-04-19 14:10:19 (GMT) |
commit | 5428d2fe73e5e80bcf580d0c0506c0e3cff23cc6 (patch) | |
tree | 70dfed53bc7ec757ea7f9c69b06d2b1baad01188 /src/doctokenizer.l | |
parent | a1e030a9679ae515c090193b74aaa4ce9daa09d7 (diff) | |
download | Doxygen-5428d2fe73e5e80bcf580d0c0506c0e3cff23cc6.zip Doxygen-5428d2fe73e5e80bcf580d0c0506c0e3cff23cc6.tar.gz Doxygen-5428d2fe73e5e80bcf580d0c0506c0e3cff23cc6.tar.bz2 |
issue #6917 Crash in php with UTF-8 character
Also in HTML tag handling.
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r-- | src/doctokenizer.l | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l index 5cf5f02..7b402ca 100644 --- a/src/doctokenizer.l +++ b/src/doctokenizer.l @@ -211,7 +211,7 @@ static void handleHtmlTag() { char c=tagText.at(i); // skip spaces - while (i<(int)yyleng && isspace(c)) { c=tagText.at(++i); } + while (i<(int)yyleng && isspace((uchar)c)) { c=tagText.at(++i); } // check for end of the tag if (c == '>') break; // Check for XML style "empty" tag. @@ -222,17 +222,17 @@ static void handleHtmlTag() } startName=i; // search for end of name - while (i<(int)yyleng && !isspace(c) && c!='=') { c=tagText.at(++i); } + while (i<(int)yyleng && !isspace((uchar)c) && c!='=') { c=tagText.at(++i); } endName=i; HtmlAttrib opt; opt.name = tagText.mid(startName,endName-startName).lower(); // skip spaces - while (i<(int)yyleng && isspace(c)) { c=tagText.at(++i); } + while (i<(int)yyleng && isspace((uchar)c)) { c=tagText.at(++i); } if (tagText.at(i)=='=') // option has value { c=tagText.at(++i); // skip spaces - while (i<(int)yyleng && isspace(c)) { c=tagText.at(++i); } + while (i<(int)yyleng && isspace((uchar)c)) { c=tagText.at(++i); } if (tagText.at(i)=='\'') // option '...' { c=tagText.at(++i); @@ -256,7 +256,7 @@ static void handleHtmlTag() { startAttrib=i; // search for separator or end symbol - while (i<(int)yyleng && !isspace(c) && c!='>') { c=tagText.at(++i); } + while (i<(int)yyleng && !isspace((uchar)c) && c!='>') { c=tagText.at(++i); } endAttrib=i; if (i<(int)yyleng) c=tagText.at(++i); } |