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;