Repository navigation
OSS-Fuzz: Add new fuzzer targets concurrency operations - #3679
Open
arthurscchan wants to merge 1 commit into
Open
arthurscchan wants to merge 1 commit into
arthurscchan wants to merge 1 commit into
Conversation
Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Real-time sampling and reset deadlines prevent fast fuzz inputs from reliably exercising the intended limiter transitions.
1 open issue
What changed in this PR
This PR expands bRPC’s OSS-Fuzz coverage with a target for the automatic concurrency limiter.
Changes:
- Adds fuzz-driven response errors, latencies, and request concurrency values.
- Registers
fuzz_concurrencyin the CMake and OSS-Fuzz build lists.
| File | Description |
|---|---|
| test/fuzzing/oss-fuzz.sh | Includes the new target in OSS-Fuzz builds. |
| test/fuzzing/fuzz_concurrency.cpp | Adds the automatic concurrency limiter fuzz harness. |
| test/CMakeLists.txt | Registers the new CMake fuzz target. |
Review effort: Balanced
| } | ||
| const int error_code = static_cast<int>(v & 0xff); | ||
| const int64_t latency_us = static_cast<int64_t>(v >> 8) % 10000000; | ||
| limiter.OnResponded(error_code, latency_us); |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR adds a new OSS-Fuzz fuzzer targets concurrency operations, aiming to improve the overall fuzzing coverage and effectiveness of project brpc.