the program crashes when it read some of the OpenEXR format images (Bug #864)


Added by Yasuhiro Yoshimura about 14 years ago. Updated almost 13 years ago.


Status:Cancelled Start date:
Priority:Normal Due date:
Assignee:Andrey Kamaev % Done:

0%

Category:highgui-images
Target version:2.4.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

[Summary]
I enabled "WITH_OPENEXR" flag in CMake.
And, I make OpenCV library using Visual Studio.
But, the program crashes when it read some of the OpenEXR format images.

[Reproduction environment]
OS:
Windows7 Win32
IDE:
Visual Studio 2010
OpenCV:
OpenCV 2.2
OpenEXR:
openexr-1.7.0
ilmbase-1.0.2
zlib-1.2.5

OpenEXR images
openexr-images-1.7.0\TestImages\SquaresSwirls.exr
http://www.openexr.com/downloads.html

[Sample code]
IplImage *img = cvLoadImage("SquaresSwirls.exr", CV_LOAD_IMAGE_COLOR);

[Call sequence]
--------------------------------[OpenCV]
cvLoadImage()
cv::imread()
ExrDecoder::readData()
--------------------------------[OpenEXR]
FrameBuffer::insert() <====== Crash occur!


openexr.png (72.1 kB) Andrey Kamaev, 2012-04-02 09:25 pm


Associated revisions

Revision 9cce8ca4
Added by Vadim Pisarevsky almost 12 years ago

Merge pull request #864 from pengx17:2.4_stereobm

History

Updated by Alexander Shishkov about 13 years ago

  • Description changed from [Summary] I enabled "WITH_OPENEXR" flag in CMake. And, I make [[Ope... to [Summary] I enabled "WITH_OPENEXR" flag in CMake. And, I make OpenC... More

Updated by Alexander Shishkov almost 13 years ago

  • Priority changed from High to Normal
  • Target version deleted ()

Updated by Andrey Kamaev almost 13 years ago

  • Assignee set to Andrey Kamaev

Updated by Andrey Kamaev almost 13 years ago

It seems that problem is already fixed. The most recent version works fine for me

1Mat img = imread("SquaresSwirls.exr");
2Mat smaller;
3resize(img, smaller, Size(), 0.5, 0.5);
4imshow(imagename, smaller);
5waitKey();

My environment:

Windows7 Win64 (tried both 32-bit and 64-bit builds)
Visual Studio 2010
OpenCV 2.4.0-beta
openexr-1.7.0
ilmbase-1.0.2
zlib-1.2.6

Result:

  • Status changed from Open to Cancelled
  • Target version set to 2.4.0
  • File openexr.png added

Also available in: Atom PDF