acrn-hypervisor/misc
yuhong.tao@intel.com 9695d3bd15 tools: replace payload[0] of struct mngr_msg with an union
acrn-manager message structure has a flexible member
payload[0], that risks to out-of-boundary memory access,
and usage of uninitialized variable.
And the req/ack message pairs has various types, which
extend mngr_msg. mngr_send_msg() requires programmer cast
the type of input messages to struct mngr_msg, that is
inconvenient.
We replace payload[0] with an union, which contains all
payload data. So that type cast for mngr_send_msg() is no
longer needed. And we can avoid potential out-of-boundary
memory accessing and using of uninitialized variable

Acked-by: Yan Like <like.yan@intel.com>
Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
2018-07-19 11:08:18 +08:00
..
cbc_attach cbc: fix the install issue when do make misc-install only 2018-07-03 15:32:11 +08:00
cbc_lifecycle tools: replace payload[0] of struct mngr_msg with an union 2018-07-19 11:08:18 +08:00
Makefile misc: integrate cbc_attach service 2018-06-01 10:22:52 +08:00