Mark Cave-Ayland 366d4f7e00 cg3: add extra check to prevent CG3 register array overflow
The case statements in the CG3 read and write register routines have a maximum
value of CG3_REG_SIZE, so if a value were written to this offset then it
would overflow the register array.

Currently this cannot be exploited since the MemoryRegion restricts accesses
to the range 0 ... CG3_REG_SIZE - 1, but it seems worth clarifying this for
future review and/or static analysis.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
CC: Paolo Bonzini <pbonzini@redhat.com>
2014-06-05 20:51:30 +01:00
..
2014-05-28 17:36:21 +02:00
2014-05-28 17:36:21 +02:00
2014-05-28 17:36:21 +02:00
2014-05-30 13:10:07 -06:00
2014-05-26 10:41:22 +04:00
2014-05-28 17:36:21 +02:00
2014-06-02 16:38:09 +02:00