diff options
author | Fam Zheng <famz@redhat.com> | 2014-03-26 13:05:40 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-04-01 14:19:09 +0200 |
commit | 6d4b9e55fc625514a38d27cff4b9933f617fa7dc (patch) | |
tree | e7f1b23bca541fb54755d26e8477dad3e2c78dce /bt-vhci.c | |
parent | 1d7678dec4761acdc43439da6ceda41a703ba1a6 (diff) | |
download | qemu-6d4b9e55fc625514a38d27cff4b9933f617fa7dc.zip qemu-6d4b9e55fc625514a38d27cff4b9933f617fa7dc.tar.gz qemu-6d4b9e55fc625514a38d27cff4b9933f617fa7dc.tar.bz2 |
curl: check data size before memcpy to local buffer. (CVE-2014-0144)
curl_read_cb is callback function for libcurl when data arrives. The
data size passed in here is not guaranteed to be within the range of
request we submitted, so we may overflow the guest IO buffer. Check the
real size we have before memcpy to buffer to avoid overflow.
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'bt-vhci.c')
0 files changed, 0 insertions, 0 deletions