\r
**/\r
\r
-#include "MemLibWrappers.h"\r
+#include "MemLibInternals.h"\r
\r
/**\r
Copy Length bytes from Source to Destination.\r
IN UINTN Length\r
)\r
{\r
- ASSERT (Length <= MAX_ADDRESS - (UINTN)Destination + 1);\r
- ASSERT (Length <= MAX_ADDRESS - (UINTN)Source + 1);\r
+ ASSERT (\r
+ Destination == NULL ||\r
+ Length <= MAX_ADDRESS - (UINTN)Destination + 1\r
+ );\r
+ ASSERT (\r
+ Source == NULL ||\r
+ Length <= MAX_ADDRESS - (UINTN)Source + 1\r
+ );\r
if (Destination == Source || Length == 0) {\r
return Destination;\r
}\r