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
Tobias Hunger
qt-creator
Commits
870a3b39
Commit
870a3b39
authored
Apr 14, 2009
by
Oswald Buddenhagen
Browse files
protect against circular inclusion of pro/pri files
Task-number: 250574
parent
99fccb6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/shared/proparser/profileevaluator.cpp
View file @
870a3b39
...
...
@@ -2024,7 +2024,13 @@ ProFile *ProFileEvaluator::parsedProFile(const QString &fileName)
{
QFileInfo
fi
(
fileName
);
if
(
fi
.
exists
())
{
ProFile
*
pro
=
new
ProFile
(
fi
.
absoluteFilePath
());
QString
fn
=
QDir
::
cleanPath
(
fi
.
absoluteFilePath
());
foreach
(
const
ProFile
*
pf
,
d
->
m_profileStack
)
if
(
pf
->
fileName
()
==
fn
)
{
errorMessage
(
d
->
format
(
"circular inclusion of %1"
).
arg
(
fn
));
return
0
;
}
ProFile
*
pro
=
new
ProFile
(
fn
);
if
(
d
->
read
(
pro
))
return
pro
;
delete
pro
;
...
...
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