The entry's length comes from the file: a damaged or hostile one claiming 1 GB had it reserved before a byte was unpacked.