commit | ec5fd402645fd4f03d89dcd5840b0e8542549e82 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Mon Sep 14 12:07:22 2015 +0200 |
committer | Michael Tokarev <mjt@tls.msk.ru> | Thu Oct 08 19:46:01 2015 +0300 |
tree | 436f86413a54a3a7726cd477dee86a935ec1dd70 | |
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>