qemu-e2k/hw/nvram
Marcel Apfelbaum d6b6abc51d 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>
2018-01-19 11:18:51 -02:00
..
chrp_nvram.c
ds1225y.c mips: fix potential fopen(NULL,...) 2018-01-16 14:54:50 +01:00
eeprom93xx.c
eeprom_at24c.c
fw_cfg.c fw_cfg: fix memory corruption when all fw_cfg slots are used 2018-01-19 11:18:51 -02:00
mac_nvram.c
Makefile.objs
spapr_nvram.c
trace-events