LibRaw 1.60 in Debian wrong treat PEF from Pentax K-3

Hi,

LibRaw 1.60.0 from libraw10 package in Debian Stable (and 1.60.2 in Debian Untable) returns input/output error:

---
egor@shutter:~$ ls -l tmp/raw/
итого 29324
-rw-r--r-- 1 egor egor 30026357 авг 15 15:10 IMGP3859.PEF
egor@shutter:~$ /usr/lib/libraw/simple_dcraw -v -4 -T tmp/raw/IMGP3859.PEF
Processing file tmp/raw/IMGP3859.PEF
tmp/raw/IMGP3859.PEF: data corrupted at 160143
Cannot unpack tmp/raw/IMGP3859.PEF: Input/output error
egor@shutter:~$
---

dcraw (and ufraw, rawtherapee) works fine:

---
egor@shutter:~$ dcraw -v -4 -T tmp/raw/IMGP3859.PEF
Loading Pentax K-3 image from tmp/raw/IMGP3859.PEF ...
Scaling with darkness 0, saturation 16383, and
multipliers 2.559937 1.000000 1.321476 1.000000
AHD interpolation...
Converting to sRGB colorspace...
Writing data to tmp/raw/IMGP3859.tiff ...
egor@shutter:~$ ls -l tmp/raw/
итого 172024
-rw-r--r-- 1 egor egor 30026357 авг 15 15:10 IMGP3859.PEF
-rw-r--r-- 1 egor egor 146121532 сен 16 15:17 IMGP3859.tiff
egor@shutter:~$ dcraw | grep ^Raw
Raw photo decoder "dcraw" v9.21
egor@shutter:~$
---

Who is guilty?

P.S. But PEF from Pentax K-10 treating is fine.

Forums: 

Could you please upload

Could you please upload sample file somewhere (dropbox, etc) and share the link.

-- Alex Tutubalin

Thanks.

Thanks.

LibRaw 0.17 works fine with these files, so switch to actual release

(I'll not inspect LibRaw 0.16 for this problem, because 0.16 branch will receive only critical security bugfixes).

-- Alex Tutubalin

It's problem in LibRaw 1.60

egor@shutter:~/src/libraw/LibRaw-0.16.2/bin$ ./simple_dcraw -v -4 -T ~/tmp/raw/IMGP3859.PEF
Processing file /home/egor/tmp/raw/IMGP3859.PEF
/home/egor/tmp/raw/IMGP3859.PEF: data corrupted at 160143
Cannot unpack /home/egor/tmp/raw/IMGP3859.PEF: Input/output error
egor@shutter:~/src/libraw/LibRaw-0.16.2/bin$ cd ../../LibRaw-0.17.0/bin/
egor@shutter:~/src/libraw/LibRaw-0.17.0/bin$ ./simple_dcraw -v -4 -T ~/tmp/raw/IMGP3859.PEF
Processing file /home/egor/tmp/raw/IMGP3859.PEF
Writing file /home/egor/tmp/raw/IMGP3859.PEF.tiff
egor@shutter:~/src/libraw/LibRaw-0.17.0/bin$