From 754137e70cf58a64ad524b704a86b651ba0cde07 Mon Sep 17 00:00:00 2001 From: Petr Stodulka Date: Wed, 14 Dec 2016 16:30:36 +0100 Subject: [PATCH] Fix CVE-2016-9844 (rhbz#1404283) Fixes buffer overflow in zipinfo in similar way like fix for CVE-2014-9913 provided by upstream. --- zipinfo.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/zipinfo.c b/zipinfo.c index c03620e..accca2a 100644 --- a/zipinfo.c +++ b/zipinfo.c @@ -1984,7 +1984,19 @@ static int zi_short(__G) /* return PK-type error code */ ush dnum=(ush)((G.crec.general_purpose_bit_flag>>1) & 3); methbuf[3] = dtype[dnum]; } else if (methnum >= NUM_METHODS) { /* unknown */ - sprintf(&methbuf[1], "%03u", G.crec.compression_method); + /* 2016-12-05 SMS. + * https://launchpad.net/bugs/1643750 + * Unexpectedly large compression methods overflow + * &methbuf[]. Use the old, three-digit decimal format + * for values which fit. Otherwise, sacrifice the "u", + * and use four-digit hexadecimal. + */ + if (G.crec.compression_method <= 999) { + sprintf( &methbuf[ 1], "%03u", G.crec.compression_method); + } else { + sprintf( &methbuf[ 0], "%04X", G.crec.compression_method); + } + } for (k = 0; k < 15; ++k) -- 2.5.5 fc49171027b3baabab9c6fdb93dd422c'>commitdiff
path: root/gnu/packages/android.scm
AgeCommit message (Expand)Author
2024-12-13gnu: Add python-setuptools/python-wheel where necessary....Changes to pyproject-build-system require explicit dependency on setuptools/wheel. Change-Id: Icd7699fc1dc56e974ae7568f2ae916dbf876bea5 Lars-Dominik Braun
2024-08-31gnu: android-libselinux: Fix inexistant phase name....* gnu/packages/android.scm (android-libselinux): Fix inexistant phase name. Change-Id: Ia0afb0d4ef9cf05300366db3a5d5c0e6657450f4 Josselin Poiret
2024-04-04gnu: go-github-com-schollz-progressbar-v3: Move to golang-xyz....* gnu/packages/golang.scm (go-github-com-schollz-progressbar-v3): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. * gnu/packages/android.scm: Add (gnu packages golang-xyz) module. Change-Id: Id40397b4f3323670847d8e46f5d8fc6ffea61c84 Sharlatan Hellseher
2024-02-18gnu: Add emacs-fdroid....* gnu/packages/android.scm (emacs-fdroid): New variable. Change-Id: I68358b5490406aa6ee24391bee6e69bebc574d96 Signed-off-by: Ludovic Courtès <ludo@gnu.org> Miguel Ángel Moreno
2024-02-14gnu: android-file-transfer: Update to 4.3....* gnu/packages/android.scm (android-file-transfer): Update to 4.3. Change-Id: I011229903be725958d3b0c018cfa7a7afef3eacd Signed-off-by: John Kehayias <john.kehayias@protonmail.com> kiasoc5