commit ffe3518f1b3ac78ceeac8b605cb0eec2006bae67 from: Stefan Sperling date: Tue Jun 14 18:50:43 2022 UTC fix wrong arguments to calloc(3) in enumeration_request() commit - b4b1b9c0333d1aedca89dd35c4e60ac8684cddac commit + ffe3518f1b3ac78ceeac8b605cb0eec2006bae67 blob - 17f1fc1cc94a1d35ab873bd4b25914da0d483828 blob + b44da731e3f97a02e260e506da2bb6f539a82c8d --- libexec/got-read-pack/got-read-pack.c +++ libexec/got-read-pack/got-read-pack.c @@ -1374,7 +1374,7 @@ enumeration_request(struct imsg *imsg, struct imsgbuf STAILQ_INIT(&commit_ids); - trees = calloc(1, nalloc); + trees = calloc(nalloc, sizeof(*trees)); if (trees == NULL) return got_error_from_errno("calloc");