You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The controls predicate in GuardCondition fails to detect a control flow influence from a nested if. In the following example the influence from condition to call() is only revealed in the first if, but not in the second.
#include<exception>voidcall()
{
}
voidmy_fn(bool outer, bool condition)
{
if (condition) // detected
{
throwstd::exception();
}
if (outer)
{
if (condition) // not detected
{
throwstd::exception();
}
}
call();
}
The
controls
predicate inGuardCondition
fails to detect a control flow influence from a nestedif
. In the following example the influence fromcondition
tocall()
is only revealed in the firstif
, but not in the second.Query I tried:
Output I received:
I expected to also see an influence from line 17, but none is being found.
CodeQL version: 2.19.3
The text was updated successfully, but these errors were encountered: