Magellan Linux

Annotation of /trunk/kdegraphics/patches/post-3.5.7-kdegraphics-CVE-2007-3387.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 291 - (hide annotations) (download)
Thu Aug 16 17:30:30 2007 UTC (16 years, 9 months ago) by niro
File size: 629 byte(s)
-security update CVE-2007-3387

1 niro 291 Index: kpdf/xpdf/xpdf/Stream.cc
2     ===================================================================
3     --- kpdf/xpdf/xpdf/Stream.cc (revision 689574)
4     +++ kpdf/xpdf/xpdf/Stream.cc (working copy)
5     @@ -411,9 +411,9 @@ StreamPredictor::StreamPredictor(Stream
6    
7     nVals = width * nComps;
8     if (width <= 0 || nComps <= 0 || nBits <= 0 ||
9     - nComps >= INT_MAX / nBits ||
10     - width >= INT_MAX / nComps / nBits ||
11     - nVals * nBits + 7 < 0) {
12     + nComps > gfxColorMaxComps || nBits > 16 ||
13     + width >= INT_MAX / nComps ||
14     + nVals >= (INT_MAX - 7) / nBits) {
15     return;
16     }
17     pixBytes = (nComps * nBits + 7) >> 3;