Zip Reader: Avoid undefined behaviour when reading short files
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 4 Oct 2015 20:54:48 +0000 (22:54 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 4 Oct 2015 20:54:48 +0000 (22:54 +0200)
commit0abb2b391927d3d4d5ce861f0c21b36a2fe94a2d
tree2ec9d96b98d633e4108866660099c69aa00e2c8f
parentb99f8bbb318e191f863d5579034ce87dd254d40f
Zip Reader: Avoid undefined behaviour when reading short files

The zip reader makes many calls to fread.  However the return value was not checked.  This could
have had undefined consequences when reading short files.  This change checks all calls to fread.
src/libpspp/zip-reader.c