diff options
Diffstat (limited to 'MdeModulePkg/Library/UefiIfrSupportLib/UefiIfrForm.c')
-rw-r--r-- | MdeModulePkg/Library/UefiIfrSupportLib/UefiIfrForm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MdeModulePkg/Library/UefiIfrSupportLib/UefiIfrForm.c b/MdeModulePkg/Library/UefiIfrSupportLib/UefiIfrForm.c index bfca72ec30..1584c33d92 100644 --- a/MdeModulePkg/Library/UefiIfrSupportLib/UefiIfrForm.c +++ b/MdeModulePkg/Library/UefiIfrSupportLib/UefiIfrForm.c @@ -1562,6 +1562,8 @@ BufToHexString ( If String has N valid hexadecimal characters for conversion, the caller must make sure Buffer is at least
N/2 (if N is even) or (N+1)/2 (if N if odd) bytes.
+ If either Buffer, BufferSizeInBytes or String is NULL, then ASSERT ().
+
@param Buffer The output buffer allocated by the caller.
@param BufferSizeInBytes On input, the size in bytes of Buffer. On output, it is updated to
contain the size of the Buffer which is actually used for the converstion.
@@ -1592,6 +1594,10 @@ HexStringToBuf ( UINT8 Digit;
UINT8 Byte;
+ ASSERT (Buffer != NULL);
+ ASSERT (BufferSizeInBytes != NULL);
+ ASSERT (String != NULL);
+
//
// Find out how many hex characters the string has.
//
|