fix(newlib): Fixes Coverity issues

This commit is contained in:
Konstantin Kondrashov
2025-08-25 12:55:39 +03:00
parent 5c97f96243
commit 5c3d03cee4

View File

@@ -23,6 +23,7 @@ __attribute__((always_inline))
static inline
unsigned long __newlib__libc_detect_null(unsigned long w)
{
/* coverity[result_independent_of_operands] */
unsigned long mask = 0x7f7f7f7f;
if (sizeof(long) == 8) {
mask = ((mask << 16) << 16) | mask;
@@ -87,6 +88,7 @@ out:
return dst0;
}
/* coverity[unreachable] */
char ch;
do {
ch = *src;