You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "kasjer (via GitHub)" <gi...@apache.org> on 2026/09/11 08:40:47 UTC

[PR] crypto/mbedtls: Suppress array-bounds [mynewt-core]

kasjer opened a new pull request, #3739:
URL: https://github.com/apache/mynewt-core/pull/3739

   GCC 15.3 issues addition warnings that are
   not suppressed yet.
   
   ```
   Error: In file included from repos/mbedtls/library/gcm.c:18: In function 'mbedtls_xor_no_simd',
       inlined from 'gcm_mult_smalltable' at repos/mbedtls/library/gcm.c:319:5:
   repos/mbedtls/library/common.h:343:17: error: array subscript 16 is outside array bounds of 'uint64_t[2]' {aka 'long long unsigned int[2]'} [-Werror=array-bounds=]
     343 |         r[i] = a[i] ^ b[i];
         |                ~^~~
   repos/mbedtls/library/gcm.c: In function 'gcm_mult_smalltable':
   repos/mbedtls/library/gcm.c:306:14: note: at offset 16 into object 'u64z' of size 16
     306 |     uint64_t u64z[2];
         |              ^~~~
   In function 'mbedtls_xor_no_simd',
       inlined from 'gcm_mult_smalltable' at repos/mbedtls/library/gcm.c:319:5:
   repos/mbedtls/library/common.h:343:14: error: array subscript 16 is outside array bounds of 'uint64_t[2]' {aka 'long long unsigned int[2]'} [-Werror=array-bounds=]
     343 |         r[i] = a[i] ^ b[i];
         |         ~~~~~^~~~~~~~~~~~~
   repos/mbedtls/library/gcm.c: In function 'gcm_mult_smalltable':
   repos/mbedtls/library/gcm.c:306:14: note: at offset 16 into object 'u64z' of size 16
     306 |     uint64_t u64z[2];
         |              ^~~~
   ```
   
   **-Wno-array-bounds** addedd to suppress this


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] crypto/mbedtls: Suppress array-bounds [mynewt-core]

Posted by "kasjer (via GitHub)" <gi...@apache.org>.
kasjer merged PR #3739:
URL: https://github.com/apache/mynewt-core/pull/3739


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org