mirror of
https://github.com/wader/fq.git
synced 2024-11-23 18:56:52 +03:00
zip: Fix nested decode for none compress
This commit is contained in:
parent
0480a2f722
commit
9029143acc
BIN
format/zip/testdata/.DS_Store
vendored
Normal file
BIN
format/zip/testdata/.DS_Store
vendored
Normal file
Binary file not shown.
1046
format/zip/testdata/test-macos.fqtest
vendored
1046
format/zip/testdata/test-macos.fqtest
vendored
File diff suppressed because it is too large
Load Diff
BIN
format/zip/testdata/test-macos.zip
vendored
BIN
format/zip/testdata/test-macos.zip
vendored
Binary file not shown.
BIN
format/zip/testdata/test/b.png
vendored
Normal file
BIN
format/zip/testdata/test/b.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 259 B |
1013
format/zip/testdata/test0.fqtest
vendored
1013
format/zip/testdata/test0.fqtest
vendored
File diff suppressed because it is too large
Load Diff
BIN
format/zip/testdata/test0.zip
vendored
BIN
format/zip/testdata/test0.zip
vendored
Binary file not shown.
1011
format/zip/testdata/test9.fqtest
vendored
1011
format/zip/testdata/test9.fqtest
vendored
File diff suppressed because it is too large
Load Diff
BIN
format/zip/testdata/test9.zip
vendored
BIN
format/zip/testdata/test9.zip
vendored
Binary file not shown.
@ -277,7 +277,9 @@ func zipDecode(d *decode.D, in interface{}) interface{} {
|
||||
}
|
||||
|
||||
if compressionMethod == compressionMethodNone {
|
||||
d.FieldRawLen("uncompressed", compressedSize)
|
||||
if dv, _, _ := d.FieldTryFormatLen("uncompressed", compressedSize, probeFormat, nil); dv == nil {
|
||||
d.FieldRawLen("uncompressed", compressedSize)
|
||||
}
|
||||
} else {
|
||||
var rFn func(r io.Reader) io.Reader
|
||||
switch compressionMethod {
|
||||
|
Loading…
Reference in New Issue
Block a user