Closed czechbol closed 2 weeks ago
:warning: Please install the to ensure uploads and comments are reliably processed by Codecov.
Attention: Patch coverage is 77.35849%
with 12 lines
in your changes missing coverage. Please review.
Project coverage is 67.34%. Comparing base (
ab3f6c1
) to head (df0206f
). Report is 3 commits behind head on master.
Files | Patch % | Lines |
---|---|---|
analyzers/conversion_overflow.go | 77.35% | 7 Missing and 5 partials :warning: |
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@czechbol It seems that there some more use cases to handle https://github.com/securego/gosec/issues/1187#issuecomment-2311308184. I would be great if you could also check the bounds. Thanks
This pull request hopefully fixes the issue of false positives in the overflow analysis whenever bounds checks are performed or the size is already pre-determined.
Disclaimer: This is my first time contributing to any linter and I don't consider myself being an AST wizard so please be more cautious when reviewing this code.
fixes #1187