python-joern icon indicating copy to clipboard operation
python-joern copied to clipboard

can't run traversal "unsanitized"

Open Smaugon opened this issue 6 years ago • 2 comments

It confuses me so much. I have installed the latest version of python joern, and I use the following traversal getArguments('memcpy', '2') .sideEffect{ paramName = '.len.' } .filter{ it.code.matches(paramName) } .unsanitized{ it.isCheck( paramName ) } .params( paramName ) It is showed on https://joern.readthedocs.io/en/latest/querying.html as an example, but I failed. I have checked the code over and over, but I have no clue. Please tell me how to solve it!

Smaugon avatar May 23 '19 13:05 Smaugon

I wish you could check it again. The param "sanitizer" of the closure "isTerminationNode" has two params, but the code up there only has one. No wonder it goes wrong.

Smaugon avatar May 25 '19 16:05 Smaugon

try .unsanitized{ it,s -> it._().isCheck }

huntergregal avatar Aug 29 '19 21:08 huntergregal