Kevin Wolf
3dfa23b9ef
vvfat: Fix array_remove_slice()
...
array_remove_slice() calls array_roll() with array->next - 1 as the
destination index. This is only correct for count == 1, otherwise we're
writing past the end of the array. array->next - count would be correct.
However, this is the only place ever calling array_roll(), so this
rather complicated operation isn't even necessary.
Fix the problem and simplify the code by replacing it with a single
memmove() call. array_roll() can now be removed.
Reported-by: Nathan Huckleberry <nhuck15@gmail.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200623175534.38286-3-kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2020-07-03 09:37:03 +02:00
..
2020-05-19 10:32:14 -05:00
2019-10-10 10:56:18 +02:00
2019-10-10 10:56:17 +02:00
2020-05-18 19:05:25 +02:00
2019-10-10 10:56:18 +02:00
2020-05-08 13:26:35 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2019-09-13 12:18:37 +02:00
2020-05-28 13:16:16 -05:00
2019-05-13 08:58:55 +02:00
2020-03-11 12:42:29 +01:00
2020-05-28 13:15:22 -05:00
2019-06-12 13:20:20 +02:00
2018-12-14 11:52:40 +01:00
2020-05-18 19:05:25 +02:00
2019-06-12 13:20:20 +02:00
2020-05-08 13:26:35 +02:00
2020-05-08 13:26:35 +02:00
2020-05-18 19:05:25 +02:00
2020-05-08 13:26:35 +02:00
2020-06-05 09:54:48 +01:00
2020-06-05 09:54:48 +01:00
2019-06-12 13:18:33 +02:00
2020-05-04 16:07:43 +01:00
2020-03-16 22:07:42 +01:00
2020-06-17 14:53:39 +02:00
2020-05-18 19:05:25 +02:00
2020-06-10 12:58:59 -05:00
2020-05-08 13:26:35 +02:00
2019-10-14 17:12:48 +02:00
2020-06-23 15:46:08 +01:00
2020-05-18 19:05:25 +02:00
2018-02-09 05:05:11 +01:00
2020-03-06 17:15:38 +01:00
2020-02-20 16:43:42 +01:00
2020-06-17 14:53:39 +02:00
2019-10-26 15:38:06 +02:00
2020-04-30 17:51:07 +02:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-05-13 14:20:31 +02:00
2020-05-28 13:16:16 -05:00
2020-05-28 13:16:16 -05:00
2020-05-18 19:05:25 +02:00
2019-04-30 15:29:00 +02:00
2017-07-17 11:34:11 +08:00
2017-07-17 11:34:11 +08:00
2019-04-30 15:29:00 +02:00
2020-05-18 19:05:25 +02:00
2019-04-30 15:29:00 +02:00
2020-05-18 19:05:25 +02:00
2020-05-28 13:16:16 -05:00
2020-05-08 13:26:35 +02:00
2020-05-18 19:05:25 +02:00
2020-05-08 13:26:35 +02:00
2019-12-18 08:43:19 +01:00
2020-05-08 13:26:35 +02:00
2020-03-09 15:59:31 +01:00
2020-05-15 07:07:58 +02:00
2020-05-18 19:05:25 +02:00
2020-06-23 15:46:08 +01:00
2020-05-18 19:05:25 +02:00
2019-06-12 13:20:20 +02:00
2020-04-30 17:51:07 +02:00
2020-05-18 19:05:25 +02:00
2019-04-30 15:29:00 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-07-03 09:37:03 +02:00
2019-10-14 17:12:48 +02:00
2019-06-12 13:18:33 +02:00
2018-08-28 18:21:38 +02:00