Skip to content

Conversation

ericwb
Copy link
Member

@ericwb ericwb commented Mar 21, 2025

The trojansource plugin functions differently where it doesn't process a file by AST node. It instead does a line by line search for suspicious characters.

As a result, it can't rely on the linerange being automatically set based on values fetched from the node. So it needs to set the linerange manually.

Fixes: #1246

The trojansource plugin functions differently where it doesn't
process a file by AST node. It instead does a line by line search
for suspicious characters.

As a result, it can't rely on the linerange being automatically
set based on values fetched from the node. So it needs to set
the linerange manually.

Fixes: PyCQA#1246

Signed-off-by: Eric Brown <eric_wade_brown@yahoo.com>
@ericwb ericwb added the bug Something isn't working label Mar 21, 2025
@ericwb ericwb enabled auto-merge (squash) March 21, 2025 04:17
@ericwb ericwb merged commit 1ab0788 into PyCQA:main Mar 21, 2025
15 checks passed
@ericwb ericwb deleted the fix_trojan branch March 21, 2025 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Traceback when scanning trojansource.py with sarif formatter
2 participants