compress/flate: runtime error: index out of range #41947
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
The code is still same in master, so I'd say yes
What operating system and processor architecture are you using (
go env
)?This was a sentry report, so I am just filling whatever I have:
MacOS Version:10.14.6
Architecture: amd64
What did you do?
We have this Sentry crash report which points to an OOB access in the compress/flate library.
What did you expect to see?
No crash
What did you see instead?
Crash is happening here:
go/src/compress/flate/deflate.go
Line 259 in eadc935
The codebase is https://github.com/mattermost/mattermost-server. Unfortunately, I cannot deduce which version of the codebase did this get triggered from. But we have a gzip response handler which compresses outgoing responses. The panic is coming in that path.
I also suspect that the stack trace is trashed somehow because a portion of it is duplicated. There's no way
(*compressor).findMatch
calls(*GzipResponseWriter).Close
. But this is what I have./cc @klauspost @dsnet
The text was updated successfully, but these errors were encountered: