Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(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 <[email protected]> Signed-off-by: Andrew Borodin <vmail.ru>
- Loading branch information