Project

General

Profile

Bug #6220

debug build fails since commit c0f616e

Added by John Hunt 9 days ago. Updated 7 days ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2022-11-22
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-2058~g5543ce518
Affected Versions:

Description

Hello, since this commit:

https://github.com/tvheadend/tvheadend/commit/c0f616e56bc4df70978a060b72f8c6a7ca487d3f

I get the following error when building tvheadend with --enable-ccdebug:

In file included from src/tcp.c:32:
src/tcp.h: In function ‘ip_check_equal_v6’:
src/tcp.h:71:14: error: ‘memcmp’ specified bound 16 exceeds source size 0 [-Werror=stringop-overread]
   71 |     { return memcmp(IP_AS_V6(a, addr).s6_addr, IP_AS_V6(b, addr).s6_addr, sizeof(IP_AS_V6(a, addr).s6_addr)) == 0; }
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/tcp.h:70:35: note: source object allocated here
   70 |   (const struct sockaddr_storage *a, const struct sockaddr_storage *b)
      |    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
src/tcp.h: In function ‘ip_check_is_any_v6’:
src/tcp.h:105:12: error: ‘memcmp’ specified bound 16 exceeds source size 0 [-Werror=stringop-overread]
  105 |   { return memcmp(IP_AS_V6(address, addr).s6_addr, in6addr_any.s6_addr, sizeof(in6addr_any.s6_addr)) == 0; }
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/tcp.h:104:69: note: source object allocated here
  104 | static inline int ip_check_is_any_v6(const struct sockaddr_storage *address)
      |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~

I'm building on Ubuntu Jammy using the following command:
AUTOBUILD_CONFIGURE_EXTRA="--disable-bintray_cache --disable-ccache --disable-pcloud_cache --enable-libsystemd_daemon --enable-libfdkaac --enable-vaapi --enable-nvenc --enable-omx --enable-trace --enable-ccdebug --cc=gcc-12 --cpu=skylake " ./Autobuild.sh -j$(nproc)

Building with --disable-ccdebug works fine. It's the debug version that emits the message and causes the build to fail.

History

#1

Updated by Flole Systems 7 days ago

  • Status changed from New to Invalid

Also available in: Atom PDF