mirror of
https://github.com/facebook/zstd.git
synced 2025-07-29 11:21:22 +03:00
[fuzz] Turn off -Werror by default
This was causing OSS-Fuzz errors, due to compiler differences. * Fix the issue * Also turn off -Werror so we don't fail fuzzer builds for warnings * Turn on -Werror in our CI
This commit is contained in:
committed by
Nick Terrell
parent
78f732cfdd
commit
81a5e5d438
@ -127,7 +127,7 @@ static size_t decodeSequences(void* dst, size_t nbSequences,
|
||||
FUZZ_ASSERT(litPtr <= litEnd);
|
||||
if (mode == ZSTD_sf_noBlockDelimiters) {
|
||||
const uint32_t lastLLSize = (uint32_t)(litEnd - litPtr);
|
||||
if (lastLLSize <= oend - op) {
|
||||
if (lastLLSize <= (uint32_t)(oend - op)) {
|
||||
memcpy(op, litPtr, lastLLSize);
|
||||
generatedSrcBufferSize += lastLLSize;
|
||||
} }
|
||||
|
Reference in New Issue
Block a user