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
[I am not a maintainer, just curios]
I believe the second case you wrote is the right way to query what you want. In the first one you query for a call of "function" that gets as a parameter another call for a function that gets ¶m.
The interesting thing here is actually that this query matches:
weggli '{ $function(_(&$param)); $function(&$param);}'.
/tmp/src/./a.c:1
void fun(){
int param;
int foo = 1;
function(¶m); // <----- These two lines actually match
function(¶m);
}
As the first call to "function" has no parameter that is by itself a call for a function
When using
not:
in this case, the order of the lines are not consideredfor example, with this target, there are no findings:
But it should because there is no assignment to
foo
between calls tofunction
.In this other case where i remove the _(...) in the function parameter, then it works as expected
The text was updated successfully, but these errors were encountered: