-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trim the "Reassigned in:" nodes to the ones that are relevant #46
Comments
I realize the fix needs to happen around https://github.com/python-security/pyt/blob/master/pyt/vulnerabilities.py#L229 and https://github.com/python-security/pyt/blob/master/pyt/vulnerabilities.py#L239, it shouldn't be that hard, right? |
We can't just do for node in secondary_in_sink:
if sink_args and node.left_hand_side in sink_args:
evil_node = node because, while that works for the example, that only gets the last part of the chain, there should be a better way. |
I care about 17 and 18. The reassignments might not be that trivial like in this example :) |
I think a good compromise would be to color the assignments leading to the vulnerability different from the rest, but until we do that, what do you think about a command line flag to trim the list? I got a little confused by the output in #11 due to this to be honest. |
A flag to hide reassignments are fine with me. But the default should be as it is now :) |
So if we have the following code:
We show the vulnerability output as:
Where we don't really care about Line 17 and 18 in the output, right?
I ran into this while doing #45, once I fix this then I can make the PR fixing both of them.
The text was updated successfully, but these errors were encountered: