Make DCR decoder respect "uncorrectedRawValues", and cast bitbuf to uint32 to avoid warning, and since we are only interested in at most 16 bytes we can cast early.
MEF: Use actual file size as limit for decoding, and set an (nonfatal) error, if the file size is smaller than given count.
Find image by searching for CFAPATTERN entry, which should be more reliable. Also fixes crash if data.size() == 2.
ERF: Use actual file size for setting the size (avoids crash on truncated files)
Fix size calculation when there is control bytes.
Give soft error message on truncated files.
KDC: Check if we actually get a size.
DCR: Give actual file size to decoder, and return partial image if an IO error occurs.