Bulletproof against malformed hunk headers