LibRaw::open_file() never returns

I've been sent some CR3 files that were reported as causing my application to freeze.

The problem appears to be that open_file() never returns and just sits there eating CPU.

These same files also cause Windows Explorer to freeze for a number of seconds and then Explorer closes and restarts (maybe they're using LibRaw internally to the raw file codec).

I've placed a zip file containing the bad files on Dropbox:

https://www.dropbox.com/s/oph39pbicm5jxjb/Bad.zip?dl=1

Thanks
David

Forums: 

Thank you for the samples.

Thank you for the samples.
Current (github) LibRaw/master rejects these files.

Most likely, the fix is implemented by this commit: https://github.com/LibRaw/LibRaw/commit/cfb66cb2372b373961321cb7ebeae733...
Prior to this fix (i.e. LibRaw 0.20 release), CR3 parse may loop infinite on truncated files.

(we'll release 0.20.1 soon with this fix and couple of other fixes)

-- Alex Tutubalin @LibRaw LLC

Thank you. By soon do you

Thank you. By soon do you mean 1-2 days, or weeks? If the latter I'll pull the latest updates from git.

Thanks again
David

David Partridge

Definitely not 1-2 days,

Definitely not 1-2 days, because we have some not fixed (yet) bugs.

Most likely one week or so.

-- Alex Tutubalin @LibRaw LLC