Commit graph

  • 1140f71a88
    test(fuzz): Bug fix: need to recreate directory before copying into it Chris Hennick 2024-06-23 15:55:36 -07:00
  • 828ce35282
    test(fuzz): Bug fix Chris Hennick 2024-06-23 13:22:16 -07:00
  • 125283db60
    test(fuzz): Bug fix: work around mv argument limit by using find -exec Chris Hennick 2024-06-23 12:45:12 -07:00
  • 602c92fed9
    test(fuzz): Bug fix: need to move corpora after special restarts Chris Hennick 2024-06-23 09:06:37 -07:00
  • ab659a3652
    test(fuzz): Bug fix Chris Hennick 2024-06-23 06:49:05 -07:00
  • b0096455c0
    test(fuzz): Bug fix Chris Hennick 2024-06-23 06:41:06 -07:00
  • c96b0881d8
    test(fuzz): Use pre-generated tarball of 0..=2 byte inputs, and test both with this corpus and with none Chris Hennick 2024-06-22 22:07:10 -07:00
  • ce0da9ed31
    test(fuzz): Bug fix for pre-existing dirs Chris Hennick 2024-06-22 20:39:37 -07:00
  • 1e0f6e77e5
    test(fuzz): Refactor: delete duplicate inputs of size 0..=2 Chris Hennick 2024-06-22 20:35:11 -07:00
  • f18c2e3054
    test(fuzz): Bug fix: dir may already exist Chris Hennick 2024-06-22 20:21:25 -07:00
  • 085b9ca691
    test(fuzz): Bug fix in find command Chris Hennick 2024-06-22 20:04:41 -07:00
  • 7cfde3539c
    test(fuzz): Include every possible 0-byte, 1-byte and 2-byte string in first recombination Chris Hennick 2024-06-22 20:04:07 -07:00
  • cb0d9e1310
    test(fuzz): Print date and size at start of processing each size Chris Hennick 2024-06-22 19:34:50 -07:00
  • 949682ee5f
    test(fuzz): Add one restart with no dictionary, in case the dictionary's bias is limiting our coverage Chris Hennick 2024-06-22 19:22:23 -07:00
  • 958f4a1c10
    test(fuzz): Bug fix: some files were landing in nested folders Chris Hennick 2024-06-22 19:02:09 -07:00
  • b2afd7aa00
    test(fuzz): Bug fix: previous output won't be in pre_fresh_blood yet Chris Hennick 2024-06-22 17:54:18 -07:00
  • cfbcb6090c
    test(fuzz): Use outputs from previous size as recombination material for new size Chris Hennick 2024-06-22 17:50:23 -07:00
  • 1dead5bc03
    test(fuzz): New shell script to build a corpus with a progressively increasing size limit Chris Hennick 2024-06-22 17:38:09 -07:00
  • cbd8aedea4
    Merge branch 'master' into xz Chris Hennick 2024-06-22 17:04:15 -07:00
  • b6e0a0693b
    style: Fix cargo fmt and clippy warnings Chris Hennick 2024-06-22 17:03:37 -07:00
  • 0807029a63
    Merge branch 'master' into xz Chris Hennick 2024-06-22 16:58:54 -07:00
  • b051ca3d47
    chore: Fix a bug introduced by c934c824 Chris Hennick 2024-06-22 16:54:42 -07:00
  • 5b749c4ed9
    Merge branch 'master' into xz Chris Hennick 2024-06-21 23:15:47 -07:00
  • fcc4fa93e3
    style: Fix a Clippy warning re unnecessary into_iter() Chris Hennick 2024-06-21 23:15:23 -07:00
  • c0ede17cd0
    Merge branch 'master' into xz Chris Hennick 2024-06-21 20:29:30 -07:00
  • e20fd7959a
    style: cargo fmt --all Chris Hennick 2024-06-21 20:28:43 -07:00
  • 9a2391358c
    Merge branch 'master' into xz Chris Hennick 2024-06-21 20:26:07 -07:00
  • c934c82405
    fix: Some archives with over u16::MAX files were handled incorrectly or slowly (#189) Chris Hennick 2024-06-21 20:22:15 -07:00
  • 421e1dd8fb
    feat: support XZ decompression LoveSy 2024-06-22 00:45:37 +08:00
  • 8bb3be02c1
    refactor: Verify with debug assertions that no FixedSizeBlock expects a multi-byte alignment (#198) Chris Hennick 2024-06-21 17:03:44 -07:00
  • 26e6462a8d
    style: cargo fmt --all Chris Hennick 2024-06-21 10:34:03 -07:00
  • ad111aa297
    test(fuzz): Remove debug printing Chris Hennick 2024-06-21 07:51:43 -07:00
  • 27c7fa4cd4
    chore: Fix a failing unit test Chris Hennick 2024-06-20 13:40:12 -07:00
  • 9a27fb8bba
    ci(fuzz): Improve debug format Chris Hennick 2024-06-20 13:35:16 -07:00
  • f1b617d112
    fix: Check number of files when deciding whether a CDE is the real one Chris Hennick 2024-06-20 04:45:28 -07:00
  • 68f3d33130 ci(fuzz): Generate new fuzz_write corpus Chris Hennick 2024-06-19 20:14:36 +00:00
  • b450b325c9 ci(fuzz): Tweaks to fuzz-corpus scripts Chris Hennick 2024-06-19 20:13:13 +00:00
  • 78a38e977a
    fix: Could still select a fake CDE over a real one in some cases Chris Hennick 2024-06-18 22:33:00 -07:00
  • 4c2e9f61ab
    ci(fuzz): Weaken a failing assertion Chris Hennick 2024-06-18 20:37:32 -07:00
  • a895aa57b1
    style: cargo fmt --all Chris Hennick 2024-06-18 20:11:56 -07:00
  • d309f07010
    chore: Fix build errors on older Rust versions Chris Hennick 2024-06-18 20:09:50 -07:00
  • 9f7e64b9df
    ci(fuzz): Allow setting the comment any time Chris Hennick 2024-06-18 20:04:20 -07:00
  • 9bf914d7d4
    fix: May have to consider multiple CDEs before filtering for validity Chris Hennick 2024-06-18 19:58:16 -07:00
  • 45472486f1
    style: Fix a Clippy warning Chris Hennick 2024-06-18 12:41:16 -07:00
  • 19118f45f3
    chore: Fix build Chris Hennick 2024-06-18 10:41:35 -07:00
  • cb2d7abde7
    fix: We now keep searching for a real CDE header after read an invalid one from the file comment Chris Hennick 2024-06-18 10:30:32 -07:00
  • 5231469734
    ci(fuzz): Fix: skip copying if we can't find a file from a previous operation Chris Hennick 2024-06-17 19:21:04 -07:00
  • 6bf354a0d6
    ci(fuzz): Fix build Chris Hennick 2024-06-17 19:05:36 -07:00
  • 4a01dd33e3
    ci(fuzz): Fix: would try to copy from nonexistent paths after merging with another archive Chris Hennick 2024-06-17 18:55:01 -07:00
  • 9568e713bd
    style: cargo fmt --all Chris Hennick 2024-06-17 18:53:05 -07:00
  • db4a967eba
    style: Fix a Clippy warning Chris Hennick 2024-06-17 18:21:47 -07:00
  • 24fc14701b
    style: Suppress Clippy warnings for octal-looking escapes Chris Hennick 2024-06-17 18:18:57 -07:00
  • 4065f0501f
    fix: Always search for data start when opening an archive for append, and reject the header if data appears to start after central directory Chris Hennick 2024-06-17 17:44:34 -07:00
  • 6f120223b2
    fix: deep_copy_file no longer allows overwriting an existing file, to match the behavior of shallow_copy_file Chris Hennick 2024-06-17 15:17:03 -07:00
  • 8d78fd98f5
    fix: File start position was wrong when extra data was present Chris Hennick 2024-06-17 15:15:15 -07:00
  • fec15c0680
    style: cargo fmt --all Chris Hennick 2024-06-17 12:09:35 -07:00
  • 19cf889b3b
    style: Fix a Clippy warning Chris Hennick 2024-06-17 12:08:55 -07:00
  • 64b5debc16
    chore: Fix another fuzz failure Chris Hennick 2024-06-17 12:06:37 -07:00
  • 16aa9bcddf
    test: fix a failing unit test Chris Hennick 2024-06-15 15:33:15 -07:00
  • 58b982c99e
    style: Fix a Clippy warning Chris Hennick 2024-06-15 15:18:52 -07:00
  • 5b285d7cbf
    test: Fix some tests that were failing when Zopfli wasn't enabled Chris Hennick 2024-06-15 15:14:42 -07:00
  • e6661bcd98 Update fuzz_write corpus using multiple from-scratch restarts Chris Hennick 2024-06-15 17:44:32 +00:00
  • 67b9d2a91a test(fuzz): Make build-fuzz-corpus-multiple-restarts fail fast Chris Hennick 2024-06-14 21:20:54 +00:00
  • e5930f5d53 Partial corpus update Chris Hennick 2024-06-14 17:20:35 +00:00
  • 7f1752ccbb Partial corpus update Chris Hennick 2024-06-14 17:02:34 +00:00
  • 4dcad53f63 Partial update of fuzz_write corpus Chris Hennick 2024-06-14 05:47:08 +00:00
  • b8ed84e874 Partial corpus update Chris Hennick 2024-06-14 04:30:34 +00:00
  • aed6d5091a Partial fuzz_write corpus update Chris Hennick 2024-06-14 02:26:50 +00:00
  • f4748beff6 Bug fix for new script Chris Hennick 2024-06-14 00:51:49 +00:00
  • 5423e4ad26 Partial corpus update Chris Hennick 2024-06-14 00:51:05 +00:00
  • 825ea4336b New corpus-building script with multiple restarts Chris Hennick 2024-06-13 22:44:01 +00:00
  • 4fd5cb7ea5 Final corpus updates Chris Hennick 2024-06-13 22:43:40 +00:00
  • c7116f54d6
    chore: Switch to ok_or_abort_file, and inline when that fails borrow checker Chris Hennick 2024-06-14 19:01:16 -07:00
  • e3ccaf6e00
    chore: Switch to ok_or_abort_file, and inline when that fails borrow checker Chris Hennick 2024-06-14 19:01:16 -07:00
  • 405d923d9d
    refactor: Use new do_or_abort_file method Chris Hennick 2024-06-14 18:16:06 -07:00
  • e23f676c40
    fix: Abort file if central extra data is too large Chris Hennick 2024-06-14 18:01:42 -07:00
  • 2a035f5201
    fix: Overflow panic when central directory extra data is too large Chris Hennick 2024-06-14 17:42:06 -07:00
  • 5ae025e2cb
    style: cargo fmt --all Chris Hennick 2024-06-14 17:16:03 -07:00
  • 1b7c09e558
    test(fuzz): Fix a build error Chris Hennick 2024-06-14 17:14:42 -07:00
  • 052f3a133e
    fix: ZIP64 header was being written twice when copying a file Chris Hennick 2024-06-14 17:09:36 -07:00
  • a770913f7b
    fix: ZIP64 header was being written to central header twice Chris Hennick 2024-06-14 16:38:11 -07:00
  • 40093e9955
    fix: Start position was incorrect when file had no extra data Chris Hennick 2024-06-14 15:50:54 -07:00
  • af7b27a21d
    perf: Speed up CRC when encrypting small files Chris Hennick 2024-06-14 15:47:41 -07:00
  • 185b1a1fd1
    perf: Limit the number of extra fields Chris Hennick 2024-06-14 15:32:52 -07:00
  • 9d9c1ce1f1
    perf: Refactor extra-data validation Chris Hennick 2024-06-14 15:26:27 -07:00
  • 2eee2798a5
    perf: Store extra data in plain vectors until after validation Chris Hennick 2024-06-14 15:22:54 -07:00
  • fdb79845be
    perf: Only build one IndexMap after choosing among the possible valid headers Chris Hennick 2024-06-14 15:03:56 -07:00
  • 5cfa0677ff
    chore: Fix a build error Chris Hennick 2024-06-14 14:42:20 -07:00
  • 20d55432dc
    perf: Simplify validation of empty extra-data fields Chris Hennick 2024-06-14 14:39:34 -07:00
  • 2006da5ab8
    perf: Validate automatic extra-data fields only once, even if several are present Chris Hennick 2024-06-14 14:26:06 -07:00
  • 7afe34b521
    perf: Remove redundant validate_extra_data() call Chris Hennick 2024-06-14 14:19:22 -07:00
  • c218405bdd
    fix: Allow all reserved headers we can create Chris Hennick 2024-06-14 14:06:17 -07:00
  • 1e4dcc9928
    test: Fix a bug in test_invalid_extra_data when building without Zopfli Chris Hennick 2024-06-14 13:51:27 -07:00
  • 63cfa7d319
    test: Fix the invalid-extra-data test and add a new one Chris Hennick 2024-06-14 13:31:52 -07:00
  • c4bd7a61a5
    test: Fix a bug involving ZIP64 field parsing Chris Hennick 2024-06-14 13:25:49 -07:00
  • 499bd65f71
    test: Fix bugs involving AES encryption Chris Hennick 2024-06-14 11:45:37 -07:00
  • c0fd504771
    test: Fix bug: need a new invalid ID Chris Hennick 2024-06-14 10:22:57 -07:00
  • d698b4d333
    test: Fix bug: some reserved header IDs can now be used Chris Hennick 2024-06-14 10:19:48 -07:00
  • ede85c0f9e
    test: Fix bug: wrong field was being used for CRC32 Chris Hennick 2024-06-14 10:01:50 -07:00
  • d91e9ff436
    test: Fix failing test: kind tag was being read twice Chris Hennick 2024-06-14 09:41:48 -07:00