8000 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:]' · Issue #2537 · warmcat/libwebsockets · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
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:]' #2537
Closed
@robert-scheck

Description

@robert-scheck

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0