Skip to content

[binutils] Add libsframe decode fuzzer#15448

Open
TristanInSec wants to merge 1 commit intogoogle:masterfrom
TristanInSec:add-sframe-fuzzer
Open

[binutils] Add libsframe decode fuzzer#15448
TristanInSec wants to merge 1 commit intogoogle:masterfrom
TristanInSec:add-sframe-fuzzer

Conversation

@TristanInSec
Copy link
Copy Markdown

Add a new fuzz target for libsframe's sframe_decode() function, which parses SFrame section data from ELF files.

libsframe is used by readelf, objdump, and the linker to process .sframe sections. It currently has no dedicated fuzz coverage in this project.

Changes:

  • New fuzz_sframe.c: calls sframe_decode() with fuzz input, then frees the decoder context
  • Seed corpus with valid SFrame V2/V3 headers and edge cases (truncated input, empty sections)
  • build.sh: compile and link the sframe fuzzer against libsframe.a and libiberty.a
  • Options file with detect_leaks=0 (consistent with other binutils fuzzers)

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Apr 30, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions
Copy link
Copy Markdown

TristanInSec is a new contributor to projects/binutils. The PR must be approved by known contributors before it can be merged. The past contributors are: amodra, OwenSanzas, hunsche, hghwng, DonggeLiu

Add a new fuzz target for libsframe's sframe_decode() function.
This covers SFrame section parsing which was previously unfuzzed.

Includes seed corpus with valid V2/V3 headers and edge cases.
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.

1 participant