This is an automated email from the ASF dual-hosted git repository.
kasjer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 3293212ff crypto/mbedtls: Suppress array-bounds
3293212ff is described below
commit 3293212ff39581c6253b97453f75ac404ffb54c6
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Fri Sep 11 10:36:52 2026 +0200
crypto/mbedtls: Suppress array-bounds
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];
| ^~~~
-Wno-array-bounds addedd to suppress this
Signed-off-by: Jerzy Kasenberg <[email protected]>
---
crypto/mbedtls/pkg.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/crypto/mbedtls/pkg.yml b/crypto/mbedtls/pkg.yml
index f6648184c..ad02128a5 100644
--- a/crypto/mbedtls/pkg.yml
+++ b/crypto/mbedtls/pkg.yml
@@ -33,6 +33,7 @@ app.cflags.TEST:
pkg.cflags:
- -Wno-maybe-uninitialized
+ - -Wno-array-bounds
- -Wno-unknown-warning-option
pkg.include_dirs: