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 vmstate: error hint for failed equal checks 2017-06-28 11:18:44 +02:00
eeprom_at24c.c nvram: add AT24Cx i2c eeprom 2017-12-15 09:49:23 +11:00
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 migration: consolidate VMStateField.start 2017-02-13 17:27:13 +00:00
Makefile.objs nvram: add AT24Cx i2c eeprom 2017-12-15 09:49:23 +11:00
spapr_nvram.c hw/nvram/spapr_nvram: Device can not be created by the users 2017-09-08 09:30:55 +10:00
trace-events trace-events: fix code style: print 0x before hex numbers 2017-08-01 12:13:07 +01:00