2302 Commits

Author SHA1 Message Date
dependabot[bot]
ed1522ef62 Bump actions/upload-artifact from 5 to 6
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-31 16:24:54 -08:00
Cœur
f1a1d0037b Fix modified_date when zipping 2025-12-24 14:58:22 -08:00
dependabot[bot]
bf92612b70 Bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-30 16:21:55 -08:00
dependabot[bot]
f79db2c3aa Bump svenstaro/upload-release-action from 2.11.2 to 2.11.3
Bumps [svenstaro/upload-release-action](https://github.com/svenstaro/upload-release-action) from 2.11.2 to 2.11.3.
- [Release notes](https://github.com/svenstaro/upload-release-action/releases)
- [Changelog](https://github.com/svenstaro/upload-release-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/svenstaro/upload-release-action/compare/2.11.2...2.11.3)

---
updated-dependencies:
- dependency-name: svenstaro/upload-release-action
  dependency-version: 2.11.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-30 16:21:16 -08:00
noword
e2e889bc19 Compatible with systems without symbolic links
Check if the symlink and readlink functions exist, and define NO_SYMLINK and NO_READLINK based on the results.
VitaSDK will be recognized as Linux, but it does not support symbolic links.
2025-11-17 14:59:32 -08:00
Cœur
31e2b51431 Remove build-src-dir 2025-11-11 09:16:09 -08:00
Benjamin Buch
05ba6985ef fix #915: headers should not include there dependencies 2025-11-10 18:37:32 -08:00
Cœur
73d09cbff8 Avoid ruby codeql failure 2025-11-10 18:29:56 -08:00
Cœur
6e5e01a1ec Bump GoogleTest to 1.16 2025-11-07 10:18:23 -08:00
dependabot[bot]
362b091dc4 Bump github/codeql-action from 3 to 4
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3 to 4.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-31 19:17:05 -07:00
dependabot[bot]
549d4c2bc3 Bump actions/upload-artifact from 4 to 5
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-31 19:16:35 -07:00
Cœur
f890d80348 Fix allocating negative size 2025-10-30 16:49:22 -07:00
Cœur
9a2a6be955 mz_stream_zstd_set_prop_int64: Implicit conversion loses integer precision 2025-10-30 16:49:02 -07:00
Cœur
1867916bec Removing superfluous const 2025-10-06 21:45:33 -07:00
dependabot[bot]
7c1bb562f7 Bump actions/setup-python from 5 to 6
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-30 18:42:33 -07:00
Bastian Germann
71ff3329bd Drop "Attacking and Repairing the WinZip Encryption Scheme"
The paper is not freely redistributable: "To copy otherwise, to republish,
to post on servers or to redistribute to lists, requires prior specific
permission and/or a fee."

It is assumed that minizip-ng has not gained permission to redistribute
it. Therefore, drop it.
2025-09-18 11:37:06 -07:00
Bastian Germann
a421f7f404 Drop WinZip's AES Encryption Information
The Copyright of the WinZip document is by Corel Corporation.
All rights are reserved, which includes the right to distribute copies
of the document. Therefore, drop it and reference it via URL.
2025-09-18 11:37:06 -07:00
Bastian Germann
45610c1bfc Drop PKWARE's APPNOTE
appnote.txt explicitly forbids reproduction or distribution in 1.4.2.
Therefore, drop it and reference it via URL.
2025-09-18 11:37:06 -07:00
Sergey Markelov
3ad5bb4a2f fix improper mz_stream mode set in mz_zip_reader_entry_save_buffer() 2025-09-15 13:42:22 -07:00
Sergey Markelov
5d6cbe974d fix missing const at r/o buffers 2025-09-15 13:42:22 -07:00
dependabot[bot]
8183c025de Bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-01 22:10:48 -07:00
dependabot[bot]
61121abdd9 Bump svenstaro/upload-release-action from 2.11.1 to 2.11.2
Bumps [svenstaro/upload-release-action](https://github.com/svenstaro/upload-release-action) from 2.11.1 to 2.11.2.
- [Release notes](https://github.com/svenstaro/upload-release-action/releases)
- [Changelog](https://github.com/svenstaro/upload-release-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/svenstaro/upload-release-action/compare/2.11.1...2.11.2)

---
updated-dependencies:
- dependency-name: svenstaro/upload-release-action
  dependency-version: 2.11.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-01 02:09:33 -07:00
Nathan Moinvaziri
d214437dd8 Use unsigned int instead of uint32_t in crypt.h for max compat. #897 2025-07-25 18:54:22 -07:00
dependabot[bot]
636cba8643 Bump svenstaro/upload-release-action from 2.9.0 to 2.11.1
Bumps [svenstaro/upload-release-action](https://github.com/svenstaro/upload-release-action) from 2.9.0 to 2.11.1.
- [Release notes](https://github.com/svenstaro/upload-release-action/releases)
- [Changelog](https://github.com/svenstaro/upload-release-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/svenstaro/upload-release-action/compare/2.9.0...2.11.1)

---
updated-dependencies:
- dependency-name: svenstaro/upload-release-action
  dependency-version: 2.11.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-01 08:09:42 -07:00
Sebastian Goth
0969e94b7b Document MZ_ZLIB_FLAVOR 2025-06-19 08:56:05 -07:00
Sebastian Goth
27d9a0cfa2 Add cmake control to select zlib flavor
Instead of assuming zlib-ng preference over zlib as a dependency, let
the user decide.

New cmake variable MZ_ZLIB_FLAVOR can be set to auto | zlib-ng | zlib
defaults to auto.
2025-06-19 08:56:05 -07:00
Sebastian Goth
897a68aad8 Fix transitive finding of zlib-ng 2025-06-19 08:56:05 -07:00
Peter Harris
def371aae4 zip_rw: validate the handle in each getter/setter
Some of the getters and setters were making sure that the handle was
non-null, and some were not. Add handle checking to every function for
consistency.
2025-06-17 13:42:20 -07:00
Cœur
20aa898031 refactor: passing reader, writer, zip instead of handle 2025-06-17 09:07:54 -07:00
Peter Harris
152e7468c3 harden mz_zip_writer_add_file against link following
There is a small race where a file can be replaced with a link between the
call to mz_os_is_symlink and the call to mz_stream_os_open. Add
MZ_OPEN_MODE_NOFOLLOW to make sure that (on POSIX) a link cannot be
followed.
2025-06-16 16:14:24 -07:00
Peter Harris
4f46a3d799 fix stack overrun in mz_os_utf8_string_create
The string_encoding variable goes out of scope right after assignment to
from_encoding. Referencing from_encoding after this point is technically a
use-after-free error, which leads to arbitrary (undefined) behaviour.

Move string_encoding up to function scope so it survives for as long as it
could be referenced.
2025-06-16 15:08:16 -07:00
Peter Harris
c665368d7f zstd: add MZ_STREAM_PROP_COMPRESS_THREADS
Add a property to control the number of threads used for zstd compression.
2025-06-16 15:05:52 -07:00
lu_jiakai
227f2d35be Updage usage of Buffered Stream 2025-05-26 07:56:47 -07:00
Cœur
57cc29298b doc: compression -> decompression 2025-05-25 15:50:45 -07:00
Tomas Kalibera
b0568345a3 Mark handle as unused.
To avoid warning, consistently with other functions/args in the file.
2025-05-23 09:34:27 -07:00
Cœur
378a4ebc55 Revert: Make pattern in mz_zip_reader dynamically assigned (#856) 2025-05-20 10:04:19 -04:00
Herman Semenov
799086de42 align bzip and lzma streams for 64-bit platforms
affected structs:
- mz_stream_lzma_s 32984 to 32976 bytes
- mz_stream_bzip_s 32912 to 32904 bytes
2025-05-20 10:02:36 -04:00
tbeu
d265da043d Apply Clang format 2025-05-05 15:04:28 -04:00
Nathan Moinvaziri
f3ed731e27 Version 4.0.10. 4.0.10 2025-05-04 21:36:06 -04:00
Cœur
b4ff924998 fix copy encrypted file info 2025-05-04 21:32:34 -04:00
Nathan Moinvaziri
e9ab17807e Remove old ubuntu CI run 2025-05-04 21:31:47 -04:00
Cœur
4e88434cdf free up writer memory when failing to open archive for reading 2025-05-04 18:53:04 -04:00
Cœur
4b770114a0 Support any character encoding 2025-05-01 20:07:38 -04:00
Cœur
10646f0da6 fix: unzipping with backslash at the end of the filename 2025-05-01 20:06:56 -04:00
Cœur
c18b5bf942 updating github actions for ubuntu-22.04 2025-05-01 12:57:19 -04:00
Cœur
c7e211ebed Support star in filename 2025-04-30 18:01:45 -04:00
孟小骇
e090f46c7d add space and move brace 2025-04-16 08:16:13 -07:00
孟小骇
dabe96363a Make pattern in mz_zip_reader dynamically assigned 2025-04-16 08:16:13 -07:00
Cœur
e247d31d8b cleanup pathwfs 2025-04-15 07:13:24 -07:00
Cœur
f8941493a0 Adding MZ_PRESERVE_NATIVE_STRUCTURE to control the behavior. 2025-04-14 13:41:49 -07:00