Added checking to detect unexpected file sizes for ROM image files.

This can happen if the file was transferred or unpacked incorrectly and in the process tried to convert line endings rather than passing the file's contents unmodified.
1 file changed