bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/22485] New: Bad initialization for Filedata struct in read


From: kryukov at frtk dot ru
Subject: [Bug binutils/22485] New: Bad initialization for Filedata struct in readelf.c
Date: Thu, 23 Nov 2017 14:16:25 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22485

            Bug ID: 22485
           Summary: Bad initialization for Filedata struct in readelf.c
           Product: binutils
           Version: 2.30 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: kryukov at frtk dot ru
  Target Milestone: ---

Hi

My project builds GNU Binutils with Clang as a part of CI. Clang warns that
fields of Filedata structure would not be initialized here:

readelf.c:18848:40: error: missing field 'handle' initializer
[-Werror,-Wmissing-field-initializers]
          Filedata thin_filedata = { 0 };

Actually it is a known Clang bug, but they are not fixing it for 5 years
(https://bugs.llvm.org/show_bug.cgi?id=21689), so I prepared a patch where
initialization with { 0 } is replaced with memset.

Please pull it from master branch here:
https://github.com/pavelkryukov/binutils-gdb.git

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]