Some Leica DNGs fail to read (corrupt JPEG embeds)
Affected version: 2.6.0 (installed/built from gentoo portage)
19:21 <LebedevRI> progo: hm, i see why simply padding didn't work. the jpeg blob, after the image, ends with some marker "0x4c", instead of 0xd9 (M_EOI, end of image). i'm guessing dcraw just aborts after decoding the image, does not even look for the next marker
LebedevRI also noted that the bug is identical with this one: https://github.com/darktable-org/rawspeed/issues/144
Because this is not consistent behavior (after having shot & read 1100+ DNGs, these two are the only problematic files so far), card failure is not entirely ruled out.
Attached: two bad ones and one good one for comparison. Also the debug log.