]> git.ipfire.org Git - thirdparty/zstd.git/commit
Fix execSequence wildcopy undefined behavior 478/head
authorNick Terrell <terrelln@fb.com>
Tue, 13 Dec 2016 03:01:23 +0000 (19:01 -0800)
committerNick Terrell <terrelln@fb.com>
Tue, 13 Dec 2016 03:01:23 +0000 (19:01 -0800)
commit064a143520ded4d8410c63220fa9b3630a40c503
tree5f5ae3f98abe6ec0846602214972d5924e6c6a55
parent4c6ce5a57eaa302b86c889d33837ba0e59c9f3bd
Fix execSequence wildcopy undefined behavior

execSequence relied on pointer overflow to handle cases where
`sequence.matchLength < 8`.  Instead of passing an `size_t` to
wildcopy, pass a `ptrdiff_t`.
lib/common/zstd_internal.h
lib/decompress/zstd_decompress.c
lib/legacy/zstd_v01.c
lib/legacy/zstd_v02.c
lib/legacy/zstd_v03.c
lib/legacy/zstd_v04.c
lib/legacy/zstd_v05.c
lib/legacy/zstd_v06.c
lib/legacy/zstd_v07.c