summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authorPaolo Bonzini2015-09-14 12:07:22 +0200
committerMichael Tokarev2015-10-08 18:46:01 +0200
commitec5fd402645fd4f03d89dcd5840b0e8542549e82 (patch)
tree436f86413a54a3a7726cd477dee86a935ec1dd70 /linux-user
parentpci-assign: do not include sys/io.h (diff)
downloadqemu-ec5fd402645fd4f03d89dcd5840b0e8542549e82.tar.gz
qemu-ec5fd402645fd4f03d89dcd5840b0e8542549e82.tar.xz
qemu-ec5fd402645fd4f03d89dcd5840b0e8542549e82.zip
pc: check for underflow in load_linux
If (setup_size+1)*512 is small enough, kernel_size -= setup_size can allocate a huge amount of memory. Avoid that. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions