summaryrefslogtreecommitdiffstats
path: root/hw/misc/zynq-xadc.c
diff options
context:
space:
mode:
authorMarcel Apfelbaum2018-01-08 22:50:07 +0100
committerEduardo Habkost2018-01-19 14:18:51 +0100
commitd6b6abc51dda79a97f2c7bd6652c1940c068f1ec (patch)
treebbd0e7a39efd262c9196edea6d75a88d47557d8a /hw/misc/zynq-xadc.c
parentpossible_cpus: add CPUArchId::type field (diff)
downloadqemu-d6b6abc51dda79a97f2c7bd6652c1940c068f1ec.tar.gz
qemu-d6b6abc51dda79a97f2c7bd6652c1940c068f1ec.tar.xz
qemu-d6b6abc51dda79a97f2c7bd6652c1940c068f1ec.zip
fw_cfg: fix memory corruption when all fw_cfg slots are used
When all the fw_cfg slots are used, a write is made outside the bounds of the fw_cfg files array as part of the sort algorithm. Fix it by avoiding an unnecessary array element move. Fix also an assert while at it. Signed-off-by: Marcel Apfelbaum <marcel@redhat.com> Message-Id: <20180108215007.46471-1-marcel@redhat.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/misc/zynq-xadc.c')
0 files changed, 0 insertions, 0 deletions