Closed seedsnie closed 7 months ago
That backtrace shows an old version (v1.3.0) of this package. There's been 6-7 releases since including one that I think fixes this particular issue.
Please feel free to reopen if this is reproducible with the latest version. Attaching or linking to an example archive that triggers the issue is considered very helpful.
thanks for help,I'll try latest version
panic: runtime error: index out of range [104] with length 5
goroutine 74 [running]: panic({0x17e2ce0, 0xcaa3260}) c:/go/src/runtime/panic.go:987 +0x364 fp=0xdec1790 sp=0xdec1734 pc=0xcea404 runtime.goPanicIndex(0x68, 0x5) c:/go/src/runtime/panic.go:113 +0xa3 fp=0xdec17b0 sp=0xdec1790 pc=0xce8373 github.com/bodgit/sevenzip.readFilesInfo({0x2b3c1c40, 0xc91ded8}) C:/Users/Administrator/go/pkg/mod/github.com/bodgit/sevenzip@v1.3.0/types.go:707 +0xa66 fp=0xdec1870 sp=0xdec17b0 pc=0x111ed86 github.com/bodgit/sevenzip.readHeader({0x2b3c1c40, 0xc91ded8}) C:/Users/Administrator/go/pkg/mod/github.com/bodgit/sevenzip@v1.3.0/types.go:811 +0x108 fp=0xdec18ec sp=0xdec1870 pc=0x111eea8 github.com/bodgit/sevenzip.readEncodedHeader({0x2b3c1c40, 0xc91ded8}) C:/Users/Administrator/go/pkg/mod/github.com/bodgit/sevenzip@v1.3.0/types.go:849 +0xe8 fp=0xdec1914 sp=0xdec18ec pc=0x111f498 github.com/bodgit/sevenzip.(Reader).init(0xc0fe2a0, {0x19e1abc, 0xc717e90}, 0x38a5b) C:/Users/Administrator/go/pkg/mod/github.com/bodgit/sevenzip@v1.3.0/reader.go:356 +0xa42 fp=0xdec1ad0 sp=0xdec1914 pc=0x11153b2 github.com/bodgit/sevenzip.NewReaderWithPassword({0x19e1abc, 0xc717e90}, 0x38a5b, {0x0, 0x0}) C:/Users/Administrator/go/pkg/mod/github.com/bodgit/sevenzip@v1.3.0/reader.go:242 +0x8d fp=0xdec1af4 sp=0xdec1ad0 pc=0x111478d github.com/mholt/archiver/v4.SevenZip.Extract({0x0, {0x0, 0x0}}, {0x19e5ba8, 0xac341c0}, {0x19e1aa8, 0xc717e90}, {0x0, 0x0, 0x0}, ...) C:/Users/Administrator/go/pkg/mod/github.com/mholt/archiver/v4@v4.0.0-alpha.8/7z.go:76 +0x181 fp=0xdec1c44 sp=0xdec1af4 pc=0x1186111 github.com/mholt/archiver/v4.(SevenZip).Extract(0xac08240, {0x19e5ba8, 0xac341c0}, {0x19e1aa8, 0xc717e90}, {0x0, 0x0, 0x0}, 0xc2ebaf0)