-
Notifications
You must be signed in to change notification settings - Fork 41
Fix GCC 15 warning 'Wunterminated-string-initialization' #173
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
Conversation
…ization warning Signed-off-by: Felix Conway <felix.conway@arm.com>
…MINATED_STRING This macro applies __attribute__((nonstring)) when the compiler supports it Signed-off-by: Felix Conway <felix.conway@arm.com>
gilles-peskine-arm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is correct once Mbed-TLS/mbedtls#10215 and Mbed-TLS/TF-PSA-Crypto#313 are merged and mbedtls/development picks up the crypto merge. I think it's complete based on the warnings seen in a 3.6 test run.
| psa_key_type_t key_type; | ||
| const unsigned char plaintext[16] = "Hello, world..."; | ||
| unsigned char ciphertext[32] = "(wabblewebblewibblewobblewubble)"; | ||
| /* We need to tell the compiler that we meant to leave out the null character. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't find this comment useful (MBEDTLS_ATTRIBUTE_UNTERMINATED_STRING already says it), but I don't mind having it.
mpg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
framework part of and resolves Mbed-TLS/mbedtls#9944
Depends on Mbed-TLS/mbedtls#10215, Mbed-TLS/TF-PSA-Crypto#313 & Mbed-TLS/mbedtls#10216
Merge order:
Merge the
TF-PSA-CryptoPR Mbed-TLS/TF-PSA-Crypto#313Update the
tf-psa-cryptosubmodule pointer on thembedtlsdevelopment PR (Mbed-TLS/mbedtls#10216) to the merge commit of theTF-PSA-CryptoPRMerge the
mbedtlsdevelopment PR(Independently) Merge the 3.6
mbedtlsPR Mbed-TLS/mbedtls#10215Then replay or re-trigger the CI, which will pick up the required changes in
mbedtlsdevelopment andmbedtls3.6 and then should be green.PR checklist