Revert "Work around nullptr-with-nonzero-offset warning"
This reverts commit c27fa39904.
This commit is contained in:
committed by
Nick Terrell
parent
7b762364cb
commit
3daed7017a
@@ -1548,12 +1548,6 @@ size_t ZSTD_decompressBegin(ZSTD_DCtx* dctx)
|
|||||||
dctx->stage = ZSTDds_getFrameHeaderSize;
|
dctx->stage = ZSTDds_getFrameHeaderSize;
|
||||||
dctx->processedCSize = 0;
|
dctx->processedCSize = 0;
|
||||||
dctx->decodedSize = 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->previousDstEnd = NULL;
|
||||||
dctx->prefixStart = NULL;
|
dctx->prefixStart = NULL;
|
||||||
dctx->virtualStart = NULL;
|
dctx->virtualStart = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user