fix raw data leak in $$sprintf()
it could be only triggered by abusing the function (no expansion actually done), and nobody is using this to start with, but still ... Change-Id: I3d4a23ae4d1eea07955572d8213094e0dc218f6d Reviewed-by: Daniel Teske <daniel.teske@digia.com> (cherry picked from qtcreator/cdc2a0f72334268684e0407e9b04b3188e00d4bf) Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
parent
07ada2fb60
commit
a8010f2d03
@ -514,7 +514,7 @@ ProStringList QMakeEvaluator::evaluateBuiltinExpand(
|
||||
QString tmp = args.at(0).toQString(m_tmp1);
|
||||
for (int i = 1; i < args.count(); ++i)
|
||||
tmp = tmp.arg(args.at(i).toQString(m_tmp2));
|
||||
ret << ProString(tmp);
|
||||
ret << (tmp.isSharedWith(m_tmp1) ? args.at(0) : ProString(tmp).setSource(args.at(0)));
|
||||
}
|
||||
break;
|
||||
case E_FORMAT_NUMBER:
|
||||
|
Loading…
Reference in New Issue
Block a user