dep-minizip-ng/test
Nathan Moin Vaziri 131d59ba39 fix: reject symlink targets that escape extraction dir
Symlink archive entries had their stored target passed directly to
mz_os_make_symlink without checking containment, so a malicious
archive could create a link pointing outside the extraction root.

Add mz_path_is_symlink_target_safe to verify a link target resolves
within the destination directory, and apply it to both the UNIX1
extrafield and entry-content link targets. Reject symlink entries
outright when no destination base is set, since the target cannot be
validated without one.

Assisted-By: Claude Opus 4.8
2026-06-29 15:25:48 -07:00
..
fuzz Add PPMd & Zstd zip files to the fuzz corpus (#954) 2026-02-02 14:05:39 -05:00
CMakeLists.txt test: improve: validate cipher bytes after encryption 2026-06-26 15:34:49 -07:00
empty.txt Rename file. 2018-07-09 07:54:26 -07:00
random.bin Added additional files to unit tests. 2018-11-21 23:14:22 -08:00
single.txt Fixed appending for zip spanning. 2018-11-23 11:53:11 -08:00
test.p12 Rewrite test certificates using more modern algorithms 2022-12-30 13:05:20 -08:00
test.pem Rewrite test certificates using more modern algorithms 2022-12-30 13:05:20 -08:00
test_compat.cc test: always compile the codec-gated test sources 2026-06-24 10:48:53 -07:00
test_crypt.cc test: improve: validate cipher bytes after encryption 2026-06-26 15:34:49 -07:00
test_encoding.cc mz_os.h - fix indentation; mz_os_win32.c - adjust for utf8 strings to be represented by char*; test_encoding.cc - remove useless cast 2023-06-08 11:25:14 -07:00
test_file.cc test: don't run alternative data stream test on non-Windows platforms 2026-06-24 09:58:34 -07:00
test_main.cc Implement Google test framework. 2022-10-13 09:51:47 -07:00
test_path.cc fix: reject symlink targets that escape extraction dir 2026-06-29 15:25:48 -07:00
test_stream.cc Apply Clang format 2025-03-23 14:09:01 -07:00
test_stream_compress.cc test: build stream compression tests only with compression 2026-06-24 10:22:56 -07:00
test_stream_crypt.cc Add TearDown cleanup for encrypt test temp files 2026-02-03 13:47:39 -08:00
uniform.bin Added additional files to unit tests. 2018-11-21 23:14:22 -08:00