From: Junio C Hamano Date: Thu, 26 Mar 2020 23:27:16 GMT Subject: Re: [PATCH v4 1/1] midx.c: fix an integer overflow Message-ID: In-Reply-To: <20200326213534.399377-1-damien.olivier.robert+git@gmail.com> Damien Robert writes: > When verifying a midx index with 0 objects, the > m->num_objects - 1 > overflows to 4294967295. I think this is underflow & wraparound, but I'll let it pass ;-) The patch looks good; will queue. Thanks.