From: Yann Collet Date: Thu, 1 Aug 2019 15:12:26 +0000 (+0200) Subject: minor : fixed ptr arithmetic X-Git-Tag: v1.4.3^2~5^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21152926162d30db64b111a0e2bca5aa5858a1f6;p=thirdparty%2Fzstd.git minor : fixed ptr arithmetic invalid on void ptr --- diff --git a/tests/fuzzer.c b/tests/fuzzer.c index 97660039f..ab39d00e3 100644 --- a/tests/fuzzer.c +++ b/tests/fuzzer.c @@ -1052,7 +1052,7 @@ static int basicUnitTests(U32 seed, double compressibility) { size_t const flatdictSize = 22 KB; size_t const contentSize = 9 KB; const void* const dict = (const char*)CNBuffer; - const void* const contentStart = dict + flatdictSize; + const void* const contentStart = (const char*)dict + flatdictSize; size_t const target_nodict_cSize[22+1] = { 3840, 3740, 3840, 3810, 3750, 3750, 3740, 3740, 3740, 3740, 3740, 3670, 3660, 3660, 3660,