summaryrefslogtreecommitdiffstats
path: root/scripts/switch-timer-api
diff options
context:
space:
mode:
authorPrasad J Pandit2018-06-13 08:16:57 +0200
committerMichael Roth2018-07-03 17:58:06 +0200
commit141b197408ab398c4f474ac1a728ab316e921f2b (patch)
tree524055e648e01ad0e02cee0c6f1d1fe855a771bb /scripts/switch-timer-api
parentqga: unset frozen state if no mount points are frozen (diff)
downloadqemu-141b197408ab398c4f474ac1a728ab316e921f2b.tar.gz
qemu-141b197408ab398c4f474ac1a728ab316e921f2b.tar.xz
qemu-141b197408ab398c4f474ac1a728ab316e921f2b.zip
qga: check bytes count read by guest-file-read
While reading file content via 'guest-file-read' command, 'qmp_guest_file_read' routine allocates buffer of count+1 bytes. It could overflow for large values of 'count'. Add check to avoid it. Reported-by: Fakhri Zulkifli <mohdfakhrizulkifli@gmail.com> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Cc: qemu-stable@nongnu.org Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions