Parent Directory
|
Revision Log
* Wed Jul 29 2009 Rex Dieter <rdieter@fedoraproject.org> 1.6.1-8 - CVE-2009-1720 OpenEXR: Multiple integer overflows (#513995) - CVE-2009-1721 OpenEXR: Invalid pointer free by image decompression (#514003)
| 1 | diff -up openexr-1.6.1/IlmImf/ImfPreviewImage.cpp.CVE-2009-1720-1 openexr-1.6.1/IlmImf/ImfPreviewImage.cpp |
| 2 | --- openexr-1.6.1/IlmImf/ImfPreviewImage.cpp.CVE-2009-1720-1 2006-06-06 00:58:16.000000000 -0500 |
| 3 | +++ openexr-1.6.1/IlmImf/ImfPreviewImage.cpp 2009-07-29 13:27:39.087038617 -0500 |
| 4 | @@ -41,6 +41,7 @@ |
| 5 | |
| 6 | #include <ImfPreviewImage.h> |
| 7 | #include "Iex.h" |
| 8 | +#include <limits.h> |
| 9 | |
| 10 | namespace Imf { |
| 11 | |
| 12 | @@ -51,6 +52,9 @@ PreviewImage::PreviewImage (unsigned int |
| 13 | { |
| 14 | _width = width; |
| 15 | _height = height; |
| 16 | + if (_height && _width > UINT_MAX / _height || _width * _height > UINT_MAX / sizeof(PreviewRgba)) { |
| 17 | + throw Iex::ArgExc ("Invalid height and width."); |
| 18 | + } |
| 19 | _pixels = new PreviewRgba [_width * _height]; |
| 20 | |
| 21 | if (pixels) |
| 22 | diff -up openexr-1.6.1/IlmImf/ImfPreviewImage.h.CVE-2009-1720-1 openexr-1.6.1/IlmImf/ImfPreviewImage.h |
| admin@fedoraproject.org | ViewVC Help |
| Powered by ViewVC 1.1.2 |