4 Commits

Author SHA1 Message Date
Bright Chen c9778ca1a3 Refactor NULL with nullptr in test (#3464) 2026-08-19 13:26:18 +08:00
Felix-Gong 3c9ff52501 fix: prevent null dereference in fuzz test socket initialization (#3314)
- Fix get_fuzz_socket() to only set initialized=true when both
  Socket::Create and Socket::Address succeed, allowing retry on failure
- Add NULL socket checks in all 9 fuzz tests that use get_fuzz_socket()
  to prevent null pointer dereference when socket creation fails

Fixes #3114
2026-05-28 23:15:24 +08:00
David Korczynski 4f94d25452 Extend fuzz harness suite and fix false positive
Extends the fuzzing suite to a broader set of targets. The main goal
here is to improve code coverage, of which a recent report is available
here:
https://storage.googleapis.com/oss-fuzz-coverage/brpc/reports/20260326/linux/src/report.html

This also fixes false positives in some of the fuzzing harnesses due to
a missing Socket. This fixes issues e.g.
https://issues.oss-fuzz.com/issues/42532345

The new fuzzing harnesses and the fix should show meaningful coverage
gains.

Signed-off-by: David Korczynski <david@adalogics.com>
2026-03-28 11:59:47 -07:00
Arjun Singh 38661fee30 [Fuzzing] move fuzz test in main repo add more fuzz test (#2420)
Signed-off-by: Arjun Singh <ajsinghyadav00@gmail.com>
2024-01-23 13:28:50 +08:00