]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwfl: Declare possible zero sized arrays only when non-zero
authorMark Wielaard <mark@klomp.org>
Thu, 6 Jan 2022 16:58:59 +0000 (17:58 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 6 Jan 2022 16:58:59 +0000 (17:58 +0100)
commit04a5fd7400429398e096ccd1b32f71a1f1c8db76
tree134bc51ed37811aa32e55d57acd60644e3a0c504
parent90b1b14a9a7e659cf5665855ae07da424e5cbd96
libdwfl: Declare possible zero sized arrays only when non-zero

The gcc undefined sanitizer complains when seeing a zero sized array
declaration. Move the declaration to the point in the code where we
know they aren't zero sized.

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

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdwfl/ChangeLog
libdwfl/link_map.c