]> git.ipfire.org Git - thirdparty/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>
Sun, 3 Nov 2019 17:10:11 +0000 (18:10 +0100)
commit6a771621414cc85f218d6b13c204552afd0294c3
tree4f4c474061fab60c95865fce644b44e7d48ba93b
parentb1c595cec06fabf65249a907db7d91e709ba6fd9
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