Skip to content

fix: reject invalid certificate dates#68

Open
leopoldjoy wants to merge 1 commit into
mainfrom
audit/validate-certificate-calendar-dates
Open

fix: reject invalid certificate dates#68
leopoldjoy wants to merge 1 commit into
mainfrom
audit/validate-certificate-calendar-dates

Conversation

@leopoldjoy

Copy link
Copy Markdown
Contributor

Summary

  • reject impossible month/day combinations during ASN.1 certificate time conversion
  • handle Gregorian leap-year rules
  • add invalid-date and leap-day regressions

Audit finding

Addresses external finding #10.

Tests

  • forge fmt --check
  • forge test --match-path test/Asn1Decode.t.sol (39 passed)

Size note

The isolated fix compiles and passes focused tests, but production CertManager is 24,582 bytes, 6 bytes over EIP-170. This PR is intentionally isolated for review and requires bytecode reclamation before merge.

Co-authored-by: OpenCode <opencode-noreply@coinbase.com>
@leopoldjoy
leopoldjoy marked this pull request as ready for review July 27, 2026 13:41
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