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-12-15 14:06:21 +03:00
2024-06-02 12:49:13 +03:00
2023-08-04 21:04:54 +03:00
2023-10-15 16:04:39 +03:00
2024-01-01 09:46:17 +03:00
2024-06-02 12:49:13 +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-06-02 12:49:13 +03:00
2020-12-31 16:26:46 +03:00
2020-10-13 16:34:55 +03:00
2024-10-05 18:55:01 +02:00
2024-01-01 09:46:17 +03:00
2020-03-08 20:17:29 +03:00