Closed mkitti closed 1 month ago
https://github.com/JuliaIO/JLD2.jl/pull/560 revealed that error reporting was not occuring when there were errors present.
ZSTD_getDecompressedSize
Libc.malloc(0)
Therefore we need to check the return value of ZSTD_getDecompressedSize directly before trying to malloc.
Also improve error handing overall.
Also note that ZSTD_getDecompressedSize is deprecated.
https://github.com/JuliaIO/JLD2.jl/pull/560 revealed that error reporting was not occuring when there were errors present.
ZSTD_getDecompressedSize
can result in an error, resulting in a return value of 0.Libc.malloc(0)
may not return a null pointer.Therefore we need to check the return value of
ZSTD_getDecompressedSize
directly before trying to malloc.Also improve error handing overall.