commit ae23ce34e8072d9add04d0182d11c532443e70e8 from: Stefan Sperling date: Thu Jul 01 14:57:10 2021 UTC fix inverted check guarding recallocarray() calls in get_reflist_object_ids() commit - 372b6d8e5b983bf61c5f30a021ded616fda535c8 commit + ae23ce34e8072d9add04d0182d11c532443e70e8 blob - 4716cfcf122f77e9fd2a6fcab5200baee538d1f7 blob + a4af1c4099e0f496d253d2ae12845c1dc18fa809 --- lib/repository_admin.c +++ lib/repository_admin.c @@ -101,7 +101,7 @@ get_reflist_object_ids(struct got_object_id ***ids, in } } - if (nalloc >= *nobjects) { + if (nalloc <= *nobjects) { struct got_object_id **new; new = recallocarray(*ids, nalloc, nalloc + alloc_chunksz,