Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:pirania6
gzip-1.3.3-ax1.0
gzip-1.3.3-cve-2006-4336.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gzip-1.3.3-cve-2006-4336.patch of Package gzip-1.3.3-ax1.0
--- gzip-1.3.3/unpack.c.4336 1999-10-06 07:00:00.000000000 +0200 +++ gzip-1.3.3/unpack.c 2006-09-07 10:53:31.000000000 +0200 @@ -133,7 +133,7 @@ /* Remember where the literals of this length start in literal[] : */ lit_base[len] = base; /* And read the literals: */ - for (n = leaves[len]; n > 0; n--) { + for (n = leaves[len]; n > 0 && base < LITERALS; n--) { literal[base++] = (uch)get_byte(); } } @@ -169,7 +169,7 @@ prefixp = &prefix_len[1<<peek_bits]; for (len = 1; len <= peek_bits; len++) { int prefixes = leaves[len] << (peek_bits-len); /* may be 0 */ - while (prefixes--) *--prefixp = (uch)len; + while (prefixes-- && prefixp > prefix_len) *--prefixp = (uch)len; } /* The length of all other codes is unknown: */ while (prefixp > prefix_len) *--prefixp = 0;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor