Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: set to zero when start_time exceeds limit (envoyproxy#4328)
When the RequestInfo start_time exceeds max limit, set to zero to avoid undefined behavior. Before this patch, utility's fromRequestInfo experienced similar error below: /usr/include/c++/5/chrono:176:67: runtime error: signed integer overflow: 9799832698963886 * 1000 cannot be represented in type 'long int' Fixes oss-fuzz issues: * https://oss-fuzz.com/v2/testcase-detail/5647641023610880 (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10124) * https://oss-fuzz.com/v2/testcase-detail/5701824317751296 (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10128) Risk Level: Low Testing: ASAN/UBSAN tests, corpus entries added. Signed-off-by: Dhi Aurrahman <dio@tetrate.io>
- Loading branch information