Home
last modified time | relevance | path

Searched refs:FUZZ_ASSERT_MSG (Results 1 – 18 of 18) sorted by relevance

/external/lz4/ossfuzz/
Dround_trip_fuzzer.c30 FUZZ_ASSERT_MSG(rtSize == size, "Incorrect size"); in LLVMFuzzerTestOneInput()
31 FUZZ_ASSERT_MSG(!memcmp(data, rt, size), "Corruption!"); in LLVMFuzzerTestOneInput()
41 FUZZ_ASSERT_MSG(partialSize == partialCapacity, "Incorrect size"); in LLVMFuzzerTestOneInput()
42 FUZZ_ASSERT_MSG(!memcmp(data, partial, partialSize), "Corruption!"); in LLVMFuzzerTestOneInput()
Dcompress_fuzzer.c31 FUZZ_ASSERT_MSG(rtSize == size, "Incorrect regenerated size"); in LLVMFuzzerTestOneInput()
32 FUZZ_ASSERT_MSG(!memcmp(data, rt, size), "Corruption!"); in LLVMFuzzerTestOneInput()
43 FUZZ_ASSERT_MSG(rtSize == compressedSize, "Incorrect regenerated size"); in LLVMFuzzerTestOneInput()
44 FUZZ_ASSERT_MSG(!memcmp(data, rt, compressedSize), "Corruption!"); in LLVMFuzzerTestOneInput()
Dcompress_hc_fuzzer.c33 FUZZ_ASSERT_MSG(rtSize == size, "Incorrect regenerated size"); in LLVMFuzzerTestOneInput()
34 FUZZ_ASSERT_MSG(!memcmp(data, rt, size), "Corruption!"); in LLVMFuzzerTestOneInput()
48 FUZZ_ASSERT_MSG(rtSize == compressedSize, "Incorrect regenerated size"); in LLVMFuzzerTestOneInput()
49 FUZZ_ASSERT_MSG(!memcmp(data, rt, compressedSize), "Corruption!"); in LLVMFuzzerTestOneInput()
Dround_trip_hc_fuzzer.c32 FUZZ_ASSERT_MSG(rtSize == size, "Incorrect size"); in LLVMFuzzerTestOneInput()
33 FUZZ_ASSERT_MSG(!memcmp(data, rt, size), "Corruption!"); in LLVMFuzzerTestOneInput()
Dround_trip_frame_fuzzer.c32 FUZZ_ASSERT_MSG(rtSize == size, "Incorrect regenerated size"); in LLVMFuzzerTestOneInput()
33 FUZZ_ASSERT_MSG(!memcmp(data, rt, size), "Corruption!"); in LLVMFuzzerTestOneInput()
Dcompress_frame_fuzzer.c34 FUZZ_ASSERT_MSG(rtSize == size, "Incorrect regenerated size"); in LLVMFuzzerTestOneInput()
35 FUZZ_ASSERT_MSG(!memcmp(data, rt, size), "Corruption!"); in LLVMFuzzerTestOneInput()
Dfuzz_helpers.h41 #define FUZZ_ASSERT_MSG(cond, msg) \ macro
46 #define FUZZ_ASSERT(cond) FUZZ_ASSERT_MSG((cond), "");
Dround_trip_stream_fuzzer.c117 FUZZ_ASSERT_MSG(size == state->roundTrip.pos, "Incorrect size!"); in state_checkRoundTrip()
118 FUZZ_ASSERT_MSG(!memcmp(data, state->roundTrip.buf, size), "Corruption!"); in state_checkRoundTrip()
/external/zstd/tests/fuzz/
Dregression_driver.c60 FUZZ_ASSERT_MSG(fileSize <= kMaxFileSize, fileName); in main()
65 FUZZ_ASSERT_MSG(buffer, fileName); in main()
70 FUZZ_ASSERT_MSG(file, fileName); in main()
73 FUZZ_ASSERT_MSG(readSize == fileSize, fileName); in main()
Dfuzz_helpers.h39 #define FUZZ_ASSERT_MSG(cond, msg) \ macro
44 #define FUZZ_ASSERT(cond) FUZZ_ASSERT_MSG((cond), "");
46 FUZZ_ASSERT_MSG(!ZSTD_isError(code), ZSTD_getErrorName(code))
Ddictionary_loader.c90 FUZZ_ASSERT_MSG(dct != ZSTD_dct_rawContent, "Raw must always succeed!"); in LLVMFuzzerTestOneInput()
95 FUZZ_ASSERT_MSG(rSize == size, "Incorrect regenerated size"); in LLVMFuzzerTestOneInput()
96 FUZZ_ASSERT_MSG(!FUZZ_memcmp(src, rBuf, size), "Corruption!"); in LLVMFuzzerTestOneInput()
Dblock_round_trip.c90 FUZZ_ASSERT_MSG(result == size, "Incorrect regenerated size"); in LLVMFuzzerTestOneInput()
91 FUZZ_ASSERT_MSG(!FUZZ_memcmp(src, rBuf, size), "Corruption!"); in LLVMFuzzerTestOneInput()
Dsimple_round_trip.c107 FUZZ_ASSERT_MSG(result == size, "Incorrect regenerated size"); in LLVMFuzzerTestOneInput()
108 FUZZ_ASSERT_MSG(!FUZZ_memcmp(src, rBuf, size), "Corruption!"); in LLVMFuzzerTestOneInput()
Draw_dictionary_round_trip.c104 FUZZ_ASSERT_MSG(result == srcSize, "Incorrect regenerated size"); in LLVMFuzzerTestOneInput()
105 FUZZ_ASSERT_MSG(!FUZZ_memcmp(src, decompBuf, srcSize), "Corruption!"); in LLVMFuzzerTestOneInput()
Ddictionary_round_trip.c110 FUZZ_ASSERT_MSG(result == size, "Incorrect regenerated size"); in LLVMFuzzerTestOneInput()
111 FUZZ_ASSERT_MSG(!FUZZ_memcmp(src, rBuf, size), "Corruption!"); in LLVMFuzzerTestOneInput()
Dstream_round_trip.c167 FUZZ_ASSERT_MSG(rSize == size, "Incorrect regenerated size"); in LLVMFuzzerTestOneInput()
168 FUZZ_ASSERT_MSG(!FUZZ_memcmp(src, rBuf, size), "Corruption!"); in LLVMFuzzerTestOneInput()
Ddictionary_stream_round_trip.c195 FUZZ_ASSERT_MSG(rSize == size, "Incorrect regenerated size"); in LLVMFuzzerTestOneInput()
196 FUZZ_ASSERT_MSG(!FUZZ_memcmp(src, rBuf, size), "Corruption!"); in LLVMFuzzerTestOneInput()
Dsequence_compression_api.c286 FUZZ_ASSERT_MSG(result == generatedSrcSize, "Incorrect regenerated size"); in LLVMFuzzerTestOneInput()
287 FUZZ_ASSERT_MSG(!FUZZ_memcmp(generatedSrc, rBuf, generatedSrcSize), "Corruption!"); in LLVMFuzzerTestOneInput()