picatz / taint

🚰 Static taint analysis for Go programs.
https://picatz.github.io/#blog/taint
Mozilla Public License 2.0
57 stars 1 forks source link

Do not parse comments #14

Closed picatz closed 10 months ago

picatz commented 10 months ago

We can save some memory/CPU by ignoring comments when loading packages:

https://github.com/picatz/taint/blob/5d93683df8f992ef11dc052f2d2c53337a69c8b3/cmd/taint/main.go#L291

https://github.com/picatz/taint/blob/5d93683df8f992ef11dc052f2d2c53337a69c8b3/cmd/taint/main.go#L303-L305