Skip to content

Commit b380370

Browse files
committed
Update memmove to pass a non zero count
1 parent e6a336f commit b380370

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/test/src/string/memmove_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ TEST(LlvmLibcMemmoveTest, SizeSweep) {
107107
#if defined(LIBC_ADD_NULL_CHECKS) && !defined(LIBC_HAS_SANITIZER)
108108

109109
TEST(LlvmLibcMemmoveTest, CrashOnNullPtr) {
110-
ASSERT_DEATH([]() { LIBC_NAMESPACE::memmove(nullptr, nullptr, 0); },
110+
ASSERT_DEATH([]() { LIBC_NAMESPACE::memmove(nullptr, nullptr, 2); },
111111
WITH_SIGNAL(-1));
112112
}
113113

0 commit comments

Comments
 (0)