diff options
author | David S. Ahern <daahern@cisco.com> | 2010-02-03 09:00:54 -0700 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-02-10 12:45:11 -0600 |
commit | 4ab4183d766f10f9fc35cd9ef4acee39f241986f (patch) | |
tree | fe08cdf3b851f07c72eb46146e63cfebed1984cd /linux-aio.c | |
parent | 8e65b7c04965c8355e4ce43211582b6b83054e3d (diff) | |
download | hqemu-4ab4183d766f10f9fc35cd9ef4acee39f241986f.zip hqemu-4ab4183d766f10f9fc35cd9ef4acee39f241986f.tar.gz |
segfault due to buffer overrun in usb-serial
This fixes a segfault due to buffer overrun in the usb-serial device.
The memcpy was incrementing the start location by recv_used yet, the
computation of first_size (how much to write at the end of the buffer
before wrapping to the front) was not accounting for it. This causes the
next element after the receive buffer (recv_ptr) to get overwritten with
random data.
Signed-off-by: David Ahern <daahern@cisco.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'linux-aio.c')
0 files changed, 0 insertions, 0 deletions