mirror of
https://git.savannah.nongnu.org/git/acl.git
synced 2026-12-03 18:44:30 +00:00
No description
- C 92.7%
- Perl 3.9%
- M4 2.4%
- Shell 0.7%
- Makefile 0.3%
string_obj's s_str, acl_obj's x_entries, acl_ea_header's a_entries and getfacl's name are trailing arrays declared with [0] and used as variable-length storage. When building with -fstrict-flex-arrays=3, GCC no longer treats a [0] array as a flexible array member, so _FORTIFY_SOURCE=3 computes the size of these buffers from their declared bound. The bounded strncpy() calls in __acl_to_any_text() into string_obj_p->s_str then abort with "buffer overflow detected", although the allocation is large enough. With libacl built with -fhardened -fstrict-flex-arrays=3, acl_to_text() aborts on any ACL that names a user or group, and 14 of the 16 tests in the test suite fail. systemd-tmpfiles hits it on the "a+" rule for /var/log/journal in systemd's tmpfiles.d/systemd.conf. Declare the four arrays as C99 flexible array members. The layout and the ABI are unchanged. Signed-off-by: Frederic MARIE-JOSEPH <fredericmariejoseph@gmail.com> |
||
|---|---|---|
| CVE | ||
| doc | ||
| examples | ||
| include | ||
| libacl | ||
| libmisc | ||
| m4 | ||
| man | ||
| po | ||
| test | ||
| tools | ||
| .gitignore | ||
| autogen.sh | ||
| configure.ac | ||
| exports | ||
| libacl.pc.in | ||
| Makefile.am | ||
| README | ||
Access control list package README __________________________________ Package home: https://savannah.nongnu.org/projects/acl See the file doc/INSTALL for build, installation and post- install configuration steps. Refer to the acl(5) manual page for general access control list information and references to other related manual pages.