diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2015-06-29 16:41:14 -0400 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2015-09-10 16:47:09 +0000 |
commit | 5b4dd0f55ed3027557ed9a6fd89d5aa379122feb (patch) | |
tree | b8dc999483223e499693a5c732f878534db49916 /qemu-char.c | |
parent | 2e87512eccf3c5e40f3142ff5a763f4f850839f4 (diff) | |
download | hqemu-5b4dd0f55ed3027557ed9a6fd89d5aa379122feb.zip hqemu-5b4dd0f55ed3027557ed9a6fd89d5aa379122feb.tar.gz |
xen/pt: Check if reg->init function sets the 'data' past the reg->size
It should never happen, but in case it does (an developer adds
a new register and the 'init_val' expands past the register
size) we want to report. The code will only write up to
reg->size so there is no runtime danger of the register spilling
across other ones - however to catch this sort of thing
we still return an error.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'qemu-char.c')
0 files changed, 0 insertions, 0 deletions