Closed
Description
Building libwebsockets v4.3.0 (and v4.2.2 with additionally commit 132833a) using Fedora Rawhide (currently 36) fails like this:
In function 'lws_ipv6_unicast_scope',
inlined from 'lws_sort_dns_dcomp' at /builddir/build/BUILD/libwebsockets-4.3.0/lib/core-net/client/sort-dns.c:409:11,
inlined from 'lws_sort_dns_compare' at /builddir/build/BUILD/libwebsockets-4.3.0/lib/core-net/client/sort-dns.c:552:9:
/builddir/build/BUILD/libwebsockets-4.3.0/lib/core-net/client/sort-dns.c:142:13: error: array subscript 1 is outside array bounds of 'const struct lws_dns_sort_t[0:]' [-Werror=array-bounds]
142 | if (*u == 0xfe80000000000000ull)
| ^~
/builddir/build/BUILD/libwebsockets-4.3.0/lib/core-net/client/sort-dns.c: In function 'lws_sort_dns_compare':
/builddir/build/BUILD/libwebsockets-4.3.0/lib/core-net/client/sort-dns.c:547:1: note: at offset 8 into object 'db' of size 8
547 | lws_sort_dns_compare(const lws_dll2_t *a, const lws_dll2_t *b)
| ^~~~~~~~~~~~~~~~~~~~
Metadata
Metadata
Assignees
Labels
No labels