debian/0000775000000000000000000000000012253336264007176 5ustar debian/openexr.install0000664000000000000000000000031611525534003012236 0ustar usr/bin/exrenvmap usr/bin/exrheader usr/bin/exrmakepreview usr/bin/exrmaketiled usr/bin/exrstdattr # The openexr package contains libopenexr6's documentation: ../../doc/*.pdf usr/share/doc/libopenexr6/pdf debian/rules0000775000000000000000000000211012253335506010246 0ustar #!/usr/bin/make -f # # © 2009 Cyril Brulebois ##### INCLUDE # ##### VARIABLES # DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) NO_MAKE_CHECK_ARCHS := arm ia64 ##### OVERRIDES # # Need to disable the test suite on some architectures: override_dh_auto_test: ifeq (,$(filter $(DEB_BUILD_ARCH),$(NO_MAKE_CHECK_ARCHS))) ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) dh_auto_test endif endif # No need to compress .h/.cpp files: override_dh_compress: dh_compress -X.h -X.cpp # Need to remove the directories, since they're getting replaced with # symlinks: override_dh_link: rm -rf debian/libopenexr-dev/usr/share/doc/libopenexr-dev rm -rf debian/openexr/usr/share/doc/openexr dh_link # Need to pass an extra parameter: override_dh_makeshlibs: dh_makeshlibs -V # Need to remember package versions: override_dh_installdeb: dh_buildinfo -plibopenexr6 dh_installdeb override_dh_auto_install: dh_auto_install find debian/tmp/usr/lib -name "*.la" -exec \ sed -i -e "s,^dependency_libs=.*,dependency_libs=''," {} + %: dh $@ --with autoreconf debian/openexr.postinst0000664000000000000000000000046611525534003012461 0ustar #!/bin/sh # $Id$ # vim:ts=4:sw=4:expandtab: set -e if [ "$1" = "configure" ] then # Convert empty directory into a symlink if [ ! -L /usr/share/doc/openexr ] then rm -rf /usr/share/doc/openexr ln -s /usr/share/doc/libopenexr6 /usr/share/doc/openexr fi fi #DEBHELPER# exit 0 debian/openexr.doc-base.IlmImf0000664000000000000000000000051411735640310013423 0ustar Document: openexr-ilmimf Title: Reading and Writing OpenEXR Image Files with the IlmImf Library Author: Lucas Digital Ltd. LLC. Abstract: This document shows how to write C++ code that reads and writes OpenEXR image files. Section: Programming Format: PDF Files: /usr/share/doc/libopenexr6/pdf/ReadingAndWritingImageFiles.pdf.gz debian/watch0000664000000000000000000000011711525534003010216 0ustar version=3 http://savannah.nongnu.org/download/openexr/openexr-([0-9].*).tar.gz debian/exrheader.10000664000000000000000000000273311525534003011224 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH EXRHEADER 1 "May 22, 2003" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME exrheader \- utility to print an OpenEXR image file's header .SH SYNOPSIS .B exrheader .RI imagefile .SH DESCRIPTION This manual page documents briefly the .B exrheader command. This manual page was written for the Debian distribution because the original program does not have a manual page. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBexrheader\fP is a program to print an OpenEXR image file's header including its Compression, LineOrder, PixelType, ChannelList and Info attributes. .SH OPTIONS This program has no command-line options. .SH AUTHOR This manual page was written by Andrew Lau , for the Debian project (but may be used by others). debian/exrstdattr.10000664000000000000000000000613711525534003011463 0ustar \" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH EXRSTDATTR 1 "March 31, 2004" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME exrstdattr \- a utility for modifying OpenEXR standard attributes. .SH SYNOPSIS .B exrstdattr .RI "[options] infile outfile" .SH DESCRIPTION This manual page documents briefly the .B exrstdattr command. This manual page was written for the Debian distribution because the original program does not have a manual page. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBexrstdattr\fP reads an OpenEXR image from infile, sets the values of one or more standard attributes in the image's header, and saves the result in outfile. Note that infile and outfile must not refer to the same file (i.e. the program cannot edit an image file "in place"). .SH OPTIONS Options for setting attribute values include: .TP .B \-chromaticities f f f f f f f f CIE xy chromaticities for the red, green and blue primaries, and for the white point (8 floats) .TP .B \-whiteLuminance f white luminance, in candelas per square meter (float, >= 0.0) .TP .B \-xDensity f horizontal output density, in pixels per inch (float, >= 0.0) .TP .B \-owner s name of the owner of the image (string) .TP .B \-comments s additional information about the image (string) .TP .B \-capDate s date when the image was created or captured, in local time (string, formatted as YYYY:MM:DD hh:mm:ss) .TP .B \-utcOffset f offset of local time at capDate from UTC, in seconds (float, UTC == local time + x) .TP .B \-longitude f, \-latitude f, \-altitude f location where the image was recorded, in degrees east of Greenwich and north of the equator, and in meters above sea level (float) .TP .B \-focus f the camera's focus distance, in meters (float, > 0, or "infinity") .TP .B \-expTime f exposure time, in seconds (float, >= 0) .TP .B \-aperture f lens apterture, in f\-stops (float, >= 0) .TP .B \-isoSpeed f effective speed of the film or image sensor that was used to record the image (float, >= 0) .TP .B \-envmap s indicates that the image is an environment map (string, LATLONG or CUBE) .TP .B \-pixelAspectRatio f width divided by height of a pixel (float, >= 0) .TP .B \-screenWindowWidth f width of the screen window (float, >= 0) .TP .B \-screenWindowCenter f f center of the screen window (2 floats) .TP .B \-h prints these options .SH AUTHOR This manual page was written by Andrew Lau , for the Debian GNU/Linux system (but may be used by others). debian/openexr.doc-base.tech_intro0000664000000000000000000000047611735640366014426 0ustar Document: openexr-tech-intro Title: Technical Introduction to OpenEXR Author: Lucas Digital Ltd. LLC. Abstract: This document presents a brief overview of OpenEXR and explains concepts that are specific to this format. Section: Graphics Format: PDF Files: /usr/share/doc/libopenexr6/pdf/TechnicalIntroduction.pdf.gz debian/copyright0000664000000000000000000000372311525534003011126 0ustar This package was first Debianized by Andrew Lau on Thu May 22 11:17:01 EST 2003 It was downloaded from: Upstream Authors: Florian Kainz Rod Bogart Drew Hess Paul Schneider Bill Anderson The full list of contributors can be found in the AUTHORS file Mailing List: Copyright (c) 2002, Industrial Light & Magic, a division of Lucas Digital Ltd. LLC All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Industrial Light & Magic nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/libopenexr-dev.links0000664000000000000000000000006711525534003013156 0ustar usr/share/doc/libopenexr6 usr/share/doc/libopenexr-dev debian/source/0000775000000000000000000000000011352452113010465 5ustar debian/source/format0000664000000000000000000000001411352452113011673 0ustar 3.0 (quilt) debian/libopenexr-dev.dirs0000664000000000000000000000004311525534003012771 0ustar usr/share/doc/libopenexr6/examples debian/libopenexr-dev.install0000664000000000000000000000044512060632303013501 0ustar usr/include/OpenEXR/* usr/lib/*/*.a usr/lib/*/*.la usr/lib/*/*.so usr/lib/*/pkgconfig/* usr/share/aclocal/* # The libopenexr-dev package contains libopenexr6's examples: ../../IlmImfExamples/*.cpp usr/share/doc/libopenexr6/examples ../../IlmImfExamples/*.h usr/share/doc/libopenexr6/examples debian/openexr.manpages0000664000000000000000000000001611525534003012360 0ustar debian/exr*.1 debian/exrmakepreview.10000664000000000000000000000357211525534003012315 0ustar \" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH EXRMAKEPREVIEW 1 "March 31, 2004" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME exrmakepreview \- for creating preview images for OpenEXR files. .SH SYNOPSIS .B exrmakepreview .RI "[options] infile outfile" .SH DESCRIPTION This manual page documents briefly the .B exrmakepreview command. This manual page was written for the Debian distribution because the original program does not have a manual page. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBexrmakepreview\fP reads an OpenEXR image from infile, generates a preview image, adds it to the image's header, and saves the result in outfile. Note that the infile and outfile must not refer to the same file (i.e. the program cannot edit an image file "in place"). .SH OPTIONS .TP .B \-w x sets the width of the preview image to x pixels (default is 100) .TP .B \-e s adjusts the preview image's exposure by s f-stops (default is 0). Positive values make the image brighter, negative values make it darker. .TP .B \-v verbose mode .TP .B \-h prints these options .SH AUTHOR This manual page was written by Andrew Lau , for the Debian GNU/Linux system (but may be used by others). debian/libopenexr-dev.postinst0000664000000000000000000000051311525534003013715 0ustar #!/bin/sh # $Id$ # vim:ts=4:sw=4:expandtab: set -e if [ "$1" = "configure" ] then # Convert empty directory into a symlink if [ ! -L /usr/share/doc/libopenexr-dev ] then rm -rf /usr/share/doc/libopenexr-dev ln -s /usr/share/doc/libopenexr6 /usr/share/doc/libopenexr-dev fi fi #DEBHELPER# exit 0 debian/patches/0000775000000000000000000000000012253336077010627 5ustar debian/patches/CVE-2009-1720-2.diff0000664000000000000000000000460011525534334013211 0ustar Fix integer overflows in compressor constructors, CVE-2009-1720 [2/2]. --- a/IlmImf/ImfPizCompressor.cpp +++ b/IlmImf/ImfPizCompressor.cpp @@ -53,6 +53,7 @@ #include #include #include +#include namespace Imf { @@ -181,6 +182,9 @@ PizCompressor::PizCompressor _channels (hdr.channels()), _channelData (0) { + if ((unsigned) maxScanLineSize > (INT_MAX - 65536 - 8192) / (unsigned) numScanLines) + throw InputExc ("Error: maxScanLineSize * numScanLines would overflow."); + _tmpBuffer = new unsigned short [maxScanLineSize * numScanLines / 2]; _outBuffer = new char [maxScanLineSize * numScanLines + 65536 + 8192]; --- a/IlmImf/ImfPxr24Compressor.cpp +++ b/IlmImf/ImfPxr24Compressor.cpp @@ -73,6 +73,7 @@ #include #include #include +#include using namespace std; using namespace Imath; @@ -187,6 +188,9 @@ Pxr24Compressor::Pxr24Compressor (const { int maxInBytes = maxScanLineSize * numScanLines; + if ((unsigned) maxScanLineSize > INT_MAX / (unsigned) numScanLines) + throw Iex::InputExc ("Error: maxScanLineSize * numScanLines would overflow."); + _tmpBuffer = new unsigned char [maxInBytes]; _outBuffer = new char [int (ceil (maxInBytes * 1.01)) + 100]; --- a/IlmImf/ImfRleCompressor.cpp +++ b/IlmImf/ImfRleCompressor.cpp @@ -41,6 +41,7 @@ //----------------------------------------------------------------------------- #include +#include #include "Iex.h" namespace Imf { @@ -164,6 +165,9 @@ RleCompressor::RleCompressor (const Head _tmpBuffer (0), _outBuffer (0) { + if ((unsigned) maxScanLineSize > INT_MAX / 3) + throw Iex::InputExc ("Error: maxScanLineSize * 3 would overflow"); + _tmpBuffer = new char [maxScanLineSize]; _outBuffer = new char [maxScanLineSize * 3 / 2]; } --- a/IlmImf/ImfZipCompressor.cpp +++ b/IlmImf/ImfZipCompressor.cpp @@ -43,6 +43,7 @@ #include #include "Iex.h" #include +#include namespace Imf { @@ -58,6 +59,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]; debian/patches/autoconf-updates.diff0000664000000000000000000000304412253336261014736 0ustar Index: b/configure.ac =================================================================== --- a/configure.ac 2007-10-09 21:31:44.000000000 +0000 +++ b/configure.ac 2013-12-15 14:26:37.095119217 +0000 @@ -93,7 +93,7 @@ esac if test "x${large_stack}" != xno ; then - AC_DEFINE(HAVE_LARGE_STACK) + AC_DEFINE(HAVE_LARGE_STACK,1,[define for large stack support]) fi AM_COMPILELINKRUN( @@ -143,7 +143,7 @@ std::right; ], -AC_DEFINE(HAVE_COMPLETE_IOMANIP) complete_iomanip=yes) +AC_DEFINE(HAVE_COMPLETE_IOMANIP,1,[define if complete iomanip support in C++ standard library]) complete_iomanip=yes) AC_MSG_RESULT($complete_iomanip) AC_LANG_RESTORE @@ -160,10 +160,10 @@ dnl Platform-specific stuff case "$host" in *linux*) - AC_DEFINE(HAVE_LINUX_PROCFS) + AC_DEFINE(HAVE_LINUX_PROCFS,1,[define for procfs support]) ;; *darwin*) - AC_DEFINE(HAVE_DARWIN) + AC_DEFINE(HAVE_DARWIN,1,[define for dwarwin]) dnl OS X universal binary support, requires --disable-dependency-tracking AC_ARG_ENABLE(osx-universal-binaries, Index: b/m4/threads.m4 =================================================================== --- a/m4/threads.m4 2007-01-24 03:01:33.000000000 +0000 +++ b/m4/threads.m4 2013-12-15 14:27:01.125120596 +0000 @@ -280,7 +280,7 @@ # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$am_posix_sem_ok" = xyes; then - ifelse([$1],,AC_DEFINE(HAVE_POSIX_SEMAPHORES),[$1]) + ifelse([$1],,AC_DEFINE(HAVE_POSIX_SEMAPHORES,1,[define for posix semaphores]),[$1]) : else am_posix_sem_ok=no debian/patches/nonlinuxlargestack.diff0000664000000000000000000001310411775755637015412 0ustar From pino@debian.org Sat Jul 7 08:25:02 2012 Message-ID: <20120706125937.25992.73298.reportbug__33605.2071572796$1341580533$gmane$org@localhost.localdomain> From: Pino Toscano Subject: Bug#680509: openexr: FTBFS on non-linux (or when disabling large stacks) Date: Fri, 06 Jul 2012 14:59:37 +0200 Reply-To: Pino Toscano , 680509@bugs.debian.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1502726251752548908==" To: Debian Bug Tracking System X-Debian-PR-Message: report 680509 X-Debian-PR-Package: src:openexr X-Debian-PR-Keywords: patch X-Debian-PR-Source: openexr X-Mailer: reportbug 6.4 Archived-At: This is a multi-part MIME message sent by reportbug. --===============1502726251752548908== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Source: openexr Version: 1.6.1-5 Severity: serious Tags: patch Justification: fails to build from source (but built successfully in the past) Hi, most probably due to GCC 4.7, openexr does not compile when large stacks are disabled, which is done by default on any non-Linux architecture (see also configure.ac). The problem can also be seen in a recent rebuild on hurd-i386[1], or just when trying to compile it on e.g. kfreebsd; for example on kfreebsd-amd64: | g++ -DHAVE_CONFIG_H -I. -I. -I../config -I/usr/include/OpenEXR -I.. -I../config -D_FORTIFY_SOURCE=2 -pipe -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -c ImfHuf.cpp -fPIC -DPIC -o .libs/ImfHuf.o | In file included from ImfHuf.cpp:50:0: | ./ImfAutoArray.h: In instantiation of 'Imf::AutoArray::AutoArray() [with T = int; int size = 65537]': | ImfHuf.cpp:298:34: required from here | ./ImfAutoArray.h:60:39: error: 'memset' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] | In file included from /usr/include/string.h:642:0, | from ImfHuf.cpp:52: | /usr/include/x86_64-kfreebsd-gnu/bits/string3.h:77:1: note: 'void* memset(void*, int, size_t)' declared here, later in the translation unit | In file included from ImfHuf.cpp:50:0: | ./ImfAutoArray.h: In instantiation of 'Imf::AutoArray::AutoArray() [with T = long unsigned int*; int size = 65537]': | ImfHuf.cpp:299:38: required from here | ./ImfAutoArray.h:60:39: error: 'memset' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] | In file included from /usr/include/string.h:642:0, | from ImfHuf.cpp:52: | /usr/include/x86_64-kfreebsd-gnu/bits/string3.h:77:1: note: 'void* memset(void*, int, size_t)' declared here, later in the translation unit | In file included from ImfHuf.cpp:50:0: | ./ImfAutoArray.h: In instantiation of 'Imf::AutoArray::AutoArray() [with T = long unsigned int; int size = 65537]': | ImfHuf.cpp:361:36: required from here | ./ImfAutoArray.h:60:39: error: 'memset' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] | In file included from /usr/include/string.h:642:0, | from ImfHuf.cpp:52: | /usr/include/x86_64-kfreebsd-gnu/bits/string3.h:77:1: note: 'void* memset(void*, int, size_t)' declared here, later in the translation unit | In file included from ImfHuf.cpp:50:0: | ./ImfAutoArray.h: In instantiation of 'Imf::AutoArray::AutoArray() [with T = Imf::{anonymous}::HufDec; int size = 16384]': | ImfHuf.cpp:1050:37: required from here | ./ImfAutoArray.h:60:39: error: 'memset' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] | In file included from /usr/include/string.h:642:0, | from ImfHuf.cpp:52: | /usr/include/x86_64-kfreebsd-gnu/bits/string3.h:77:1: note: 'void* memset(void*, int, size_t)' declared here, later in the translation unit | make[3]: *** [ImfHuf.lo] Error 1 Attached there is a patch that fixes the issue, by including in ImfAutoArray.h only with no large stacks enabled, and making sure to call memset from the std namespace. (Note: it seems openexr 1.7.0 will no more memset() the data array in the "no large stacks" implementation.) [1] https://buildd.debian.org/status/fetch.php?pkg=openexr&arch=hurd-i386&ver=1.6.1-5%2Bb1&stamp=1337862561 Thanks, -- Pino --===============1502726251752548908== Content-Type: text/x-diff; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="non-linux.diff" --- a/IlmImf/ImfAutoArray.h +++ b/IlmImf/ImfAutoArray.h @@ -46,6 +46,10 @@ #include "OpenEXRConfig.h" +#if !defined (HAVE_LARGE_STACK) +#include +#endif + namespace Imf { @@ -57,7 +61,7 @@ { public: - AutoArray (): _data (new T [size]) {memset(_data, 0, size * sizeof(T));} + AutoArray (): _data (new T [size]) {::std::memset(_data, 0, size * sizeof(T));} ~AutoArray () {delete [] _data;} operator T * () {return _data;} --===============1502726251752548908== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Pkg-phototools-devel mailing list Pkg-phototools-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-phototools-devel --===============1502726251752548908==-- debian/patches/series0000664000000000000000000000020112253335645012035 0ustar fix_gcc4.3_ftbfs.diff CVE-2009-1720-1.diff CVE-2009-1720-2.diff CVE-2009-1721.diff nonlinuxlargestack.diff autoconf-updates.diff debian/patches/CVE-2009-1720-1.diff0000664000000000000000000000124711525534334013214 0ustar Fix integer overflow in Imf::PreviewImage::PreviewImage, CVE-2009-1720 [1/2]. --- a/IlmImf/ImfPreviewImage.cpp +++ b/IlmImf/ImfPreviewImage.cpp @@ -40,6 +40,7 @@ //----------------------------------------------------------------------------- #include +#include #include "Iex.h" namespace Imf { @@ -51,6 +52,10 @@ PreviewImage::PreviewImage (unsigned int { _width = width; _height = height; + + if ((_height && (_width > UINT_MAX / _height)) || (_width * _height > UINT_MAX / sizeof(PreviewRgba))) + throw Iex::ArgExc ("Invalid height and width."); + _pixels = new PreviewRgba [_width * _height]; if (pixels) debian/patches/fix_gcc4.3_ftbfs.diff0000664000000000000000000000055511525534003014467 0ustar --- a/exrenvmap/main.cpp +++ b/exrenvmap/main.cpp @@ -46,6 +46,8 @@ #include #include +#include + using namespace Imf; using namespace std; --- a/exrmaketiled/main.cpp +++ b/exrmaketiled/main.cpp @@ -47,6 +47,8 @@ #include #include +#include + using namespace Imf; using namespace std; debian/patches/CVE-2009-1721.diff0000664000000000000000000000057111525534334013056 0ustar Fix freeing uninitialized pointers in Imf::hufUncompress, CVE-2009-1721. --- a/IlmImf/ImfAutoArray.h +++ b/IlmImf/ImfAutoArray.h @@ -57,7 +57,7 @@ namespace Imf { { public: - AutoArray (): _data (new T [size]) {} + AutoArray (): _data (new T [size]) {memset(_data, 0, size * sizeof(T));} ~AutoArray () {delete [] _data;} operator T * () {return _data;} debian/openexr.links0000664000000000000000000000006011525534003011704 0ustar usr/share/doc/libopenexr6 usr/share/doc/openexr debian/compat0000664000000000000000000000000212060632053010363 0ustar 9 debian/changelog0000664000000000000000000002407412253336126011054 0ustar openexr (1.6.1-7ubuntu1) trusty; urgency=medium * Build using dh-autoreconf. * Update for recent autoconf/autoheader. -- Matthias Klose Sun, 15 Dec 2013 15:23:25 +0100 openexr (1.6.1-7) unstable; urgency=low * Convert to multi-arch. + Use debhelper v9 compat, bump build-dep. Drop unneeded invocation of dpkg-buildflags. + Update *.install. + Add Pre-Depends: ${misc:Pre-Depends}. + Runtime library is Multi-Arch: same, cmd-line utils Multi-Arch: foreign. -- Andreas Metzler Sat, 08 Dec 2012 14:23:33 +0100 openexr (1.6.1-6) unstable; urgency=low * nonlinuxlargestack.diff Fix FTBFS when large stacks are disabled. Bug-report, diagnosis and patch by Pino Toscano. Closes: #680509 -- Andreas Metzler Sat, 07 Jul 2012 08:58:08 +0200 openexr (1.6.1-5) unstable; urgency=low * Update package short description, openexr does not contain a viewer. Closes: #471783 * Use 3.0 (quilt) source format. * Re-enable doc-base support. At least dhelp works without problems. * Use dh $@ --with autotools_dev. Version autotools-dev b-d. * The latter three changes add support for build-arch target, fixing FTBFS. Closes: #666297 * Change override_dh_auto_test target to invoke dh_auto_test, otherwise the testsuite is run twice. (Once for build and binary). * Add myself to uploaders, remove Cyril. (Thanks for you work!) * Empty dependency_libs in libtool la file. * Fix doc-base ids. (lowercase, no underscore.) * Drop Section: graphics from binary package stanza in debian/control. * Fix typo mutiple in exrmaketiled.1. * Use 'dpkg-buildflags --export=configure' to get hardening-flags. (Thanks, Moritz Muehlenhoff). Add required b-d on dpkg-dev (>= 1.16.1). Closes: #656506 -- Andreas Metzler Sun, 01 Apr 2012 08:45:13 +0200 openexr (1.6.1-4.1) unstable; urgency=high * Non-maintainer upload by the Security Team. * Fixed CVE-2009-1720: Integer overflows in Imf::PreviewImage::PreviewImage and integer overflows in compressor constructors * Fixed CVE-2009-1721: uninitialized pointers in Imf::hufUncompress * Patch stolen from stable-security, thanks to Cyril Brulebois (Closes: #550424) -- Giuseppe Iuculano Wed, 21 Oct 2009 23:54:35 +0200 openexr (1.6.1-4) unstable; urgency=low * Adopt the package within pkg-phototools (Closes: #494877): - Thanks to Adeodato Simó et al. for having taken care of it until now! - Set Maintainer to the group. - Set Uploaders to myself. - Update Vcs-{Git,Browser}. - Remove XS-X-Collab-Maint field, no longer relevant. Patches are still welcome, though! * Switch to debhelper 7: - Bump debian/compat to 7. - Version the B-D on debhelper: >= 7.0.50 to allow the use of overrides. - Specify some overrides to tweak as needed for the build: - dh_auto_configure: pass the --with-openexr flag to configure script. - dh_auto_test: don't run “check” on arm and ia64 for now, and bypass dh_auto_test due to bad target detection. - dh_compress: no longer compress .h/.cpp examples. - dh_link: needed since libopenexr-dev's and openexr's /us/s/d directories are symlinks to libopenexr6's one. - dh_makeshlibs: keep on using -V. - dh_installdeb: add a call to dh_buildinfo to keep on storing the versions of packages installed during the build. - Specify some targets: - build and clean to handle patching/unpatching and updating/cleaning config.{guess,sub}. * Now compress PDF documentation. Any sane PDF viewer should be able to handle decompression. * Remove .gitignore file. * Add ${misc:Depends} to all binaries. * Bump Standards-Version from 3.7.3 to 3.8.1 (no changes needed). -- Cyril Brulebois Sat, 11 Apr 2009 22:00:04 +0200 openexr (1.6.1-3) unstable; urgency=medium * Disable (hopefully temporarily) the test suite on arm and ia64. -- Adeodato Simó Mon, 24 Mar 2008 23:00:21 +0100 openexr (1.6.1-2) unstable; urgency=low * Upload to unstable. * Fix FTBFS with gcc 4.3, thanks Cyril Brulebois for the patch (closes: #441573). Add quilt to Build-Depends. * Update Standards-Version to 3.7.3 (no changes needed). * Swap Maintainer and Uploaders in debian/control. * Move packaging to a git repository under collab-maint. Add a X-Collab-Maint header. -- Adeodato Simó Sun, 16 Mar 2008 15:16:05 +0100 openexr (1.6.1-1) experimental; urgency=low * New upstream release. (Closes: #405783, #437494) + New soname: rename package to libopenexr6, and drop old conflicts and replaces. + Build-depend on libilmbase-dev (Imath, Half et al. are now there). Make libopenexr-dev depend on it as well, and drop bits from description that allude to these other libraries. * The exrdisplay binary is no longer shipped by upstream in the openexr tarball (it has moved to openexr_viewers): do not install it, nor its manpage, drop build-dependencies on libfltk1.1-dev and OpenGL stuff, and README.Debian as well, since they all were only needed for this program. * Adding myself as an uploader; add VCS-Bzr header. * Do some housekeeping: + update debian/watch. + bump debian/compat to 5. + use ${binary:Version} instead of ${Source-Version}. + bump Standards-Version to 3.7.2 (no changes needed). + use a Homepage header, instead of the pseudo-header. * Run tests after building. * Drop all patches, unnecessary. -- Adeodato Simó Fri, 02 Nov 2007 22:20:53 +0100 openexr (1.2.2-4.4) unstable; urgency=low * Non-maintainer upload. * Rename libopenexr2c2a to libopenexr2ldbl for the long double transition. (Closes: #430286) -- Adeodato Simó Mon, 23 Jul 2007 16:34:02 +0200 openexr (1.2.2-4.3) unstable; urgency=medium * Non-maintainer upload. * Fix build system not to create libraries with undefined symbols. Added patch 01-libadd_to_prevent_undef_syms to properly define libImath_la_LIBADD and libIlmImf_la_LIBADD in Makefile.am. (Closes: #370193) -- Adeodato Simó Sat, 10 Jun 2006 13:36:15 +0200 openexr (1.2.2-4.2) unstable; urgency=high * Non-maintainer upload. * Add zlib1g-dev as build-dep (Closes: #356014). -- Luk Claes Mon, 27 Mar 2006 21:12:22 +0200 openexr (1.2.2-4.1) unstable; urgency=low * Non-maintainer upload. * libstdc++ allocator transition: rename libopenexr2c2 to libopenexr2c2a. (Closes: #339241) + debian/control: rename package, make it replace and conflict libopenexr2c2, update libopenexr-dev dependency. + debian/*: s/libopenexr2c2/libopenexr2c2a/g + mv debian/libopenexr2c2{,a}.install -- Adeodato Simó Sat, 26 Nov 2005 01:31:40 +0100 openexr (1.2.2-4) unstable; urgency=medium * FTBFS fix: Remove usage "ld --as-needed". (closes: #323973) -- Andrew Lau Sat, 20 Aug 2005 00:52:05 +1000 openexr (1.2.2-3) unstable; urgency=medium * C++ transition - Rename libopenexr2 to libopenexr2c2. (closes: #317520) - Patch to build with g++-4.0 + [debian/patches/00_g++-4.0_compile.patch] Thanks: Daniel Schepler (closes: #316198) * [debian/control]: - Switch depend on XFree86's xlibmesa-glu-dev to X.Org's libglu1-xorg-dev. - Debian Standards-Version: 3.6.2 * [debian/rules]: - Record compile-time dependency versions using dh_buildinfo. - Fix documentation symlinks. -- Andrew Lau Sun, 17 Jul 2005 00:57:57 +1000 openexr (1.2.2-2) unstable; urgency=low * Documentation fixes - Remove stale doc-base entries. (closes: #303226) -- Andrew Lau Mon, 9 May 2005 01:16:15 +1000 openexr (1.2.2-1) unstable; urgency=medium * New upstream release. * [debian/rules]: - Deflate dependencies via ld's --as-needed option. -- Andrew Lau Sun, 13 Mar 2005 15:47:49 +1100 openexr (1.2.1-3) unstable; urgency=low * Documentation fixes - Removed non-Linux README files. (closes: #267856) - Registered API and overview with doc-base. -- Andrew Lau Thu, 20 Jan 2005 02:53:59 +1100 openexr (1.2.1-2) unstable; urgency=medium * Correct libopenexr-dev's dependency on libopenexr0 to libopenexr2. -- Andrew Lau Tue, 17 Aug 2004 14:32:17 +1000 openexr (1.2.1-1) unstable; urgency=low * New upstream (stable) release. - SONAME bumped up to 2. libopenexr2 now replaces/conflicts with libopenexr0. -- Andrew Lau Sat, 14 Aug 2004 02:46:58 +1000 openexr (1.1.1-1) unstable; urgency=low * New upstream release. - Builds on 64-bit architectures. (closes: #239732) - Note that this is a development release and the tiled file format has changed. See the ReleaseNotes file for more details. -- Andrew Lau Wed, 31 Mar 2004 12:17:48 +1000 openexr (1.1.0-1) unstable; urgency=low * New upstream release. -- Andrew Lau Wed, 11 Feb 2004 00:58:58 +1100 openexr (1.0.7-1) unstable; urgency=low * New upstream release. -- Andrew Lau Tue, 20 Jan 2004 00:44:12 +1100 openexr (1.0.6-1) unstable; urgency=low * New upstream release. * Switch from Debhelper to Common Debian Build System. -- Andrew Lau Wed, 8 Oct 2003 02:04:38 +1000 openexr (1.0.5-2) unstable; urgency=low * Fixed FTBFS by replacing instances of FL/*.h with FL/*.H in acinclude.m4, aclocal.m4 and configure. (closes: #196708) -- Andrew Lau Sun, 22 Jun 2003 00:37:27 +1000 openexr (1.0.5-1) unstable; urgency=low * Initial Release (closes: #178317). -- Andrew Lau Thu, 22 May 2003 11:12:24 +1000 debian/control0000664000000000000000000001050312253335532010575 0ustar Source: openexr Section: graphics Priority: optional Maintainer: Debian PhotoTools Maintainers Uploaders: Andreas Metzler Build-Depends: autotools-dev (>= 20100122.1), debhelper (>= 9), dh-autoreconf, dh-buildinfo, libilmbase-dev, zlib1g-dev, dpkg-dev (>= 1.16.1) Standards-Version: 3.9.3 Homepage: http://www.openexr.com Vcs-Git: git://git.debian.org/git/pkg-phototools/openexr.git Vcs-Browser: http://git.debian.org/?p=pkg-phototools/openexr.git Package: openexr Architecture: any Multi-Arch: foreign Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: exrtools Description: command-line tools and docs for the OpenEXR image format OpenEXR is a high dynamic-range (HDR) image file format developed by Industrial Light & Magic for use in computer imaging applications. . OpenEXR's features include: * Higher dynamic range and colour precision than existing 8- and 10-bit image file formats. * Support for the "half" 16-bit floating-point pixel format. * Multiple lossless image compression algorithms. Some of the included codecs can achieve 2:1 lossless compression ratios on images with film grain. * Extensibility. New compression codecs and image types can easily be added by extending the C++ classes included in the OpenEXR software distribution. New image attributes (strings, vectors, integers, etc.) can be added to OpenEXR image headers without affecting backward compatibility with existing OpenEXR applications. . This package contains documentation for the format and the following tools: * exrheader, a utility for dumping header information. * exrstdattr, a utility for modifying OpenEXR standard attributes. * exrmaketiled, for generating tiled and rip/mipmapped images. * exrenvmap, for creating OpenEXR environment maps. * exrmakepreview, for creating preview images for OpenEXR files. Package: libopenexr-dev Section: libdevel Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: libopenexr6 (= ${binary:Version}), libilmbase-dev, ${shlibs:Depends}, ${misc:Depends} Description: development files for the OpenEXR image library OpenEXR is a high dynamic-range (HDR) image file format developed by Industrial Light & Magic for use in computer imaging applications. . OpenEXR's features include: * Higher dynamic range and colour precision than existing 8- and 10-bit image file formats. * Support for the "half" 16-bit floating-point pixel format. * Multiple lossless image compression algorithms. Some of the included codecs can achieve 2:1 lossless compression ratios on images with film grain. * Extensibility. New compression codecs and image types can easily be added by extending the C++ classes included in the OpenEXR software distribution. New image attributes (strings, vectors, integers, etc.) can be added to OpenEXR image headers without affecting backward compatibility with existing OpenEXR applications. . This package contains the header files required if you wish to compile/develop applications that use OpenEXR libraries. Package: libopenexr6 Section: libs Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: runtime files for the OpenEXR image library OpenEXR is a high dynamic-range (HDR) image file format developed by Industrial Light & Magic for use in computer imaging applications. . OpenEXR's features include: * Higher dynamic range and colour precision than existing 8- and 10-bit image file formats. * Support for the "half" 16-bit floating-point pixel format. * Multiple lossless image compression algorithms. Some of the included codecs can achieve 2:1 lossless compression ratios on images with film grain. * Extensibility. New compression codecs and image types can easily be added by extending the C++ classes included in the OpenEXR software distribution. New image attributes (strings, vectors, integers, etc.) can be added to OpenEXR image headers without affecting backward compatibility with existing OpenEXR applications. . This package contains the following shared library: * IlmImf - a library that reads and writes OpenEXR images. debian/exrenvmap.10000664000000000000000000000542511525534003011263 0ustar \" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH EXRENVMAP 1 "March 31, 2004" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME exrenvmap \- for creating OpenEXR environment maps. .SH SYNOPSIS .B exrenvmap .RI "[options] infile outfile" .SH DESCRIPTION This manual page documents briefly the .B exrenvmap command. This manual page was written for the Debian distribution because the original program does not have a manual page. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBexrenvmap\fP converts OpenEXR latitude\-longitude environment maps into cube\-face environment maps or vice versa. .SH OPTIONS .TP .B \-o produces a ONE_LEVEL output file (default) .TP .B \-m produces a MIPMAP_LEVELS output file .TP .B \-c the output file will be a cube\-face environment map (default) .TP .B \-l the output file will be a latitude\-longitude environment map .TP .B \-w x sets the width of the output image to x pixels (default is 256). The height of the output image will be x*6 pixels for a cube\-face map, or x/2 pixels for a latitude\-longitude map. .TP .B \-f r n sets the antialiasing filter radius to r (default is 1.0) and the sampling rate to n by n (default is 5 by 5). Increasing r makes the output image blurrier; decreasing r makes the image sharper but may cause aliasing. Increasing n improves antialiasing, but generating the output image takes longer. .TP .B \-t x y sets the output file's tile size to x by y pixels (default is 64 by 64) .TP .B \-p t b if the input image is a latitude\-longitude map, pad the image at the top and bottom with t*h and b*h extra scan lines, where h is the height of the input image. This is useful for images from 360\-degree panoramic scans that cover less than 180 degrees vertically. .TP .B \-d sets level size rounding to ROUND_DOWN (default) .TP .B \-u sets level size rounding to ROUND_UP .TP .B \-z x sets the data compression method to x (none/rle/zip/piz/pxr24, default is zip) .TP .B \-v verbose mode .TP .B \-h prints these options .SH AUTHOR This manual page was written by Andrew Lau , for the Debian GNU/Linux system (but may be used by others). debian/exrmaketiled.10000664000000000000000000000426411735772504011751 0ustar \" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH EXRMAKETILED 1 "March 31, 2004" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME exrmaketiled \- for generating tiled and rip/mipmapped images. .SH SYNOPSIS .B exrmaketiled .RI "[options] infile outfile" .SH DESCRIPTION This manual page documents briefly the .B exrmaketiled command. This manual page was written for the Debian distribution because the original program does not have a manual page. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBexrmaketiled\fP reads an OpenEXR image from infile, produces a tiled version of the image, and saves the result in outfile. .SH OPTIONS .TP .B \-o produces a ONE_LEVEL image (default) .TP .B \-m produces a MIPMAP_LEVELS multiresolution image .TP .B \-r produces a RIPMAP_LEVELS multiresolution image .TP .B \-f c when a MIPMAP_LEVELS or RIPMAP_LEVELS image is produced, image channel c will be resampled without low\-pass filtering. This option can be specified multiple times to disable low\-pass filtering for multiple channels. .TP .B \-t x y sets the tile size in the output image to x by y pixels (default is 64 by 64) .TP .B \-d sets level size rounding to ROUND_DOWN (default) .TP .B \-u sets level size rounding to ROUND_UP .TP .B \-z x sets the data compression method to x (none/rle/zip/piz/pxr24, default is zip) .TP .B \-v verbose mode .TP .B \-h prints these options .SH AUTHOR This manual page was written by Andrew Lau , for the Debian GNU/Linux system (but may be used by others). debian/libopenexr6.docs0000664000000000000000000000002411525534003012271 0ustar AUTHORS NEWS README debian/libopenexr6.install0000664000000000000000000000002112060632247013010 0ustar usr/lib/*/*.so.*