Repository navigation
OSS-Fuzz: Add new fuzzer/corpus/dict targets config handling - #183
Merged
Merged
Conversation
sobomax
force-pushed
the
rtpproxy-config-fuzzer
branch
from
November 15, 2026 05:38
625b1b9 to
2cc9778
Compare
Signed-off-by: Arthur Chan <[email protected]>
ucl_object_key() returns NULL for elements that are not members of an object, e.g. when the config root or the "modules" section is an array. rtpp_cfile_process(), parse_modules() and conf_helper_mapper() passed that NULL straight into strcasecmp(), crashing the new fuzz_config_file target (CIFuzz address/undefined/memory: SEGV in strcasecmp at rtpp_cfile.c:116, reproducer: "[1,2]"). Require the config root, the "modules" section and each module section to be objects, and guard against NULL keys.
Import parser error-path leak fixes already merged into the libucl fork.
Add config_types/confval1 to the serial test suite. It runs rtpproxy with configurations whose config root, "modules" section or module section is not an object (arrays and scalars). These used to reach strcasecmp() with a NULL key and crash; each must now be rejected with a nonzero exit status below 128, and not by a sanitizer deadly-signal report.
sobomax
force-pushed
the
rtpproxy-config-fuzzer
branch
from
November 15, 2026 21:38
f4e3626 to
5333e15
Compare
Member
|
@arthurscchan, thank you for contribution! The new configuration fuzzer helped uncover and fix NULL-key crashes and libucl parser leaks. Added regression coverage and merged via rebase. |
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 creates a new OSS-Fuzz fuzzer with corpus/dict targets config handling, aiming to improve fuzzing coverage and effectiveness of project rtpproxy.