]> Git Repo - qemu.git/commit - hw/intc/openpic.c
openpic: add some bounds checking for IRQ numbers
authorScott Wood <[email protected]>
Fri, 21 Dec 2012 16:15:50 +0000 (16:15 +0000)
committerAlexander Graf <[email protected]>
Mon, 7 Jan 2013 16:37:10 +0000 (17:37 +0100)
commit65b9d0d5659687ebb85b1305ac70b3a84df16e5a
treeb596c249dc9644aa357ca90473fb12c22ef8db71
parente69a17f65e9f12f33c48b04a789e49d40a8993f5
openpic: add some bounds checking for IRQ numbers

The two checks with abort() guard against potential QEMU-internal
problems, but the EOI check stops the guest from causing updates to queue
position -1 and other havoc if it writes EOI with no interrupt in
service.

Signed-off-by: Scott Wood <[email protected]>
[agraf: remove hunk in code that didn't get applied yet]
Signed-off-by: Alexander Graf <[email protected]>
hw/openpic.c
This page took 0.0225880000000001 seconds and 4 git commands to generate.