Skip to content

Conversation

@kyakdan
Copy link
Member

@kyakdan kyakdan commented Jan 19, 2026

Add a convenience overload of Jazzer.exploreState that doesn't require manually providing an id parameter. During instrumentation, calls to this method are replaced with calls to exploreState(byte, int) using automatically generated unique identifiers for each call site.

This simplifies the API for users who don't need to manually control the id parameter, while still ensuring each call site is tracked separately.

Changes:

  • Add exploreState(byte) method to Jazzer API
  • Add JazzerApiHooks with REPLACE hook for the new method
  • Register JazzerApiHooks in Agent.kt
  • Update MazeFuzzer example to use the new overload

Add a convenience overload of Jazzer.exploreState that doesn't require
manually providing an id parameter. During instrumentation, calls to
this method are replaced with calls to exploreState(byte, int) using
automatically generated unique identifiers for each call site.

This simplifies the API for users who don't need to manually control
the id parameter, while still ensuring each call site is tracked
separately.

Changes:
- Add exploreState(byte) method to Jazzer API
- Add JazzerApiHooks with REPLACE hook for the new method
- Register JazzerApiHooks in Agent.kt
- Update MazeFuzzer example to use the new overload
Copy link
Contributor

@oetr oetr left a comment

Choose a reason for hiding this comment

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

Nice!

@kyakdan kyakdan merged commit 2557d48 into main Jan 19, 2026
9 of 17 checks passed
@kyakdan kyakdan deleted the auto-id-overload-of-exploreState branch January 19, 2026 15:03
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.

3 participants