Commit Graph

18 Commits

Author SHA1 Message Date
Mikhail Khachayants
efbf3935b1 Add fuzzer for mz_zip_add_mem_to_archive_file_in_place function 2024-11-17 22:48:27 +02:00
zhaozg
189f56edaa cmake: new option BUILD_NO_STDIO to enable MINIZ_NO_STDIO 2024-10-17 11:27:24 +08:00
Martin
11e7c39508 Avoid fdreopen if possible
Avoid using fdropen in mz_zip_add_mem_to_archive_file_in_place or
if new flag MZ_ZIP_FLAG_READ_ALLOW_WRITING is set.

This improves performance, but also fdreopen is broken on Android
(some kind of race).
2024-10-16 23:07:29 +02:00
Martin
8714fd3cd8 Format code with clang-format 2024-05-16 21:24:56 +02:00
David Korczynski
a77af68d92 fix OSS-Fuzz build
Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=64398

Signed-off-by: David Korczynski <david@adalogics.com>
2024-01-02 03:16:18 -08:00
Martin
05ab4dc05c Add some catch2 tests 2023-11-19 20:45:17 +01:00
Randy
864ecc8d14 zip_fuzzer: omit file validation
this is an unbounded operation
2020-11-27 02:28:21 +01:00
Randy
225354290d revert uncompress_fuzzer changes 2020-11-24 17:00:05 +01:00
Randy
b485d01faf updates to OSS-Fuzz integration
adapt more fuzz targets from zlib,
add zip fuzzer, zip dictionary.
update uncompress_fuzzer to seed the buffer length separately.
2020-11-24 16:51:30 +01:00
Nathan Moinvaziri
1e7621d96c Use variable size input buffer in uncompress fuzzer. 2020-10-17 16:10:59 -07:00
Randy
aa3c99a7b4 fuzz_main: fix warning 2020-07-07 15:34:08 +02:00
Randy
b36e55e48d ossfuzz: update build file 2020-07-07 13:45:05 +02:00
Randy
797c58be3c ossfuzz: fix typo 2020-07-07 13:14:58 +02:00
Randy
d2d7d090fa ossfuzz: fix build for uncompress_fuzzer 2020-07-07 13:12:09 +02:00
Randy
436d915546 ossfuzz: add fuzzers 2020-07-07 13:08:22 +02:00
Phil Greenland
78cdcb0fce Include basic tests for iterative extraction method. 2017-05-14 12:04:54 +01:00
Martin
55339a8978 Make tester and examples compile again and test script 2016-11-27 21:39:02 +01:00
Matthew Sitton
724de0bb0f Separate the into multiple files similar to the vogl zip64 version of the library.
If anyone wants to have a minified version of if a script could be written to do this automatically.
2016-06-25 06:43:30 -05:00