Skip to content

MSVC: replace UINT32_MAX with WOLFSSL_MAX_32BIT in dilithium.c#10161

Merged
padelsbach merged 1 commit intowolfSSL:masterfrom
julek-wolfssl:wolfclu-updates
Apr 8, 2026
Merged

MSVC: replace UINT32_MAX with WOLFSSL_MAX_32BIT in dilithium.c#10161
padelsbach merged 1 commit intowolfSSL:masterfrom
julek-wolfssl:wolfclu-updates

Conversation

@julek-wolfssl
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 8, 2026 12:10
@julek-wolfssl julek-wolfssl self-assigned this Apr 8, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR updates Dilithium overflow guards to use a wolfSSL-defined 32-bit maximum constant instead of UINT32_MAX, improving portability for MSVC builds.

Changes:

  • Replaced UINT32_MAX with WOLFSSL_MAX_32BIT in length overflow checks.
  • Kept existing overflow-avoidance logic intact while using a project-standard constant.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@douzzer
Copy link
Copy Markdown
Contributor

douzzer commented Apr 8, 2026

retest this please

PRB-linuxkm.txt_0
FAIL: scripts/ocsp-stapling2.test

@padelsbach
Copy link
Copy Markdown
Contributor

This is affecting wolfHSM CI. Merging.

@padelsbach padelsbach merged commit bfad539 into wolfSSL:master Apr 8, 2026
507 of 509 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.

5 participants