sginstrument

Crates.iosginstrument
lib.rssginstrument
version0.1.0
created_at2025-06-07 19:08:50.624211+00
updated_at2025-06-07 19:08:50.624211+00
descriptionA utility for injecting SGFuzz instrumentation into Rust projects
homepage
repositoryhttps://github.com/pcwizz/sginstrument
max_upload_size
id1704331
size28,477
Morgan Hill (pcwizz)

documentation

README

SGInstrument

This is a utility enabling the use of the SGFuzz against Rust applications. The library simply wraps the C instrumentation function. The sginstrument executable traverse the target code and inserts instrumentation where enums are assigned. This is equivalent to State_machine_instrument.py from SGFuzz.

No attempt is made to maintain the formatting of the code if you need the output to be readable run cargo fmt after sginstrument.

Getting started

  1. Build and install SGFuzz
  2. Navigate to your target project and cargo add sginstrument
  3. cargo install sginstrument
  4. sginstrument target/src/
  5. build your harness against SGFuzz and profit
Commit count: 1

cargo fmt