-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We had a problem in Xamarin.Android where libzip would crash on our test machine. This turned out to be a bung in libzip itself. nih-at/libzip#202 There was a missing `NULL` check in `zip_stat_index`. This PR adds a patch to allow us to patch this problem in the latest release of `libzip` so that we can bump to the latest version in Xamrain.Android.
- Loading branch information
1 parent
96eb5e3
commit b332af0
Showing
3 changed files
with
25 additions
and
9 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<_LibZipSharpNugetVersion>1.0.16</_LibZipSharpNugetVersion> | ||
<_LibZipSharpNugetVersion>1.0.17</_LibZipSharpNugetVersion> | ||
</PropertyGroup> | ||
</Project> |
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 @@ | ||
diff --git a/lib/zip_stat_index.c b/lib/zip_stat_index.c | ||
index 0f8bead8..62dc0455 100644 | ||
--- a/lib/zip_stat_index.c | ||
+++ b/lib/zip_stat_index.c | ||
@@ -55,7 +55,7 @@ zip_stat_index(zip_t *za, zip_uint64_t index, zip_flags_t flags, zip_stat_t *st) | ||
return -1; | ||
} | ||
|
||
- if (entry->changes->changed & ZIP_DIRENT_LAST_MOD) { | ||
+ if (entry->changes != NULL && entry->changes->changed & ZIP_DIRENT_LAST_MOD) { | ||
st->mtime = de->last_mod; | ||
st->valid |= ZIP_STAT_MTIME; | ||
} |