]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Add test for malformed "default" ACL prefix (issue #2744) 2859/head
authorzhangjy1014 <60053759+zhangjy1014@users.noreply.github.com>
Mon, 9 Feb 2026 03:20:18 +0000 (11:20 +0800)
committerzhangjy1014 <60053759+zhangjy1014@users.noreply.github.com>
Mon, 9 Feb 2026 03:20:18 +0000 (11:20 +0800)
commit396b9a973585b799ea9c76494f4b0ef29fb48b99
tree6f4b640c93b8963fc884408663feeca45c086759
parent7a6549a6bf4bc4d14c1ae3de8aeba53a11d1faa7
Add test for malformed "default" ACL prefix (issue #2744)

Verify that archive_entry_acl_from_text() and
archive_entry_acl_from_text_w() return ARCHIVE_WARN instead of
crashing when given a bare "d" or "default" string with no
subsequent tag field.

Without the accompanying fix in archive_acl.c this test triggers
a NULL-pointer dereference (SEGV) in archive_acl_from_text_w().
libarchive/test/test_acl_text.c