Skip to content

OSS-Fuzz: Add new fuzzer targets concurrency operations - #3679

Open
arthurscchan wants to merge 1 commit into
apache:masterfrom
arthurscchan:brpc-concurrency-fuzzer
Open

arthurscchan wants to merge 1 commit into
apache:masterfrom
arthurscchan:brpc-concurrency-fuzzer

Conversation

@arthurscchan

Copy link
Copy Markdown
Contributor

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

Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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_concurrency in 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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants