added memcpy() related SA warning fixes
added memcpy() related SA warning fixes

memcpy() on NULL is UB, even if length is 0.

unknownbrackets/maxcso,unknownbrackets/maxcso,unknownbrackets/maxcso,unknownbrackets/maxcso,unknownbrackets/maxcso,unknownbrackets/maxcso,unknownbrackets/maxcso