crash decoding SIGMA DP1 .X3F image

The application I am working on (Luminance HDR) crashes trying to decode a RAW image from SIGMA DP1 camera (file extension .X3F).

Library version is LibRaw-0.12.0-Beta4 with LibRaw-demosaic-pack-GPL2-0.12.0-Beta4

Here is the gdb output:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffeab37710 (LWP 21659)]
LibRaw::foveon_interpolate (this=0x7fffeab09ad0) at ../LibRaw-demosaic-pack-GPL2-0.12.0-Beta4/dcraw_foveon.c:389
389 FORC3 ddft[i+1]

[1] += (short) image[row*width+col][c];
Hope this can help you
Franco Comida (Luminance HDR developer)


Yes, DP1 images are

Yes, DP1 images are unsupported.

I'm unable to reproduce crash, could you please make your problematic image available somewhere via file sharing service(s) like megaupload or rapidshare?

-- Alex Tutubalin @LibRaw LLC