commit 1a69d37faef36a64fd4252e75b9149b2b453752d from: Omar Polo date: Sat Jun 18 16:17:45 2022 UTC zero the whole struct got_imsg_object before sending it otherwise some fields may be unitialized and fail the validation done on the receiving side. ok stsp@ commit - b4998ee22e6c4f0556359a5177852e33f021184d commit + 1a69d37faef36a64fd4252e75b9149b2b453752d blob - 9f5f6eca6eee4371542d386c8da0e763f8bcc98a blob + 2d5319f731933605f168211ff0d2be2f135b57b2 --- lib/privsep.c +++ lib/privsep.c @@ -530,6 +530,8 @@ const struct got_error * got_privsep_send_obj(struct imsgbuf *ibuf, struct got_object *obj) { struct got_imsg_object iobj; + + memset(&iobj, 0, sizeof(iobj)); memcpy(iobj.id, obj->id.sha1, sizeof(iobj.id)); iobj.type = obj->type;