"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
"Todd C. Miller" <Todd.Miller@sudo.ws>
Subject:
Re: skip large offsets in small pack files
To:
Stefan Sperling <stsp@stsp.name>
Cc:
gameoftrees@openbsd.org
Date:
Wed, 14 Jul 2021 16:30:15 -0600

Download raw body.

Thread
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