Commit 1ab0788
authored
Fix traceback from trojansource plugin (#1248)
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
Signed-off-by: Eric Brown <eric_wade_brown@yahoo.com>1 parent 89bea99 commit 1ab0788
2 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
0 commit comments