-
Notifications
You must be signed in to change notification settings - Fork 127
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
TypeError: argument of type 'NoneType' is not iterable #14
Comments
I'm looking into this. Might be a complex fix. |
I think I fixed it in my latest PR. It's now spitting out some vulns like this in Ninja:
It is still have some trouble getting stuff like cmds.COMMANDS that I have to look into. |
Is this the AFO?
|
Yeah I wonder if part of the confusion came from the questionable coding style of the Ninja repo where
The AFO is in the |
OK, I'll keep this open to remind me to look into Ninja's cmd.COMMANDS symbol lookup. Should be able to parse it although symbol parsing is by far the most complicated technical hurdle and getting it parse one edge case sometimes causes other edge case lookups to then fail. It's annoying. |
I ran vulnhuntr on https://github.com/ahmedkhlief/Ninja to see its analysis of a known AFO there:
poetry run vulnhuntr -l claude -r /home/abc/Downloads/Ninja/ -v
I get the following traceback after some number of rounds of results:
The exception seems to be triggered by the first line of the
context_code
:A small reproduction:
The problem seems to be that the modules code in
symbol_finder.py
doesn't handle that style of import. If the first argument toextract()
is changed to the full module pathcore.cmd
then the code doesn't crash, but theif
statement doesn't trigger so Jedi doesn't goto the relevant source module file.The text was updated successfully, but these errors were encountered: