mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-29 07:42:23 -05:00
0c5a8007fe
* gnu/packages/patches/zziplib-CVE-2017-5974.patch, gnu/packages/patches/zziplib-CVE-2017-5975.patch, gnu/packages/patches/zziplib-CVE-2017-5976.patch, gnu/packages/patches/zziplib-CVE-2017-5978.patch, gnu/packages/patches/zziplib-CVE-2017-5979.patch, gnu/packages/patches/zziplib-CVE-2017-5981.patch: New files. * gnu/local.mk (dist_patch_DATA): Add them. * gnu/packages/zip.scm (zziplib)[source]: Use them.
19 lines
695 B
Diff
19 lines
695 B
Diff
Fix CVE-2017-5979:
|
|
|
|
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-5979
|
|
|
|
Patch copied from Debian.
|
|
|
|
Index: zziplib-0.13.62/zzip/fseeko.c
|
|
===================================================================
|
|
--- zziplib-0.13.62.orig/zzip/fseeko.c
|
|
+++ zziplib-0.13.62/zzip/fseeko.c
|
|
@@ -255,7 +255,7 @@ zzip_entry_findfirst(FILE * disk)
|
|
return 0;
|
|
/* we read out chunks of 8 KiB in the hope to match disk granularity */
|
|
___ zzip_off_t pagesize = PAGESIZE; /* getpagesize() */
|
|
- ___ ZZIP_ENTRY *entry = malloc(sizeof(*entry));
|
|
+ ___ ZZIP_ENTRY *entry = calloc(1, sizeof(*entry));
|
|
if (! entry)
|
|
return 0;
|
|
___ unsigned char *buffer = malloc(pagesize);
|