enforce non-negative size in gzip parser