-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
402 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
BasedOnStyle: LLVM | ||
IndentWidth: 4 | ||
ColumnLimit: 2000 | ||
AlwaysBreakAfterReturnType: TopLevelDefinitions | ||
KeepEmptyLinesAtTheStartOfBlocks: false | ||
MaxEmptyLinesToKeep: 2 | ||
BreakBeforeBraces: Custom | ||
BraceWrapping: | ||
BeforeElse: true | ||
AlignEscapedNewlines: Left | ||
UseTab: Never | ||
#PPDirectiveIndentStyle: AfterHash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Security Policy | ||
|
||
## Supported Versions | ||
|
||
We are not maintaining multiple branches, so all fixes will be committed to head and included in the next release. | ||
|
||
We take great care to maintain backwards compatibility, so we expect our users to use the latest version. | ||
|
||
## Reporting a Vulnerability | ||
|
||
You can reach us per email at [email protected]. | ||
|
||
For less sensitive reports, you can also open an issue or pull request on GitHub. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ and some other general information gathered from their sources. | |
Thanks to these people for suggestions, testing, and bug reports: | ||
|
||
Agostino Sarubbo | ||
Alberto Spin | ||
Alexander Galanin <[email protected]> | ||
Alexandr Shadchin <[email protected]> | ||
Alexey Bykov <[email protected]> | ||
|
@@ -40,30 +41,35 @@ Elvis Angelaccio | |
Erwin Haid <[email protected]> | ||
Eun-cheol Joo | ||
Fabrice Fontaine | ||
Filip Niksic | ||
Florian Delizy <[email protected]> | ||
Force Charlie <[email protected]> | ||
François Simon <[email protected]> | ||
Frederik Ramm <[email protected]> | ||
gk7huki <[email protected]> | ||
Gerard ODonnell | ||
Giovanni | ||
Hanno Böck <[email protected]> | ||
HeeMyung | ||
Heiko Becker | ||
Heiko Hund <[email protected]> | ||
Ilya Voronin | ||
Info-ZIP group | ||
Ivan Kolesnikov <[email protected]> | ||
Jan Weiß <[email protected]> | ||
Jay Freeman (saurik) <[email protected]> | ||
jloqfjgk@github | ||
Joachim Reichel <[email protected]> | ||
João Custódio <[email protected]> | ||
Joel Ebrahimi <[email protected]> | ||
Jono Spiro <[email protected]> | ||
Julien Matthey <[email protected]> | ||
Julien Schueller <[email protected]> | ||
kensington <[email protected]> | ||
Keith Jones <[email protected]> | ||
Khaled Mardam-Bey | ||
Kohei Yoshida <[email protected]> | ||
Krzesimir Nowak <[email protected]> | ||
Leith Bade <[email protected]> | ||
Lubomir I. Ivanov <[email protected]> | ||
Maël Nison | ||
|
@@ -72,11 +78,13 @@ Martin Herkt <[email protected]> | |
Martin Szulecki <[email protected]> | ||
Michael Balzer | ||
Michael Beck <[email protected]> | ||
Michael Heimpold <[email protected]> | ||
Michał Janiszewski <[email protected]> | ||
Michal Vyskocil <[email protected]> | ||
Mikhail Gusarov <[email protected]>. | ||
Miklos Vajna | ||
Morris Hafner | ||
Muhammad Arslan Kabeer | ||
Oliver Kaiser <[email protected]> | ||
Oliver Kuckertz <[email protected]> | ||
OSS-Fuzz Team | ||
|
@@ -88,33 +96,43 @@ Paul Sheppard <[email protected]> | |
Pavel Raiskup <[email protected]> | ||
Pierre Joye <[email protected]> | ||
Pierre-Louis Cabelguen <[email protected]> | ||
PW Hu <[email protected]> | ||
Rafał Mikrut | ||
Randy <[email protected]> | ||
Remi Collet <[email protected]> | ||
rezso <[email protected]> | ||
Richard Schütz | ||
Rick Carback <[email protected]> | ||
Rikard Falkeborn <[email protected]> | ||
Robert Norris <[email protected]> | ||
Roberto Tirabassi <[email protected]> | ||
robhz786 <[email protected]> | ||
Roland Ortloff <[email protected]> | ||
Rosen Penev <[email protected]> | ||
Ryan Burns <[email protected]> | ||
scribam | ||
Sebastian Kemper <[email protected]> | ||
Sebastian Schmitt <[email protected]> | ||
Sergei Ozerov <[email protected]> | ||
shenlebantongying | ||
Simon Talbot <[email protected]> | ||
SpaceIm | ||
Stephen Bryant <[email protected]> | ||
Tabata Shintaro <[email protected]> | ||
Tarmo Pikaro <[email protected]> | ||
Taylor C. Richberger | ||
TC | ||
Tim Lunn <[email protected]> | ||
Timo Warns <[email protected]> | ||
Timofey | ||
Tom Callaway <[email protected]> | ||
Tomas Hoger <[email protected]> | ||
Tomáš Malý <[email protected]> | ||
Torsten Paul <[email protected]> | ||
Transporter <[email protected]> | ||
Vassili Courzakis <[email protected]> | ||
Vitaly Murashev <[email protected]> | ||
William Lee | ||
William Ouwehand <[email protected]> | ||
Wojciech Michalski <[email protected]> | ||
Wolfgang Glunz <[email protected]> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
https://github.com/nih-at/libzip/releases/download/v1.8.0/libzip-1.8.0.tar.xz | ||
https://github.com/nih-at/libzip/releases/download/v1.9.0/libzip-1.9.0.tar.xz |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
zip_close.c -- close zip archive and update changes | ||
Copyright (C) 1999-2021 Dieter Baron and Thomas Klausner | ||
Copyright (C) 1999-2022 Dieter Baron and Thomas Klausner | ||
This file is part of libzip, a library to manipulate ZIP archives. | ||
The authors can be contacted at <[email protected]> | ||
|
@@ -448,14 +448,30 @@ add_data(zip_t *za, zip_source_t *src, zip_dirent_t *de, zip_uint32_t changed) { | |
zip_source_free(src_final); | ||
return -1; | ||
} | ||
|
||
if (de->encryption_method == ZIP_EM_TRAD_PKWARE) { | ||
de->bitflags |= ZIP_GPBF_DATA_DESCRIPTOR; | ||
|
||
/* PKWare encryption uses last_mod, make sure it gets the right value. */ | ||
if (de->changed & ZIP_DIRENT_LAST_MOD) { | ||
zip_stat_t st_mtime; | ||
zip_stat_init(&st_mtime); | ||
st_mtime.valid = ZIP_STAT_MTIME; | ||
st_mtime.mtime = de->last_mod; | ||
if ((src_tmp = _zip_source_window_new(src_final, 0, -1, &st_mtime, NULL, NULL, 0, &za->error)) == NULL) { | ||
zip_source_free(src_final); | ||
return -1; | ||
} | ||
zip_source_free(src_final); | ||
src_final = src_tmp; | ||
} | ||
} | ||
|
||
if ((src_tmp = impl(za, src_final, de->encryption_method, ZIP_CODEC_ENCODE, password)) == NULL) { | ||
/* error set by impl */ | ||
zip_source_free(src_final); | ||
return -1; | ||
} | ||
if (de->encryption_method == ZIP_EM_TRAD_PKWARE) { | ||
de->bitflags |= ZIP_GPBF_DATA_DESCRIPTOR; | ||
} | ||
|
||
zip_source_free(src_final); | ||
src_final = src_tmp; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
zip_file_set_mtime.c -- set modification time of entry. | ||
Copyright (C) 2014-2020 Dieter Baron and Thomas Klausner | ||
Copyright (C) 2014-2022 Dieter Baron and Thomas Klausner | ||
This file is part of libzip, a library to manipulate ZIP archives. | ||
The authors can be contacted at <[email protected]> | ||
|
@@ -54,6 +54,11 @@ zip_file_set_mtime(zip_t *za, zip_uint64_t idx, time_t mtime, zip_flags_t flags) | |
|
||
e = za->entry + idx; | ||
|
||
if (e->orig != NULL && e->orig->encryption_method == ZIP_EM_TRAD_PKWARE && !ZIP_ENTRY_CHANGED(e, ZIP_DIRENT_ENCRYPTION_METHOD) && !ZIP_ENTRY_DATA_CHANGED(e)) { | ||
zip_error_set(&za->error, ZIP_ER_OPNOTSUPP, 0); | ||
return -1; | ||
} | ||
|
||
if (e->changes == NULL) { | ||
if ((e->changes = _zip_dirent_clone(e->orig)) == NULL) { | ||
zip_error_set(&za->error, ZIP_ER_MEMORY, 0); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.