Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/fuzzing/fuzz_amf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern "C" int
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
if (size < kMinInputLength || size > kMaxInputLength){
return 1;
return 0;
}

uint8_t mode = data[0] % 3;
Expand Down
2 changes: 1 addition & 1 deletion test/fuzzing/fuzz_baidu_rpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern "C" int
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
if (size < kMinInputLength || size > kMaxInputLength){
return 1;
return 0;
}

std::string input(reinterpret_cast<const char*>(data), size);
Expand Down
2 changes: 1 addition & 1 deletion test/fuzzing/fuzz_butil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extern "C" int
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
if (size < kMinInputLength || size > kMaxInputLength){
return 1;
return 0;
}

std::string input(reinterpret_cast<const char*>(data), size);
Expand Down
2 changes: 1 addition & 1 deletion test/fuzzing/fuzz_couchbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern "C" int
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
if (size < kMinInputLength || size > kMaxInputLength){
return 1;
return 0;
}

std::string input(reinterpret_cast<const char*>(data), size);
Expand Down
2 changes: 1 addition & 1 deletion test/fuzzing/fuzz_esp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern "C" int
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
if (size < kMinInputLength || size > kMaxInputLength){
return 1;
return 0;
}

std::string input(reinterpret_cast<const char*>(data), size);
Expand Down
2 changes: 1 addition & 1 deletion test/fuzzing/fuzz_hpack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern "C" int
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
if (size < kMinInputLength || size > kMaxInputLength){
return 1;
return 0;
}

std::string input(reinterpret_cast<const char*>(data), size);
Expand Down
2 changes: 1 addition & 1 deletion test/fuzzing/fuzz_http.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern "C" int
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
if (size < kMinInputLength || size > kMaxInputLength){
return 1;
return 0;
}

std::string input(reinterpret_cast<const char*>(data), size);
Expand Down
2 changes: 1 addition & 1 deletion test/fuzzing/fuzz_http_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ extern "C" int
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
if (size < kMinInputLength || size > kMaxInputLength){
return 1;
return 0;
}

// Use first byte to select mode
Expand Down
2 changes: 1 addition & 1 deletion test/fuzzing/fuzz_hulu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern "C" int
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
if (size < kMinInputLength || size > kMaxInputLength){
return 1;
return 0;
}

std::string input(reinterpret_cast<const char*>(data), size);
Expand Down
2 changes: 1 addition & 1 deletion test/fuzzing/fuzz_json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern "C" int
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
if (size < kMinInputLength || size > kMaxInputLength){
return 1;
return 0;
}

std::string error;
Expand Down
2 changes: 1 addition & 1 deletion test/fuzzing/fuzz_memcache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern "C" int
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
if (size < kMinInputLength || size > kMaxInputLength){
return 1;
return 0;
}

std::string input(reinterpret_cast<const char*>(data), size);
Expand Down
2 changes: 1 addition & 1 deletion test/fuzzing/fuzz_mongo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern "C" int
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
if (size < kMinInputLength || size > kMaxInputLength){
return 1;
return 0;
}

std::string input(reinterpret_cast<const char*>(data), size);
Expand Down
2 changes: 1 addition & 1 deletion test/fuzzing/fuzz_redis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern "C" int
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
if (size < kMinInputLength || size > kMaxInputLength){
return 1;
return 0;
}

std::string input(reinterpret_cast<const char*>(data), size);
Expand Down
2 changes: 1 addition & 1 deletion test/fuzzing/fuzz_shead.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extern "C" int
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
if (size < kMinInputLength || size > kMaxInputLength){
return 1;
return 0;
}

std::string input(reinterpret_cast<const char*>(data), size);
Expand Down
2 changes: 1 addition & 1 deletion test/fuzzing/fuzz_sofa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extern "C" int
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
if (size < kMinInputLength || size > kMaxInputLength){
return 1;
return 0;
}

std::string input(reinterpret_cast<const char*>(data), size);
Expand Down
2 changes: 1 addition & 1 deletion test/fuzzing/fuzz_streaming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern "C" int
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
if (size < kMinInputLength || size > kMaxInputLength){
return 1;
return 0;
}

std::string input(reinterpret_cast<const char*>(data), size);
Expand Down
2 changes: 1 addition & 1 deletion test/fuzzing/fuzz_thrift.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extern "C" int
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
if (size < kMinInputLength || size > kMaxInputLength){
return 1;
return 0;
}

std::string input(reinterpret_cast<const char*>(data), size);
Expand Down
2 changes: 1 addition & 1 deletion test/fuzzing/fuzz_uri.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern "C" int
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
if (size < kMinInputLength || size > kMaxInputLength){
return 1;
return 0;
}

char *data_in = (char *)malloc(size + 1);
Expand Down
Loading