diff --git a/test/cfg/std.c b/test/cfg/std.c index a14a5d6a6..e9cb3e507 100644 --- a/test/cfg/std.c +++ b/test/cfg/std.c @@ -3664,6 +3664,22 @@ void nullPointer_wmemcmp(const wchar_t* s1, const wchar_t* s2, size_t n) (void)wmemcmp(s1,s2,n); } +void nullPointer_wmemmove(wchar_t* s1, const wchar_t* s2, size_t n) +{ + // cppcheck-suppress nullPointer + (void)wmemmove(NULL,s2,n); + // cppcheck-suppress nullPointer + (void)wmemmove(s1,NULL,n); + (void)wmemmove(s1,s2,n); +} + +void nullPointer_wmemset(wchar_t* s, wchar_t c, size_t n) +{ + // cppcheck-suppress nullPointer + (void)wmemset(NULL,c,n); + (void)wmemset(s,c,n); +} + void nullPointer_memmove(void *s1, void *s2, size_t n) { // cppcheck-suppress nullPointer diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp index 921823828..ea3d2f32a 100644 --- a/test/cfg/std.cpp +++ b/test/cfg/std.cpp @@ -3619,6 +3619,22 @@ void nullPointer_memmove(void *s1, void *s2, size_t n) (void)std::memmove(s1,s2,n); } +void nullPointer_wmemmove(wchar_t* s1, const wchar_t* s2, size_t n) +{ + // cppcheck-suppress nullPointer + (void)std::wmemmove(NULL,s2,n); + // cppcheck-suppress nullPointer + (void)std::wmemmove(s1,NULL,n); + (void)std::wmemmove(s1,s2,n); +} + +void nullPointer_wmemset(wchar_t* s, wchar_t c, size_t n) +{ + // cppcheck-suppress nullPointer + (void)std::wmemset(NULL,c,n); + (void)std::wmemset(s,c,n); +} + /////////////////////////////////////////////////////////////////////// // ///////////////////////////////////////////////////////////////////////