Skip to content

Commit 9527653

Browse files
Update posix.c
1 parent ecee9f7 commit 9527653

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎test/cfg/posix.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,8 +717,9 @@ size_t bufferAccessOutOfBounds_strnlen(const char *s, size_t maxlen)
717717
{
718718
const char buf[2]={'4','2'};
719719
size_t len = strnlen(buf,2);
720-
// cppcheck-suppress bufferAccessOutOfBounds
720+
// TODO cppcheck-suppress bufferAccessOutOfBounds
721721
len+=strnlen(buf,3);
722+
len+=strnlen("ab",3);
722723
return len;
723724
}
724725

@@ -1606,4 +1607,4 @@ void pthread_define_test()
16061607
(void)rwlock;
16071608
PTHREAD_SCOPE_PROCESS;
16081609
PTHREAD_SCOPE_SYSTEM;
1609-
}
1610+
}

0 commit comments

Comments
 (0)