From: Nick Terrell Date: Fri, 25 Aug 2023 18:18:56 +0000 (-0700) Subject: Revert "Work around nullptr-with-nonzero-offset warning" X-Git-Tag: v1.5.6^2~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3daed7017af2f015dc34e88ff4ac1cac8cd7e511;p=thirdparty%2Fzstd.git Revert "Work around nullptr-with-nonzero-offset warning" This reverts commit c27fa399042f466080e79bb4fd8a4871bc0bcf28. --- diff --git a/lib/decompress/zstd_decompress.c b/lib/decompress/zstd_decompress.c index ccfd84fa4..94eb95151 100644 --- a/lib/decompress/zstd_decompress.c +++ b/lib/decompress/zstd_decompress.c @@ -1548,12 +1548,6 @@ size_t ZSTD_decompressBegin(ZSTD_DCtx* dctx) dctx->stage = ZSTDds_getFrameHeaderSize; dctx->processedCSize = 0; dctx->decodedSize = 0; - /* Set to non-null because ZSTD_prefetchMatch() may end up doing addition - * with this value for corrupted frames. However, it then just passes the - * pointer to PREFETCH_L1(), which doesn't require valid pointers. But, - * if it is NULL we get nullptr-with-nonzero-offset UBSAN warnings. - */ - dctx->previousDstEnd = ""; dctx->previousDstEnd = NULL; dctx->prefixStart = NULL; dctx->virtualStart = NULL;