Initial Commit
- initial default booting image
This commit is contained in:
26
package/unzip/0026-cve-2019-13232-fix-bug-in-uzinflate.patch
Normal file
26
package/unzip/0026-cve-2019-13232-fix-bug-in-uzinflate.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
From: Mark Adler <madler@alumni.caltech.edu>
|
||||
Subject: Fix bug in UZinflate() that incorrectly updated G.incnt.
|
||||
Origin: https://github.com/madler/unzip/commit/5c572555cf5d80309a07c30cf7a54b2501493720
|
||||
X-Debian-version: 6.0-26
|
||||
|
||||
Fix bug in UZinflate() that incorrectly updated G.incnt.
|
||||
|
||||
The update assumed a full buffer, which is not always full. This
|
||||
could result in a false overlapped element detection when a small
|
||||
deflate-compressed file was unzipped using an old zlib. This
|
||||
commit remedies that.
|
||||
|
||||
CVE: CVE-2019-13232
|
||||
Upstream: https://sources.debian.org/src/unzip/6.0-29/debian/patches/26-cve-2019-13232-fix-bug-in-uzinflate.patch
|
||||
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
|
||||
--- a/inflate.c
|
||||
+++ b/inflate.c
|
||||
@@ -700,7 +700,7 @@
|
||||
G.dstrm.total_out));
|
||||
|
||||
G.inptr = (uch *)G.dstrm.next_in;
|
||||
- G.incnt = (G.inbuf + INBUFSIZ) - G.inptr; /* reset for other routines */
|
||||
+ G.incnt -= G.inptr - G.inbuf; /* reset for other routines */
|
||||
|
||||
uzinflate_cleanup_exit:
|
||||
err = inflateReset(&G.dstrm);
|
||||
Reference in New Issue
Block a user