Skip to content

fix flaky tampered TK_HASHCHECK ticket negative test#526

Merged
dgarske merged 1 commit into
wolfSSL:masterfrom
aidangarske:fix-fwtpm-tampered-ticket-flake
Jun 12, 2026
Merged

fix flaky tampered TK_HASHCHECK ticket negative test#526
dgarske merged 1 commit into
wolfSSL:masterfrom
aidangarske:fix-fwtpm-tampered-ticket-flake

Conversation

@aidangarske

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes an intermittent (flaky) negative test in the tpm2-tools compatibility test script by making ticket tampering deterministic. It updates the TK_HASHCHECK tamper step so that the ticket is reliably corrupted regardless of the original byte value.

Changes:

  • Replace single-byte tampering at a fixed offset with overwriting the trailing half of the ticket with 0xAA.
  • Add an explanatory comment documenting why the previous approach could be a no-op (~1/256 of runs) and thus flaky.

@dgarske dgarske merged commit e00429a into wolfSSL:master Jun 12, 2026
153 checks passed
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