If either
destorsrcis an invalid or null pointer, the behavior is undefined, even ifcountis zero
Same is stated for memset and memmove.
My question is: where is it stated in the standard? I need to justify this as an UB to my client, but a link to a cppref article won' t do, I need the reference in the standard.
The C++ standard refers the C standard, and these functions are defined in the C standard.
7.24 String handling <string.h>
7.24.1 String function conventions
7.1.4 Use of library functions
C17 ISO/IEC 9899:2018 N2310