You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as we would cast the type to int if not already an int or in64, why would we care about the unsafe code.
Their code is unsafe now, they would become valid if we fix them, no ?
This pattern is currently not detected
here are examples
https://github.com/hrygo/gosms/blob/a86be4529f49edfd239fcb7a73a0db4c72924bae/codec_test/sgip/submit_test.go#L24
https://github.com/foxcpp/go-imap-backend-tests/blob/958ea5829771f889ccc42c89ab0f7a74ad0d5e01/mailbox.go#L233
(yes, I know this one inverted expected and actual)
Some other can be found here
https://github.com/search?q=language%3Ago+%22assert.True%28t%2C+uint%22&type=code&p=4
https://github.com/search?q=language%3Ago+%22assert.Equal%28t%2C+uint%22+%22len%22&type=code
The text was updated successfully, but these errors were encountered: