source: trunk/server/common/patches/gzip-cve-2010-0001.patch @ 1433

Last change on this file since 1433 was 1433, checked in by mitchb, 14 years ago
Scriptsify gzip to patch for CVE-2009-2624 and CVE-2010-0001
File size: 298 bytes
RevLine 
[1433]1--- unlzw.c.orig        2010-01-21 05:23:53.000000000 -0500
2+++ unlzw.c     2010-01-21 05:25:51.000000000 -0500
3@@ -248,7 +248,8 @@
4        int  o;
5 
6     resetbuf:
7-       e = insize-(o = (posbits>>3));
8+       o = posbits >> 3;
9+       e = o <= insize ? insize - o : 0;
10 
11        for (i = 0 ; i < e ; ++i) {
12            inbuf[i] = inbuf[i+o];
Note: See TracBrowser for help on using the repository browser.