We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c97f96 commit 5c3d03cCopy full SHA for 5c3d03c
components/newlib/src/port/riscv/strcpy.c
@@ -23,6 +23,7 @@ __attribute__((always_inline))
23
static inline
24
unsigned long __newlib__libc_detect_null(unsigned long w)
25
{
26
+ /* coverity[result_independent_of_operands] */
27
unsigned long mask = 0x7f7f7f7f;
28
if (sizeof(long) == 8) {
29
mask = ((mask << 16) << 16) | mask;
@@ -87,6 +88,7 @@ char *strcpy(char *dst, const char *src)
87
88
return dst0;
89
}
90
91
+ /* coverity[unreachable] */
92
char ch;
93
do {
94
ch = *src;
0 commit comments