Andrew Borodin
3475da785f
(size_trunc_len): fix Undefined Binary Operator Result.
...
lib/util.c:493:28: warning: The left operand of '!=' is a garbage value due to array index out of bounds [clang-analyzer-core.UndefinedBinaryOperatorResult]
493 | for (j = units; sfx[j] != NULL; j++)
| ~~~~~~ ^
- verify and limit input 'units' value
Found by Clang-19 Static Analyzer.
Reported-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <vmail.ru>
2024-12-22 11:39:28 +03:00
..
2024-06-02 12:49:13 +03:00
2024-06-02 12:49:13 +03:00
2024-06-02 12:49:13 +03:00
2024-12-15 14:06:21 +03:00
2024-06-02 12:49:13 +03:00
2024-10-05 15:05:58 +03:00
2024-10-19 08:56:40 +02:00
2024-10-19 08:56:40 +02:00
2024-12-22 11:38:32 +03:00
2024-10-05 15:07:13 +03:00
2021-03-14 19:30:42 +03:00
2021-06-20 15:14:56 +03:00
2023-08-04 21:04:54 +03:00
2023-03-19 20:34:23 +03:00
2023-10-15 16:04:39 +03:00
2024-06-02 12:41:34 +03:00
2024-06-03 16:18:12 +02:00
2024-06-02 12:41:34 +03:00
2024-01-01 09:46:17 +03:00
2024-11-01 17:37:10 +01:00
2024-06-02 12:49:13 +03:00
2024-10-05 15:07:13 +03:00
2024-10-05 15:07:13 +03:00
2024-10-08 13:02:17 +03:00
2024-06-02 12:49:13 +03:00
2023-10-15 16:04:39 +03:00
2024-06-02 12:49:13 +03:00
2024-01-01 09:46:17 +03:00
2024-10-08 13:02:17 +03:00
2024-10-19 08:56:40 +02:00
2024-12-15 13:46:52 +03:00
2024-06-02 12:49:13 +03:00
2019-09-01 19:41:12 +03:00
2024-06-02 12:49:13 +03:00
2020-12-31 16:26:46 +03:00
2023-12-10 17:47:07 +03:00
2020-10-13 16:34:55 +03:00
2024-10-05 15:07:13 +03:00
2024-10-05 18:55:01 +02:00
2024-01-01 09:46:17 +03:00
2023-01-28 21:38:05 +03:00
2024-07-28 10:00:52 +02:00
2024-12-22 11:39:28 +03:00
2024-10-19 08:56:40 +02:00
2024-10-26 18:22:53 +02:00
2020-03-08 20:17:29 +03:00