Skip to content

fix(picky): don't panic on RFC 3161 timestamp fallback - #534

Open
Mathieu Morrissette (mmorrissette-devolutions) wants to merge 1 commit into
masterfrom
fix/authenticode-timestamp-borrow-panic
Open

Mathieu Morrissette (mmorrissette-devolutions) wants to merge 1 commit into
masterfrom
fix/authenticode-timestamp-borrow-panic

Conversation

@mmorrissette-devolutions

@mmorrissette-devolutions Mathieu Morrissette (mmorrissette-devolutions) commented Sep 28, 2026 •

Copy link
Copy Markdown

h_verify_signing_certificate holds a mutable borrow of the validator state for its whole body, and the MsCounterSign fallback (expired signing certificate, RFC 3161 timestamp) borrows it again to read the CTL. With the ctl feature, verifying such a signature panics with already mutably borrowed: BorrowError, whether or not a CTL is set. The borrow is only read, so it's now shared.

The new test verifies the psdiag signature after its signing certificate expired; it panics without the fix. The signature moves from full_validation_authenticode_signature_with_well_known_ca to picky-test-data so both tests share it.

@mmorrissette-devolutions
Mathieu Morrissette (mmorrissette-devolutions) force-pushed the fix/authenticode-timestamp-borrow-panic branch 2 times, most recently from 30b5388 to eca20da Compare September 28, 2026 17:13
h_verify_signing_certificate held a mutable borrow of the validator
state while the MsCounterSign fallback borrowed it again, so verifying
an expired, timestamped signature with the ctl feature panicked with
"already mutably borrowed". The borrow is only read, so make it shared.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-28T17:26:14.918558Z 9a22075 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant