Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37759720
en ru br
ALT Linux repositórios
S:1.13-alt2
5.0: 1.3.5-alt4.M40.1
4.1: 1.3.5-alt4.M40.1
4.0: 1.3.5-alt4.M40.1
3.0: 1.3.5-alt2
+updates:1.3.5-alt2.M30.1

Outros repositórios
Upstream:1.3.12

Group :: Arquivamento/Compressão
RPM: gzip

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: gzip-1.3.5-gentoo-huft_build-return.patch
Download


The huft_build() function should return 2 if the input is invalid (such 
as all zero length codes) and 0 if the input is valid.  The zero length 
code check incorrectly returns 0 however causing gzip to segv on some 
invalid input cases.
Discovered & fixed by Tavis Ormandy.
http://bugs.gentoo.org/94584
--- inflate.c
+++ inflate.c
@@ -336,9 +336,9 @@ int huft_build(b, n, s, d, e, t, m)
   if (c[0] == n)                /* null input--all zero length codes */
   {
     *t = (struct huft *)NULL;
     *m = 0;
-    return 0;
+    return 2;
   }
 
 
   /* Find minimum and maximum length, bound *m by those */
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009