Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
d46a1447
Commit
d46a1447
authored
May 15, 2009
by
Roberto Raggi
Browse files
Fixed possible crash in std::isspace(ch) when ch is a unicode char.
parent
72d2b286
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/pp-engine.cpp
View file @
d46a1447
...
...
@@ -47,6 +47,7 @@
*/
#include
"pp.h"
#include
"pp-cctype.h"
#include
<Lexer.h>
#include
<Token.h>
...
...
@@ -702,7 +703,7 @@ bool Preprocessor::markGeneratedTokens(bool markGeneratedTokens,
++
it
;
for
(;
it
!=
end
;
++
it
)
{
if
(
!
std
::
isspace
(
*
it
))
if
(
!
pp_
isspace
(
*
it
))
out
(
' '
);
else
...
...
@@ -773,7 +774,7 @@ void Preprocessor::preprocess(const QByteArray &fileName, const QByteArray &sour
++
it
;
for
(;
it
!=
end
;
++
it
)
{
if
(
std
::
isspace
(
*
it
))
if
(
pp_
isspace
(
*
it
))
out
(
*
it
);
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment