diff options
Diffstat (limited to 'graphics/openexr/patches/patch-ah')
-rw-r--r-- | graphics/openexr/patches/patch-ah | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/graphics/openexr/patches/patch-ah b/graphics/openexr/patches/patch-ah new file mode 100644 index 00000000000..12cbe24e8b3 --- /dev/null +++ b/graphics/openexr/patches/patch-ah @@ -0,0 +1,14 @@ +$NetBSD: patch-ah,v 1.1 2009/08/28 21:33:08 hasso Exp $ + +--- IlmImf/ImfZipCompressor.cpp.orig 2006-10-13 22:07:17.000000000 -0500 ++++ IlmImf/ImfZipCompressor.cpp 2009-07-29 13:18:25.223038291 -0500 +@@ -58,6 +58,9 @@ ZipCompressor::ZipCompressor + _tmpBuffer (0), + _outBuffer (0) + { ++ if ((unsigned) maxScanLineSize > INT_MAX / (unsigned) numScanLines) { ++ throw Iex::InputExc ("Error: maxScanLineSize * numScanLines would overflow."); ++ } + _tmpBuffer = + new char [maxScanLineSize * numScanLines]; + |