]> git.ipfire.org Git - thirdparty/zstd.git/commit
fix decodecorpus incorrect frame generation 1380/head
authorYann Collet <cyan@fb.com>
Sun, 21 Oct 2018 01:53:02 +0000 (18:53 -0700)
committerYann Collet <cyan@fb.com>
Sun, 21 Oct 2018 01:56:21 +0000 (18:56 -0700)
commitf181799082c65a7f532dbcccb027dd7618f551d4
tree94edef42468c170aa8d47c56d9599a5b360c623a
parentf2cff22804e3d86327b06d51458003b40b455afc
fix decodecorpus incorrect frame generation

fix #1379
decodecorpus was generating one extraneous byte when `nbSeq==0`.
This is disallowed by the specification.

The reference decoder was just skipping the extraneous byte.
It is now stricter, and flag such situation as an error.
lib/decompress/zstd_decompress.c
programs/windres/zstd32.res
programs/windres/zstd64.res
tests/decodecorpus.c