Skip to content

Assembly x64: fix comparison to be unsigned - #11104

Merged
philljj merged 2 commits into
wolfSSL:masterfrom
SparkiDev:asm_x64_large_len_fix
Aug 18, 2026
Merged

Assembly x64: fix comparison to be unsigned#11104
philljj merged 2 commits into
wolfSSL:masterfrom
SparkiDev:asm_x64_large_len_fix

Conversation

@SparkiDev

Copy link
Copy Markdown
Contributor

Description

Large values of lengths were being compared as signed values.
When the length is over 2GiB, the check was wrong.

Fixes zd#22283, zd#22286

@SparkiDev SparkiDev self-assigned this Aug 7, 2026
@SparkiDev

Copy link
Copy Markdown
Contributor Author

Code generated by PR:
https://github.com/wolfSSL/scripts/pull/649

@SparkiDev
SparkiDev force-pushed the asm_x64_large_len_fix branch from 7c2bd39 to 8eaef1f Compare August 10, 2026 15:07
Large values of lengths were being compared as signed values.
When the length is over 2GiB, the check was wrong.
Assembly code PR merged after signed comparison fixup.
@SparkiDev
SparkiDev force-pushed the asm_x64_large_len_fix branch from 8eaef1f to 641253e Compare August 12, 2026 22:10
@SparkiDev

SparkiDev commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

Jenkins: retest this please

Aborted

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot 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.

Fenrir Automated Review — PR #11104

Scan targets checked: wolfcrypt-port-bugs

No new issues found in the changed files. ✅

@philljj
philljj merged commit 0f781fb into wolfSSL:master Aug 18, 2026
383 of 384 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.

4 participants