commit fcde04d9acbe8328a5e476c6d1391b563ea14783 from: Stefan Sperling date: Mon May 13 15:26:18 2019 UTC another malloc failure check in collect_commit_msg() commit - 793c30b5d7b2959c83174499b64578dde045f9ee commit + fcde04d9acbe8328a5e476c6d1391b563ea14783 blob - be07889760fc4487623d8280255a27183820436b blob + 4c2767362fea3ae40ca365afe2f55d00022e05a3 --- got/got.c +++ got/got.c @@ -2243,6 +2243,10 @@ collect_commit_logmsg(struct got_pathlist_head *commit /* remove comments */ *logmsg = malloc(st2.st_size + 1); + if (*logmsg == NULL) { + err = got_error_prefix_errno("malloc"); + goto done; + } len = 0; fp = fopen(tmpfile, "r");