From d672f8f86306cb90c4dbe09ba7285cfca8ba1ebb Mon Sep 17 00:00:00 2001 From: Robert Marsh Date: Mon, 10 Feb 2020 15:57:38 -0800 Subject: [PATCH] C++: unflip cause strings in FunctionWithWrapper --- cpp/ql/src/semmle/code/cpp/security/FunctionWithWrappers.qll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/ql/src/semmle/code/cpp/security/FunctionWithWrappers.qll b/cpp/ql/src/semmle/code/cpp/security/FunctionWithWrappers.qll index 4acd6088e6b..8047bc384b2 100644 --- a/cpp/ql/src/semmle/code/cpp/security/FunctionWithWrappers.qll +++ b/cpp/ql/src/semmle/code/cpp/security/FunctionWithWrappers.qll @@ -106,8 +106,8 @@ abstract class FunctionWithWrappers extends Function { pragma[nomagic] private string wrapperFunctionAnyDepthUnique(Function func, int paramIndex) { result = - min(string targetCause | this.wrapperFunctionAnyDepth(func, paramIndex, targetCause)) + - ", which ends up calling " + toCause(func, paramIndex) + toCause(func, paramIndex) + ", which ends up calling " + + min(string targetCause | this.wrapperFunctionAnyDepth(func, paramIndex, targetCause)) } /**