dest 为 NULL 时 memcpy 挂起

memcpy hangs when dest is NULL

当 memcpy 的第一个参数是 0x0 时,我发现了一个问题,预期的行为会因 SIGSEGV 而崩溃,但它并没有崩溃,它只是挂在那里,从来没有 return.What 可能是原因?

根据 cppreference 行为未定义:

The behavior is undefined if either dest or src is a null pointer.