Skip to content

Fix -Wtautological-constant-out-of-range-compare in ext/sodium on 32-bit - #24364

Open
marc-mabe wants to merge 1 commit into
php:masterfrom
marc-mabe:fix/sodium-type-limits
Open

marc-mabe wants to merge 1 commit into
php:masterfrom
marc-mabe:fix/sodium-type-limits

Conversation

@marc-mabe

Copy link
Copy Markdown
Contributor

sodium_crypto_aead_aes256gcm_decrypt() compares a size_t against a 64 GiB limit, which clang reports as always false where size_t is 32-bit. Cast to unsigned long long first, as the other AEAD length checks already do.

sodium_crypto_aead_aes256gcm_decrypt() compares a size_t against a 64 GiB
limit, which clang reports as always false where size_t is 32-bit. Cast to
unsigned long long first, as the other AEAD length checks already do.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant