Skip to content
Commit 96d90d32 authored by Stefan Weil's avatar Stefan Weil Committed by Michael Roth
Browse files

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: default avatarStefan Weil <sw@weilnetz.de>
Signed-off-by: default avatarStefan Hajnoczi <stefanha@gmail.com>
(cherry picked from commit 5d40097f)

Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent 3c980e22
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment