Patch for static analysis and NULL source pointer to memcpy