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
..
2018-01-08 11:18:23 +01:00
2018-01-19 11:18:51 -02:00
2018-01-16 14:54:52 +01:00
2018-01-11 22:03:50 +02:00
2018-01-19 11:18:51 -02:00
2017-12-18 17:07:02 +03:00
2018-01-18 21:52:37 +02:00
2017-08-01 17:27:33 +02:00
2018-01-16 14:54:52 +01:00
2018-01-19 11:18:51 -02:00
2017-12-18 17:07:02 +03:00
2017-10-27 16:03:54 +02:00
2018-01-16 15:45:15 +00:00
2018-01-16 14:54:52 +01:00
2017-09-21 16:34:27 +01:00
2018-01-16 15:45:15 +00:00
2018-01-19 11:18:51 -02:00
2018-01-10 12:53:00 +11:00
2017-12-21 20:11:28 +01:00
2018-01-16 13:28:09 +00:00
2017-10-15 05:54:43 +03:00
2017-12-18 17:07:02 +03:00
2018-01-11 22:03:50 +02:00
2017-10-27 16:03:54 +02:00
2017-10-27 16:03:54 +02:00
2018-01-19 11:18:51 -02:00
2017-07-14 17:59:42 +01:00
2018-01-11 22:03:50 +02:00
2018-01-16 14:54:52 +01:00
2017-12-21 09:30:31 +01:00
2018-01-16 15:45:15 +00:00
2017-12-18 17:07:02 +03:00
2018-01-19 11:18:51 -02:00
2017-10-27 16:03:54 +02:00
2018-01-18 21:52:38 +02:00
2018-01-18 21:52:38 +02:00
2018-01-11 22:03:50 +02:00
2018-01-19 11:18:51 -02:00
2018-01-19 11:18:51 -02:00
2018-01-16 15:45:15 +00:00
2018-01-16 13:28:21 +00:00
2017-12-05 19:13:45 +02:00
2018-01-11 22:03:50 +02:00
2018-01-09 21:48:20 +00:00
2018-01-09 21:48:20 +00:00
2018-01-16 14:54:52 +01:00
2018-01-16 14:54:52 +01:00
2018-01-16 14:54:52 +01:00
2017-10-27 16:04:27 +02:00
2017-12-18 17:07:02 +03:00
2018-01-11 22:03:50 +02:00
2018-01-11 22:03:50 +02:00
2018-01-18 21:52:39 +02:00
2017-12-18 17:07:03 +03:00
2018-01-19 11:18:51 -02:00
2017-07-07 11:10:03 -07:00
2017-10-27 16:04:27 +02:00
2017-08-30 18:23:25 +02:00