openwrt/package/libs
Rany Hany a41747ac8e mbedtls: fix build on GCC 14
Without this patch, GCC 14 incorrectly complains about the following error:

In file included from /home/user/workspace/mbedtls/library/ctr_drbg.c:13:
In function ‘mbedtls_xor’,
    inlined from ‘ctr_drbg_update_internal’ at /home/user/workspace/mbedtls/library/ctr_drbg.c:372:5:
/home/user/workspace/mbedtls/library/common.h:235:17: error: array subscript 48 is outside array bounds of ‘unsigned char[48]’ [-Werror=array-bounds=]
  235 |         r[i] = a[i] ^ b[i];
      |                ~^~~
/home/user/workspace/mbedtls/library/ctr_drbg.c: In function ‘ctr_drbg_update_internal’:
/home/user/workspace/mbedtls/library/ctr_drbg.c:335:19: note: at offset 48 into object ‘tmp’ of size 48
  335 |     unsigned char tmp[MBEDTLS_CTR_DRBG_SEEDLEN];
      |                   ^~~
In function ‘mbedtls_xor’,
    inlined from ‘ctr_drbg_update_internal’ at /home/user/workspace/mbedtls/library/ctr_drbg.c:372:5:
/home/user/workspace/mbedtls/library/common.h:235:24: error: array subscript 48 is outside array bounds of ‘const unsigned char[48]’ [-Werror=array-bounds=]
  235 |         r[i] = a[i] ^ b[i];
      |                       ~^~~
/home/user/workspace/mbedtls/library/ctr_drbg.c: In function ‘ctr_drbg_update_internal’:
/home/user/workspace/mbedtls/library/ctr_drbg.c:333:57: note: at offset 48 into object ‘data’ of size [0, 48]
  333 |                                     const unsigned char data[MBEDTLS_CTR_DRBG_SEEDLEN])
      |                                     ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘mbedtls_xor’,
    inlined from ‘ctr_drbg_update_internal’ at /home/user/workspace/mbedtls/library/ctr_drbg.c:372:5:
/home/user/workspace/mbedtls/library/common.h:235:14: error: array subscript 48 is outside array bounds of ‘unsigned char[48]’ [-Werror=array-bounds=]
  235 |         r[i] = a[i] ^ b[i];
      |         ~~~~~^~~~~~~~~~~~~
/home/user/workspace/mbedtls/library/ctr_drbg.c: In function ‘ctr_drbg_update_internal’:
/home/user/workspace/mbedtls/library/ctr_drbg.c:335:19: note: at offset 48 into object ‘tmp’ of size 48
  335 |     unsigned char tmp[MBEDTLS_CTR_DRBG_SEEDLEN];
      |                   ^~~

This change adds a basic check to silence the warning until a solution is worked on upstream.
As this check is already used by another compiler, it shouldn't cause any issues for us.

Signed-off-by: Rany Hany <rany_hany@riseup.net>
2024-05-31 10:33:06 +02:00
..
argp-standalone treewide: opt-out of tree-wide LTO usage 2023-03-21 18:28:23 +01:00
elfutils Revert "elfutils: fix a missing typedef in the last update" 2024-04-15 22:05:24 +02:00
gettext-full gettext-full: update to 0.22.5 2024-04-25 21:33:51 +02:00
gmp gmp: update to 6.3 2023-10-17 11:05:16 +02:00
jansson treewide: add support for "lto" in PKG_BUILD_FLAGS 2023-03-21 18:28:22 +01:00
libbpf libbpf: Update to v1.4.2 2024-05-21 08:02:55 +02:00
libbsd libbsd: update to 0.11.8 2024-01-30 10:39:21 +01:00
libcap libcap: update to 2.69 2023-05-22 18:51:31 +02:00
libevent2 libevent2: make cmake use relative imported path 2024-03-13 00:24:43 +00:00
libiconv-full libiconv-full: add host build 2022-07-17 14:21:03 +02:00
libjson-c package/libs/libjson-c: fix PKG_CPE_ID 2024-04-27 23:44:20 +02:00
libmd libmd: update to 1.1.0 2023-10-12 09:50:25 +02:00
libmnl libmnl: add PKG_CPE_ID 2022-09-06 16:36:44 +01:00
libnetfilter-conntrack packages: assign PKG_CPE_ID for all missing packages 2023-09-19 20:21:13 +02:00
libnfnetlink libnfnetlink: add PKG_CPE_ID 2022-09-06 16:36:45 +01:00
libnftnl libnftnl: update to 1.2.6 2023-07-18 14:37:19 +02:00
libnl libnl: update to 3.9.0 2024-01-04 16:06:44 +01:00
libnl-tiny treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
libpcap packages: assign PKG_CPE_ID for all missing packages 2023-09-19 20:21:13 +02:00
libselinux libselinux: opt-out of lto usage 2023-10-29 19:42:32 +01:00
libsemanage libaudit: update to 3.1.4, join with daemon and utils, rename 2024-04-29 00:53:43 +02:00
libsepol libsepol: opt-out of lto usage 2023-10-29 19:42:32 +01:00
libtool libtool: update to 2.4.7 2022-07-10 19:07:47 +02:00
libtraceevent libtraceevent: update to 1.8.2 2024-01-25 17:31:50 +01:00
libtracefs libtracefs: update to 1.8 2024-01-25 17:31:50 +01:00
libubox treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
libunistring libunistring: add from packages feed 2023-05-15 16:14:41 +02:00
libunwind libunwind: add support for loongarch64 2024-05-04 14:14:24 +08:00
libusb treewide: replace AUTORELEASE with real PKG_RELEASE 2023-05-18 11:35:29 +02:00
libxml2 libxml2: update to 2.12.6 2024-05-05 21:45:52 +02:00
mbedtls mbedtls: fix build on GCC 14 2024-05-31 10:33:06 +02:00
mpfr mpfr: import from packages feed 2024-01-04 22:40:05 +01:00
musl-fts musl-fts: remove shared libraries from host 2022-03-27 14:38:13 +02:00
ncurses ncurses: add alacritty terminfo 2023-02-26 01:12:02 +01:00
nettle nettle: update to 3.9.1 2023-07-19 15:25:35 +02:00
openssl openssl: add linux64-loongarch64 into the targets list 2024-05-04 14:14:24 +08:00
pcre2 package/libs/pcre2: fix PKG_CPE_ID 2024-04-27 12:05:43 +02:00
popt treewide: Add extra CPE identifier 2023-09-25 23:06:33 +02:00
readline readline: update to 8.2 2022-10-23 18:16:22 +02:00
sysfsutils treewide: Add extra CPE identifier 2023-09-25 23:06:33 +02:00
toolchain toolchain: Disable libtsan and liblsan sanitizer on loongarch64 2024-05-04 14:14:24 +08:00
uclient uclient: update to Git HEAD (2024-04-19) 2024-04-19 20:06:47 +02:00
udebug treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
ustream-ssl ustream-ssl: update to Git HEAD (2024-04-19) 2024-04-19 18:00:23 +02:00
wolfssl wolfssl: Update to 5.7.0 2024-04-24 23:01:03 +02:00
zlib zlib: update to 1.3.1 2024-02-02 17:26:29 +01:00