diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2015-09-14 12:07:22 +0200 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2015-10-08 19:46:01 +0300 |
commit | ec5fd402645fd4f03d89dcd5840b0e8542549e82 (patch) | |
tree | 436f86413a54a3a7726cd477dee86a935ec1dd70 /hw/ppc/ppc.c | |
parent | 16033ba577059c5675e4c786234c46027380c29b (diff) |
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 'hw/ppc/ppc.c')
0 files changed, 0 insertions, 0 deletions