From: Bimba Shrestha Date: Thu, 26 Sep 2019 23:21:57 +0000 (-0700) Subject: Fixing appveyor test X-Git-Tag: v1.4.4~1^2~38^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91daee5c068c105d456331ff30fd6971ec9cd437;p=thirdparty%2Fzstd.git Fixing appveyor test --- diff --git a/tests/fuzzer.c b/tests/fuzzer.c index c36879747..0b935c825 100644 --- a/tests/fuzzer.c +++ b/tests/fuzzer.c @@ -1987,10 +1987,11 @@ static int basicUnitTests(U32 const seed, double compressibility) BYTE* decoded = (BYTE*)compressedBuffer; ZSTD_CCtx* cctx = ZSTD_createCCtx(); - ZSTD_Sequence* seqs = malloc(srcSize * sizeof(ZSTD_Sequence)); + ZSTD_Sequence* seqs = (ZSTD_Sequence*)malloc(srcSize * sizeof(ZSTD_Sequence)); size_t seqsSize; size_t i; U32 randSeed = seed; + if (seqs == NULL) goto _output_error; assert(cctx != NULL); /* Populate src with random data */