Skip to content

Add fuzz tests for CPython Object API (object.go)#18

Open
andoriyaprashant wants to merge 1 commit intoOpenPrinting:masterfrom
andoriyaprashant:object
Open

Add fuzz tests for CPython Object API (object.go)#18
andoriyaprashant wants to merge 1 commit intoOpenPrinting:masterfrom
andoriyaprashant:object

Conversation

@andoriyaprashant
Copy link
Copy Markdown

Description

This PR introduces a set of fuzz tests for the Object implementation in cpython/object.go, focusing on stability and correctness of object lifecycle, container access, attribute handling, function calls and type conversions.

What’s included

Fuzz targets for:

  • Object lifecycle and early invalidation
  • Container operations (Get/Set/Del/Contains)
  • Attribute access (GetAttr/SetAttr/DelAttr/HasAttr)
  • Calling objects as functions (Call/CallKW)
  • Type predicates (Is*)
  • Conversion helpers (Int, Float, Uint, Bytes, Unicode, etc.)
  • Str/Repr handling
  • Numeric edge cases

The focus is on validating reference management and error propagation under arbitrary input and ensuring the interpreter remains stable.

This PR depends on the shared fuzz helper (getFuzzPython) introduced in PR #16 (cpython fuzz tests). Without that helper, these fuzz targets will not build.

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