Skip to content

Conversation

@cgzones
Copy link
Contributor

@cgzones cgzones commented Mar 26, 2025

GCC 15 starts warning about non NUL-terminated string literals:

chacha.c:44:31: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (17 chars into 16 available) [-Werror=unterminated-string-initialization]
   44 | static const char sigma[16] = "expand 32-byte k";
      |                               ^~~~~~~~~~~~~~~~~~

GCC 15 starts warning about non NUL-terminated string literals:

    chacha.c:44:31: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (17 chars into 16 available) [-Werror=unterminated-string-initialization]
       44 | static const char sigma[16] = "expand 32-byte k";
          |                               ^~~~~~~~~~~~~~~~~~
@thestinger thestinger merged commit 1d7fc7f into GrapheneOS:main Apr 3, 2025
10 checks passed
@cgzones cgzones deleted the gcc15 branch April 5, 2025 15:00
@RoyalOughtness RoyalOughtness mentioned this pull request Sep 19, 2025
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.

2 participants