-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GCC 11 warnings read/accessing out of regions #123
Comments
I'm not convinced this is in fact fixed. Here are the warnings I'm getting when using current hydrogen,
and with
|
@jedisct1 You'll probably want to reopen this issue until it's actually confirmed fixed. Thanks. |
@jedisct1 Thank you for the prompt fix! I confirm it avoids the warnings on my two systems above. |
I just downloaded the Arm GNU Toolchain Version 11.2-2022.02 and want to cross-compile libhydrogen (current git).
It builds and runs, but the warnings about accessing data out of region make me feel uncomfortable.
System is a 32 Bit ARM.
Full build log
Patches
The first is quite easy to patch as the number of elements is given to the function and hydro_x25519_a24 is only defined as an array with length 1.
The other warnings are a little harder since it want hydro_x25519_fe[5] but there are different size of arrays.
I'm not aware how to cast a "hydro_x25519_fe *" as it is used in hydro_sign_verify_p2 to a "hydro_x25519_fe[5]".
The text was updated successfully, but these errors were encountered: