commit 8d98bcfbe89f15be150c562a2a8b715e456bd7e9 from: Stefan Sperling date: Mon Apr 02 13:40:46 2018 UTC mark imsg structs which contain got_object_id as __packed__ commit - 48f392b24cd93cef9f59e3365da6e437c46f063e commit + 8d98bcfbe89f15be150c562a2a8b715e456bd7e9 blob - 061e48dc0890aee15864b7360bdd36e1a3024ee8 blob + 6d63ebb91c50c2546f2d4eb884fd64576ee1f28e --- lib/got_lib_privsep.h +++ lib/got_lib_privsep.h @@ -114,7 +114,7 @@ struct got_imsg_object { struct got_object_id id; int ndeltas; /* this many GOT_IMSG_DELTA messages follow */ -}; +} __attribute__((__packed__)); /* Structure for GOT_IMSG_LOOSE_OBJECT_HEADER_REPLY data. */ struct got_imsg_loose_object_header_reply { @@ -154,7 +154,7 @@ struct got_imsg_tree_entry { struct got_object_id id; mode_t mode; /* Followed by entry's name in remaining data of imsg buffer. */ -}; +} __attribute__((__packed__)); /* Structure for transmitting struct got_tree_object data in an imsg. */ struct got_imsg_tree_object {