diff --git a/src/Compression/CompressionCodecDeflateQpl.cpp b/src/Compression/CompressionCodecDeflateQpl.cpp index 60efbd96f8f..7da79b5f90d 100644 --- a/src/Compression/CompressionCodecDeflateQpl.cpp +++ b/src/Compression/CompressionCodecDeflateQpl.cpp @@ -382,6 +382,9 @@ UInt32 CompressionCodecDeflateQpl::getMaxCompressedDataSize(UInt32 uncompressed_ UInt32 CompressionCodecDeflateQpl::doCompressData(const char * source, UInt32 source_size, char * dest) const { +#if defined(MEMORY_SANITIZER) + memset(dest, 0 , getMaxCompressedDataSize(source_size)); +#endif Int32 res = HardwareCodecDeflateQpl::RET_ERROR; if (DeflateQplJobHWPool::instance().isJobPoolReady()) res = hw_codec->doCompressData(source, source_size, dest, getMaxCompressedDataSize(source_size)); @@ -392,6 +395,9 @@ UInt32 CompressionCodecDeflateQpl::doCompressData(const char * source, UInt32 so void CompressionCodecDeflateQpl::doDecompressData(const char * source, UInt32 source_size, char * dest, UInt32 uncompressed_size) const { +#if defined(MEMORY_SANITIZER) + memset(dest, 0 , uncompressed_size); +#endif switch (getDecompressMode()) { case CodecMode::Synchronous: