acrn-hypervisor/tools
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
..
acrn-crashlog doc: use code-block:: none for command examples 2018-07-18 09:31:29 -07:00
acrn-manager tools: replace payload[0] of struct mngr_msg with an union 2018-07-19 11:08:18 +08:00
acrnbridge acrn-bridge: improve systemd network units 2018-07-09 11:49:30 +08:00
acrnlog tools: acrnlog: Deprecate binary "rm" and "mkdir" with GPLv3+ 2018-07-10 12:51:59 +08:00
acrntrace tools: acrntrace: Fix wrong event id in vmexit_analyze.py 2018-07-11 09:24:44 +08:00
Makefile add acrnbridge-install to Makefile install target 2018-06-20 11:27:24 +08:00