Less than 8 bytes at end of file indicates corruption.  #187
Merge branch 'issue187' into devel