FTBFS due to uninitialized variable

Bug #2002022 reported by Sergio Durigan Junior
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gvm-libs (Ubuntu)
Fix Released
Critical
Sergio Durigan Junior

Bug Description

gvm-libs is currently FTBFSing due to an uninitialized variable:

In function ‘ip_islocalhost’,
    inlined from ‘gvm_routethrough’ at ./base/networking.c:1032:11:
./base/networking.c:863:22: error: ‘addr6.__in6_u.__u6_addr32[3]’ may be used uninitialized [-Werror=maybe-uninitialized]
./base/networking.c: In function ‘gvm_routethrough’:
./base/networking.c:790:19: note: ‘addr6.__in6_u.__u6_addr32[3]’ was declared here
...

https://launchpadlibrarian.net/643052273/buildlog_ubuntu-lunar-amd64.gvm-libs_22.4.1-2_BUILDING.txt.gz

This happens when we compile the package using GCC 12. Debian isn't affected (yet).

Related branches

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

I submitted a PR to fix the issue here: https://github.com/greenbone/gvm-libs/pull/728

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gvm-libs - 22.4.1-2ubuntu1

---------------
gvm-libs (22.4.1-2ubuntu1) lunar; urgency=medium

  * d/p/Fix-FTBFS-uninitialized-var-GCC-12.patch: Fix FTBFS due to
    uninitialized variable. (LP: #2002022)

 -- Sergio Durigan Junior <email address hidden> Thu, 05 Jan 2023 13:35:58 -0500

Changed in gvm-libs (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.