-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
oss-fuzz issue (8363): https://oss-fuzz.com/v2/testcase-detail/5988544525893632 The crash was because of passing nan to Envoy::ProtobufPercentHelper::convertPercent, it asserts since it is not in the numeric range. Instead of adding a check in this function, have added a check in the preprocessor so that it goes to checkAndReturnDefault and the default value is used. Have also added the crashing testcase to the corpus. Risk Level: Low Testing: Tested unit tests (bazel test //server:server_fuzz_test), built and ran fuzzers with oss-fuzz. Signed-off-by: Anirudh M <m.anirudh18@gmail.com>
- Loading branch information
1 parent
ec0179a
commit 8459237
Showing
3 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
test/server/server_corpus/clusterfuzz-testcase-server_fuzz_test-5988544525893632
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
static_resources { | ||
clusters { | ||
name: "-2353373969551157135775236" | ||
connect_timeout { | ||
seconds: 12884901890 | ||
} | ||
hosts { | ||
pipe { | ||
path: "@" | ||
} | ||
} | ||
outlier_detection { | ||
} | ||
common_lb_config { | ||
healthy_panic_threshold { | ||
value: nan | ||
} | ||
} | ||
} | ||
} | ||
admin { | ||
access_log_path: "@r" | ||
address { | ||
pipe { | ||
path: "W" | ||
} | ||
} | ||
} | ||
|