]> git.proxmox.com Git - qemu.git/commit - hw/ide/core.c
ide: Fix crash with too long PRD
authorKevin Wolf <kwolf@redhat.com>
Tue, 20 Nov 2012 16:27:43 +0000 (17:27 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 21 Nov 2012 08:47:34 +0000 (09:47 +0100)
commit038268e2e8087ee2fd8987a77ba580e15f14c147
treef1855ce378d6a0045f3135cfa3deaab7106e6130
parent08448d5195aeff49bf25fb62b4a6218f079f5284
ide: Fix crash with too long PRD

Without this, s->nsector can become negative and badness happens (trying
to malloc huge amount of memory and glib calls abort())

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/ide/core.c