Michael Tokarev
6003402aa9
vvfat: create_long_filename: fix out-of-bounds array access
...
create_long_filename() intentionally uses direntry_t->name[8+3] array
as a larger array. This works, but makes static code analysis tools
unhappy. The problem here is that a directory entry holding long file
name is significantly different from regular directory entry, and the
name is split into several parts within the entry, not just in regular
8+3 name field.
Treat the entry as array of bytes instead. This fixes the OOB access
from the compiler/tools PoV, but does not change the resulting code
in any way.
Keep the existing code style.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
2025-01-30 13:01:22 +03:00
..
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2024-09-30 10:53:18 +03:00
2023-05-10 14:16:54 +02:00
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2024-01-26 11:16:58 +01:00
2024-12-20 17:44:56 +01:00
2024-06-28 14:44:51 +02:00
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2023-11-08 17:56:18 +01:00
2023-11-08 17:56:18 +01:00
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2024-09-30 10:53:08 +03:00
2023-11-08 17:56:18 +01:00
2023-11-07 19:14:19 +01:00
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:57 +01:00
2024-12-20 17:44:56 +01:00
2024-02-09 12:50:37 +00:00
2024-07-17 14:04:15 +03:00
2023-03-30 15:03:36 +02:00
2023-11-08 17:56:18 +01:00
2023-04-24 13:53:44 -04:00
2024-10-02 16:14:29 +04:00
2024-06-28 14:44:51 +02:00
2023-11-08 17:56:18 +01:00
2024-10-22 17:52:49 +02:00
2023-12-21 22:49:27 +01:00
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2024-06-28 14:44:51 +02:00
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2024-09-10 14:02:16 +02:00
2024-12-20 17:44:56 +01:00
2023-11-08 17:56:18 +01:00
2023-11-08 17:56:18 +01:00
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2024-05-08 19:11:34 +02:00
2023-10-12 16:31:33 +02:00
2023-11-08 17:56:17 +01:00
2023-10-12 16:31:33 +02:00
2024-12-20 17:44:56 +01:00
2023-04-25 13:17:28 +02:00
2024-12-20 17:44:56 +01:00
2023-11-08 17:56:17 +01:00
2024-12-20 17:44:56 +01:00
2023-06-28 09:46:20 +02:00
2023-06-28 09:46:34 +02:00
2024-12-20 17:44:56 +01:00
2023-11-08 17:56:18 +01:00
2024-09-10 14:02:16 +02:00
2024-10-22 17:52:49 +02:00
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2024-09-30 10:53:18 +03:00
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2024-11-25 11:03:42 +01:00
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2023-11-08 17:56:18 +01:00
2023-10-05 11:02:08 -05:00
2024-12-20 17:44:56 +01:00
2023-11-08 17:56:18 +01:00
2024-12-20 17:44:56 +01:00
2023-11-08 17:56:18 +01:00
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2025-01-30 13:01:22 +03:00
2023-05-30 17:37:26 +02:00
2023-12-21 22:49:27 +01:00