]> Cypherpunks repositories - gostls13.git/commit
compress/flate: Fixed two panics on bad data
authorPieter Droogendijk <pieter@binky.org.uk>
Thu, 1 Aug 2013 22:20:01 +0000 (15:20 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 1 Aug 2013 22:20:01 +0000 (15:20 -0700)
commitdf1eeeba4a991a10f6b8e992d7d1b6ac87c23f7b
treeddab2d22bc91974c96f5cc329ec85435ba8ad10b
parent17d803d25133b34f519cf620a28b2302677a02e8
compress/flate: Fixed two panics on bad data

I used just enough of the data provided by Matt in Issue 5915 to trigger
issue 5915. As luck would have it, using slightly less of it triggered
issue 5962.

Fixes #5915.
Fixes #5962.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/12288043
src/pkg/compress/flate/flate_test.go
src/pkg/compress/flate/inflate.go