From: "Todd C. Miller" Subject: Re: skip large offsets in small pack files To: Stefan Sperling Cc: gameoftrees@openbsd.org Date: Wed, 14 Jul 2021 16:30:15 -0600 On Wed, 14 Jul 2021 12:22:52 +0200, Stefan Sperling wrote: > Don't scan pack index offsets for large values in pack files < 2GB. > > This saves an iteration over the entire h->offsets array when opening > a pack index which should not contain large offsets in the first place. Looks good to me. OK millert@ - todd