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 trying to detect the flow into potential_leak in the following, simplified code. This is just the minimal example, the vector can be constructed any way, e.g. with a series if push_back or via iterator etc and I’m trying to find a way to reliably detect taint on any elements at the sink location. Also assume that I do not have access to the source code of potential_leak and thus could detect the taint when the elements are accessed.
std::vector<int> v { sensitive_data };
potential_leak(v);
I am trying to detect the flow into
potential_leak
in the following, simplified code. This is just the minimal example, the vector can be constructed any way, e.g. with a series ifpush_back
or via iterator etc and I’m trying to find a way to reliably detect taint on any elements at the sink location. Also assume that I do not have access to the source code ofpotential_leak
and thus could detect the taint when the elements are accessed.My simplified query is
However this does not detect the flow. Is there some way to select the elements inside of
v
as sinks for this query?CodeQL version: 2.19.3
The text was updated successfully, but these errors were encountered: