]> Git Repo - qemu.git/commit
cadence_uart: Fix buffer overflow
authorStefan Weil <[email protected]>
Sat, 1 Sep 2012 09:12:23 +0000 (11:12 +0200)
committerStefan Hajnoczi <[email protected]>
Sun, 23 Sep 2012 06:11:28 +0000 (07:11 +0100)
commit5d40097fc09fe5d34cf316a411dc27d455ac2cd0
tree0b69da57b9db89538f97491d658151ff37f2b17f
parent39b384591fda27d6e1213cea0b11b1ebe0ed4b74
cadence_uart: Fix buffer overflow

Report from smatch:
hw/cadence_uart.c:413 uart_read(13) error: buffer overflow 's->r' 18 <= 18

This fixes read access to s->r[R_MAX] which is behind the limits of s->r.

Signed-off-by: Stefan Weil <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
hw/cadence_uart.c
This page took 0.026032 seconds and 4 git commands to generate.