summaryrefslogtreecommitdiffstats
path: root/hw/pci-host/uninorth.c
diff options
context:
space:
mode:
authorAlex Chen2020-12-03 14:50:43 +0100
committerStefan Hajnoczi2021-01-04 12:13:39 +0100
commit593621f36b716eb091c4ec791db72dd4461789da (patch)
tree13d7ce0d638b9e9f578c3192dbde7cd9002ea87b /hw/pci-host/uninorth.c
parentMerge remote-tracking branch 'remotes/ehabkost-gl/tags/machine-next-pull-requ... (diff)
downloadqemu-593621f36b716eb091c4ec791db72dd4461789da.tar.gz
qemu-593621f36b716eb091c4ec791db72dd4461789da.tar.xz
qemu-593621f36b716eb091c4ec791db72dd4461789da.zip
readline: Fix possible array index out of bounds in readline_hist_add()
When the 'cmdline' is the last entry in 'rs->history' array, there is no need to put this entry to the end of the array, partly because it is the last entry, and partly because the next operition will lead to array index out of bounds. Reported-by: Euler Robot <euler.robot@huawei.com> Signed-off-by: Alex Chen <alex.chen@huawei.com> Message-id: 20201203135043.117072-1-alex.chen@huawei.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/pci-host/uninorth.c')
0 files changed, 0 insertions, 0 deletions