Skip to content

Hash saved test filenames from their input bytes#440

Open
tdcinaz wants to merge 1 commit intotrailofbits:masterfrom
tdcinaz:fix-hash-saved-test-names
Open

Hash saved test filenames from their input bytes#440
tdcinaz wants to merge 1 commit intotrailofbits:masterfrom
tdcinaz:fix-hash-saved-test-names

Conversation

@tdcinaz
Copy link
Copy Markdown

@tdcinaz tdcinaz commented Apr 20, 2026

Fixes issue #309

Summary

  • replace the random saved-test filename generator with an MD5 of the bytes written to disk
  • keep saved testcase stems aligned with the existing Python symex path and README examples
  • add an integration test that checks saved testcase filenames match the MD5 of their contents

Testing

  • python -m py_compile tests/test_saved_case_hashes.py
  • clang -D__unix=1 -Isrc/include -Isrc/lib -I. -c src/lib/DeepState.c -o /tmp/deepstate-saved-case-hash.o

The full integration test was added but not executed here because this clean PR branch was intentionally kept free of the local macOS build fixes needed to build DeepState on this machine.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 20, 2026

CLA assistant check
All committers have signed the CLA.

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.

2 participants