This change combines the code under one NULL check for UsefulOutBuf. This will allow not to do unnecessary work with nullptr arithmetic. Also, this change removes the check for non-zero size for memmove, because it can handle this situation
Found by PVS-Studio:
warning: V1004 [CWE-119] The '((uint8_t *) pMe->UB.ptr)' pointer was used unsafely after it was verified against nullptr. Check lines: 261, 268.
This change combines the code under one NULL check for UsefulOutBuf. This will allow not to do unnecessary work with nullptr arithmetic. Also, this change removes the check for non-zero size for memmove, because it can handle this situation
Found by PVS-Studio: