We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
snappy/decode.go has this code:
x = uint(src[s-4]) | uint(src[s-3])<<8 | uint(src[s-2])<<16 | uint(src[s-1])<<24 } // length always > 0 length = int(x + 1)
That comment isn't always true, if you're on 32-bit ints, and so the subsequent "src[s:s+length]" can panic.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
snappy/decode.go has this code:
x = uint(src[s-4]) | uint(src[s-3])<<8 | uint(src[s-2])<<16 | uint(src[s-1])<<24
}
// length always > 0
length = int(x + 1)
That comment isn't always true, if you're on 32-bit ints, and so the subsequent "src[s:s+length]" can panic.
The text was updated successfully, but these errors were encountered: