securego / gosec

Go security checker
https://securego.io
Apache License 2.0
7.71k stars 606 forks source link

Resolve underlying type to detect overflows in type aliases #1170

Closed gartnera closed 1 month ago

gartnera commented 1 month ago

Calling Underlying() will get the underlying type if there is one.

This allows correctly testing for overflows with type aliases.

codecov-commenter commented 1 month ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 69.52%. Comparing base (4487a0c) to head (01c7d9a).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1170 +/- ## ======================================= Coverage 69.52% 69.52% ======================================= Files 71 71 Lines 3865 3865 ======================================= Hits 2687 2687 Misses 1061 1061 Partials 117 117 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.