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 want to get the dataflow from calls to ntohl, to the size argument of memcpy. So in the example, I would expect the flow b_n = ntohl(a) -> ... -> memcpy(buf + offset, buf, b_n).
The problem is, apart from the expected flow, I am also getting the flow of identifier a_n -> memcpy(buf + offset) which is the first argument of memcpy.
I was trying to get data-flow to a specific argument to a function call.
For example, considering the following snippet of code:
I want to get the dataflow from calls to
ntohl
, to thesize
argument ofmemcpy
. So in the example, I would expect the flowb_n = ntohl(a) -> ... -> memcpy(buf + offset, buf, b_n)
.My query is:
The problem is, apart from the expected flow, I am also getting the flow of identifier
a_n -> memcpy(buf + offset)
which is the first argument ofmemcpy
.It seems that
argument
inval sink = cpg.call.name("memcpy").argument(3)
doesn't change the result.Is there currently a way of getting data-flow for just one argument of a call?
The text was updated successfully, but these errors were encountered: