]> sourceware.org Git - glibc.git/commit
Avoid zero-length array at the end of struct link_map [BZ #25097]
authorFlorian Weimer <fweimer@redhat.com>
Sun, 3 Nov 2019 10:20:23 +0000 (11:20 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 15 Nov 2019 12:03:59 +0000 (13:03 +0100)
commite21a7867713c87d0b0698254685d414d811d72b2
tree5f6a4ce16652bdd9c9f59ec9d3b5d4629104ee45
parente1d559f337de2c8ab68a6749dfe873477c883807
Avoid zero-length array at the end of struct link_map [BZ #25097]

l_audit ends up as an internal array with _rtld_global, and GCC 10
warns about this.

This commit does not change the layout of _rtld_global, so it is
suitable for backporting.  Future changes could allocate more of the
audit state dynamically and remove it from always-allocated data
structures, to optimize the common case of inactive auditing.

Change-Id: Ic911100730f9124d4ea977ead8e13cee64b84d45
include/link.h
sysdeps/generic/ldsodefs.h
This page took 0.040817 seconds and 5 git commands to generate.