I have included openexr source code (downloaded from http://www.openexr.com/downloads.html) to decode openexr images in my project.
I have built my project for 64-bit (on mac as well as on windows) and trying to open following file: https://github.com/openexr/openexr-images/blob/master/ScanLines/Blobbies.exr
It crashes inside openexr source while opening this openexr file.
rgbaFile = new Imf::RgbaInputFile("Blobbies.exr");
rgbaFile->setFrameBuffer(pixel - datawindow.min.x - (y * exrDimension.mWidth), 1, mWidth);
rgbaFile->readPixels(datawindow.min.y, datawindow.max.y);
This file has data window (-20,-20) to (1020,1020) and display window (0,0) to (999,999).
I am able to open it properly when trying on 32-bit build of my project.