]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
iso9660: Extend test suite for OOB access
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 19 Apr 2026 20:00:00 +0000 (22:00 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 19 Apr 2026 20:15:48 +0000 (22:15 +0200)
Normalizing dot dot directory entries with multiple slashes leads to
memory issues further down the call stack.

Reported in #2937.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
libarchive/test/test_write_format_iso9660.c

index 7b455794c5def9b745983dddcb52a9632424b300..656a0399ed8836eba03e18ac85690d413b0124ad 100644 (file)
@@ -170,7 +170,7 @@ DEFINE_TEST(test_write_format_iso9660)
        archive_entry_set_birthtime(ae, 3, 30);
        archive_entry_set_ctime(ae, 4, 40);
        archive_entry_set_mtime(ae, 5, 50);
-       archive_entry_copy_pathname(ae, "dir0/dir1/file2");
+       archive_entry_copy_pathname(ae, "dir0/..//dir0/dir1/file2");
        archive_entry_set_mode(ae, AE_IFREG | 0755);
        archive_entry_set_size(ae, 8);
        archive_entry_set_nlink(ae, 1);