Commit 99f15f17 authored by Daniel Teske's avatar Daniel Teske Committed by Oswald Buddenhagen
Browse files

ProParser: Plug raw data leak

QProcessEnvironment caches keys, so we must not pass it QStrings created with

Task-number: QTCREATORBUG-9142
Change-Id: I29fade02f3bc4110fafb1b04d44f2e653951a2ae
Reviewed-by: default avatarOswald Buddenhagen <>
parent cd4c4218
......@@ -453,7 +453,7 @@ void QMakeEvaluator::evaluateExpression(
break; }
case TokEnvVar: {
const ProString &var = getStr(tokPtr);
const ProString &val = ProString(m_option->getEnv(var.toQString(m_tmp1)));
const ProString &val = ProString(m_option->getEnv(var.toQString()));
debugMsg(2, "env var %s => %s", dbgStr(var), dbgStr(val));
addStr(val, ret, pending, joined);
break; }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment