]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/UefiIfrSupportLib/UefiIfrForm.c
K8:
[mirror_edk2.git] / MdeModulePkg / Library / UefiIfrSupportLib / UefiIfrForm.c
index bfca72ec30d61c6759f79d482c101a9b891e27fd..1584c33d92a661fa88eda3768a0b1380106599fa 100644 (file)
@@ -1562,6 +1562,8 @@ BufToHexString (
   If String has N valid hexadecimal characters for conversion,  the caller must make sure Buffer is at least \r
   N/2 (if N is even) or (N+1)/2 (if N if odd) bytes. \r
 \r
+  If either Buffer, BufferSizeInBytes or String is NULL, then ASSERT ().\r
+\r
   @param Buffer                      The output buffer allocated by the caller.\r
   @param BufferSizeInBytes           On input, the size in bytes of Buffer. On output, it is updated to \r
                                      contain the size of the Buffer which is actually used for the converstion.\r
@@ -1592,6 +1594,10 @@ HexStringToBuf (
   UINT8       Digit;\r
   UINT8       Byte;\r
 \r
+  ASSERT (Buffer != NULL);\r
+  ASSERT (BufferSizeInBytes != NULL);\r
+  ASSERT (String != NULL);\r
+\r
   //\r
   // Find out how many hex characters the string has.\r
   //\r