Skip to content

Guard tainted PCR select copy in fwTPM properties Coverity test#558

Merged
dgarske merged 1 commit into
wolfSSL:masterfrom
aidangarske:coverity-cid911493-fwtpm-pcr-props
Jul 22, 2026
Merged

Guard tainted PCR select copy in fwTPM properties Coverity test#558
dgarske merged 1 commit into
wolfSSL:masterfrom
aidangarske:coverity-cid911493-fwtpm-pcr-props

Conversation

@aidangarske

Copy link
Copy Markdown
Member
  • Fixes Coverity CID 911493 (OVERRUN) in test_fwtpm_pcr_properties_capability()
  • Asserts selSz > 0 before the tainted select copy, eliminating the wireSz==0 → gRsp+4096 one-past-end pointer Coverity flagged
  • Adds AssertTrue(p + wireSz <= rspSize) so malformed/short records fail the test instead of being silently skipped

Copilot AI review requested due to automatic review settings July 22, 2026 18:16

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@aidangarske
aidangarske requested a review from dgarske July 22, 2026 18:45
@dgarske
dgarske requested a review from Copilot July 22, 2026 21:15
@dgarske
dgarske merged commit 5a0350f into wolfSSL:master Jul 22, 2026
201 checks passed

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

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