1
0
mirror of https://github.com/facebook/zstd.git synced 2025-03-07 09:26:03 +02:00
zstd/contrib
Han Zhu 6255f994d3 [largeNbDicts] Second try at fixing decompression segfault to always create compressInstructions
Summary:
Freeing an uninitialized pointer is undefined behavior. This caused a segfault
when compiling the benchmark with Clang -O3 and benching decompression.

V2: always create compressInstructions but check if cctxParams is NULL before
setting CCtx params to avoid segfault.

Test Plan:
make and run
2022-07-21 11:55:01 -07:00
..
2019-04-12 11:18:11 -07:00
2022-04-26 17:40:23 +08:00
2022-03-12 08:58:04 +01:00
2018-07-14 12:34:03 +02:00
2022-03-12 08:58:04 +01:00