gvdb-reader: refuse to open file with small header

Clean up the logic for dealing with invalid headers and include the case
where the file is too small to contain a fully-formed header.
1 file changed