diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-01-28 14:39:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-28 14:39:31 -0500 |
commit | 2ee034c1e6ddd9918b97ddea2fd3e6388ec8f60b (patch) | |
tree | 77d46e8e793088ae9dbd0c74999d31e26951a629 /vendor/github.com/ulikunitz/xz/lzma/rangecodec.go | |
parent | a4c255a939cf340978efd9cb070951029237c8cf (diff) | |
parent | 75c3b33899954e7a0925426b38fd1084d521c3a0 (diff) | |
download | podman-2ee034c1e6ddd9918b97ddea2fd3e6388ec8f60b.tar.gz podman-2ee034c1e6ddd9918b97ddea2fd3e6388ec8f60b.tar.bz2 podman-2ee034c1e6ddd9918b97ddea2fd3e6388ec8f60b.zip |
Merge pull request #9140 from containers/dependabot/go_modules/github.com/containers/image/v5-5.10.0
Bump github.com/containers/image/v5 from 5.9.0 to 5.10.0
Diffstat (limited to 'vendor/github.com/ulikunitz/xz/lzma/rangecodec.go')
-rw-r--r-- | vendor/github.com/ulikunitz/xz/lzma/rangecodec.go | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/vendor/github.com/ulikunitz/xz/lzma/rangecodec.go b/vendor/github.com/ulikunitz/xz/lzma/rangecodec.go index 7189a0377..7b299abfe 100644 --- a/vendor/github.com/ulikunitz/xz/lzma/rangecodec.go +++ b/vendor/github.com/ulikunitz/xz/lzma/rangecodec.go @@ -131,32 +131,6 @@ type rangeDecoder struct { code uint32 } -// init initializes the range decoder, by reading from the byte reader. -func (d *rangeDecoder) init() error { - d.nrange = 0xffffffff - d.code = 0 - - b, err := d.br.ReadByte() - if err != nil { - return err - } - if b != 0 { - return errors.New("newRangeDecoder: first byte not zero") - } - - for i := 0; i < 4; i++ { - if err = d.updateCode(); err != nil { - return err - } - } - - if d.code >= d.nrange { - return errors.New("newRangeDecoder: d.code >= d.nrange") - } - - return nil -} - // newRangeDecoder initializes a range decoder. It reads five bytes from the // reader and therefore may return an error. func newRangeDecoder(br io.ByteReader) (d *rangeDecoder, err error) { |