summaryrefslogtreecommitdiff
path: root/vendor/github.com/klauspost/compress/gzip/gunzip.go
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2024-01-03 10:34:54 +0000
committerLibravatar GitHub <noreply@github.com>2024-01-03 10:34:54 +0000
commit0cb1dd493c81cbcdcd5d9ce925d2ce42b8ab8afd (patch)
treed7e4f2a72ff853168d25cc0faac8020b5631edd0 /vendor/github.com/klauspost/compress/gzip/gunzip.go
parent[bugfix] increases sleep time before check in throttle test, to give more lee... (diff)
downloadgotosocial-0cb1dd493c81cbcdcd5d9ce925d2ce42b8ab8afd.tar.xz
[chore]: Bump github.com/minio/minio-go/v7 from 7.0.65 to 7.0.66 (#2467)
Bumps [github.com/minio/minio-go/v7](https://github.com/minio/minio-go) from 7.0.65 to 7.0.66. - [Release notes](https://github.com/minio/minio-go/releases) - [Commits](https://github.com/minio/minio-go/compare/v7.0.65...v7.0.66) --- updated-dependencies: - dependency-name: github.com/minio/minio-go/v7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/klauspost/compress/gzip/gunzip.go')
-rw-r--r--vendor/github.com/klauspost/compress/gzip/gunzip.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/github.com/klauspost/compress/gzip/gunzip.go b/vendor/github.com/klauspost/compress/gzip/gunzip.go
index dc2362a63..00a0a2c38 100644
--- a/vendor/github.com/klauspost/compress/gzip/gunzip.go
+++ b/vendor/github.com/klauspost/compress/gzip/gunzip.go
@@ -238,6 +238,11 @@ func (z *Reader) readHeader() (hdr Header, err error) {
}
}
+ // Reserved FLG bits must be zero.
+ if flg>>5 != 0 {
+ return hdr, ErrHeader
+ }
+
z.digest = 0
if z.decompressor == nil {
z.decompressor = flate.NewReader(z.r)