]> git.ipfire.org Git - thirdparty/zstd.git/commit
Check that `dest` is valid for decompression (#3555)
authordaniellerozenblit <48103643+daniellerozenblit@users.noreply.github.com>
Sat, 1 Apr 2023 06:00:55 +0000 (02:00 -0400)
committerGitHub <noreply@github.com>
Sat, 1 Apr 2023 06:00:55 +0000 (23:00 -0700)
commitfcaf06ddb489f683afb1af3639727991fd9accae
treeb70447ec4a96e3f62aeab519d96605b7463329f7
parent7b828aaeb574b4503013de6cf381f608c62789ad
Check that `dest` is valid for decompression (#3555)

* add check for valid dest buffer and fuzz on random dest ptr when malloc 0

* add uptrval to linux-kernel

* remove bin files

* get rid of uptrval

* restrict max pointer value check to platforms where sizeof(size_t) == sizeof(void*)
lib/decompress/zstd_decompress_block.c
tests/fuzz/block_decompress.c
tests/fuzz/fuzz_data_producer.c
tests/fuzz/fuzz_data_producer.h
tests/fuzz/fuzz_helpers.c
tests/fuzz/fuzz_helpers.h