Skip to content

fix: isolate Echidna parser state between parses - #72

Open
arunimshukla wants to merge 2 commits into
Recon-Fuzz:mainfrom
arunimshukla:fix/echidna-parser-state-isolation
Open

arunimshukla wants to merge 2 commits into
Recon-Fuzz:mainfrom
arunimshukla:fix/echidna-parser-state-isolation

Conversation

@arunimshukla

Copy link
Copy Markdown

Summary

  • replace module-global Echidna parser state with state scoped to each FuzzingResults instance
  • prevent optimisation metadata, trace flags, timestamps, and previous lines leaking between independent processLogs calls
  • add a regression test that reproduces the cross-parse contamination

Why

processLogs creates a fresh result object for every parse, but the Echidna parser previously kept mutable state at module scope. A log ending after an optimisation result could therefore attach that result and its max value to the next unrelated log parsed by the same process.

Validation

  • npm test -- --runInBand (329 tests passed)
  • npm run 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