summaryrefslogtreecommitdiffstats
path: root/device-hotplug.c
diff options
context:
space:
mode:
authorPetr Matousek <pmatouse@redhat.com>2014-10-27 12:41:44 +0100
committerGerd Hoffmann <kraxel@redhat.com>2014-10-28 11:51:04 +0100
commite6908bfe8e07f2b452e78e677da1b45b1c0f6829 (patch)
tree0afb5e0d8482271421d00a28574f15dd0066a664 /device-hotplug.c
parent3e9418e160cd8901c83a3c88967158084f5b5c03 (diff)
downloadhqemu-e6908bfe8e07f2b452e78e677da1b45b1c0f6829.zip
hqemu-e6908bfe8e07f2b452e78e677da1b45b1c0f6829.tar.gz
vnc: sanitize bits_per_pixel from the client
bits_per_pixel that are less than 8 could result in accessing non-initialized buffers later in the code due to the expectation that bytes_per_pixel value that is used to initialize these buffers is never zero. To fix this check that bits_per_pixel from the client is one of the values that the rfb protocol specification allows. This is CVE-2014-7815. Signed-off-by: Petr Matousek <pmatouse@redhat.com> [ kraxel: apply codestyle fix ] Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'device-hotplug.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud