aboutsummaryrefslogtreecommitdiff
path: root/include/qemu/sockets.h
diff options
context:
space:
mode:
authorPrasad J Pandit <pjp@fedoraproject.org>2016-06-08 16:07:04 +0530
committerJason Wang <jasowang@redhat.com>2016-06-28 10:13:57 +0800
commitd88d3a093898bd1dc0898c7c87b0d3f555a24a6e (patch)
tree51445f4200a6ffffae73ac95d5801d17dfbd2abd /include/qemu/sockets.h
parentca1ee3d6b546e841a1b9db413eb8fa09f13a061b (diff)
downloadqemu-d88d3a093898bd1dc0898c7c87b0d3f555a24a6e.zip
qemu-d88d3a093898bd1dc0898c7c87b0d3f555a24a6e.tar.gz
qemu-d88d3a093898bd1dc0898c7c87b0d3f555a24a6e.tar.bz2
net: mipsnet: check transmit buffer size before sending
When processing MIPSnet I/O port write operation, it uses a transmit buffer tx_buffer[MAX_ETH_FRAME_SIZE=1514]. Two indices 's->tx_written' and 's->tx_count' are used to control data written to this buffer. If the two were to be equal before writing, it'd lead to an OOB write access beyond tx_buffer. Add check to avoid it. Reported-by: Li Qiang <qiang6-s@360.cn> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include/qemu/sockets.h')
0 files changed, 0 insertions, 0 deletions