/[packages]/cauldron/gzip/current/SOURCES/gzip-1.3.5-cve-2006-4338.patch
ViewVC logotype

Contents of /cauldron/gzip/current/SOURCES/gzip-1.3.5-cve-2006-4338.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 270 - (show annotations) (download)
Fri Jan 7 19:33:46 2011 UTC (13 years, 3 months ago) by tmb
File size: 904 byte(s)
imported package gzip
1 --- gzip-1.3.3/unlzh.c.4338 2006-09-07 10:49:31.000000000 +0200
2 +++ gzip-1.3.3/unlzh.c 2006-09-07 11:37:53.000000000 +0200
3 @@ -260,7 +260,7 @@
4 if (bitbuf & mask) c = right[c];
5 else c = left [c];
6 mask >>= 1;
7 - } while (c >= NT);
8 + } while (c >= NT && (mask || c != left[c]));
9 }
10 fillbuf((int) pt_len[c]);
11 if (c <= 2) {
12 @@ -296,7 +296,7 @@
13 if (bitbuf & mask) j = right[j];
14 else j = left [j];
15 mask >>= 1;
16 - } while (j >= NC);
17 + } while (j >= NC && (mask || j != left[j]));
18 }
19 fillbuf((int) c_len[j]);
20 return j;
21 @@ -313,7 +313,7 @@
22 if (bitbuf & mask) j = right[j];
23 else j = left [j];
24 mask >>= 1;
25 - } while (j >= NP);
26 + } while (j >= NP && (mask || j != left[j]));
27 }
28 fillbuf((int) pt_len[j]);
29 if (j != 0) j = ((unsigned) 1 << (j - 1)) + getbits((int) (j - 1));

  ViewVC Help
Powered by ViewVC 1.1.30