OpenIniFile(), PreProcessDataFile(), ProfileGetSection(), ProfileGetEntry()\r
will receive untrusted input and do basic validation.\r
\r
- Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions\r
// This is default allocation. Reallocation will happen if it is not enough.\r
#define MAX_LINE_LENGTH 512\r
\r
-typedef struct _SECTION_ITEM SECTION_ITEM;\r
-struct _SECTION_ITEM {\r
+typedef struct _INI_SECTION_ITEM SECTION_ITEM;\r
+struct _INI_SECTION_ITEM {\r
CHAR8 *PtrSection;\r
UINTN SecNameLen;\r
CHAR8 *PtrEntry;\r
SECTION_ITEM *PtrNext;\r
};\r
\r
-typedef struct _COMMENT_LINE COMMENT_LINE;\r
-struct _COMMENT_LINE {\r
+typedef struct _INI_COMMENT_LINE COMMENT_LINE;\r
+struct _INI_COMMENT_LINE {\r
CHAR8 *PtrComment;\r
COMMENT_LINE *PtrNext;\r
};\r
\r
**/\r
EFI_STATUS\r
-AsciiStrToGuid (\r
+IniAsciiStrToGuid (\r
IN CHAR8 *Str,\r
OUT EFI_GUID *Guid\r
)\r
if (EFI_ERROR(Status)) {\r
return EFI_NOT_FOUND;\r
}\r
+ ASSERT (Value != NULL);\r
if (!IsValidGuid(Value, AsciiStrLen(Value))) {\r
return EFI_NOT_FOUND;\r
}\r
- Status = AsciiStrToGuid(Value, Guid);\r
+ Status = IniAsciiStrToGuid(Value, Guid);\r
if (EFI_ERROR (Status)) {\r
return EFI_NOT_FOUND;\r
}\r
if (EFI_ERROR(Status)) {\r
return EFI_NOT_FOUND;\r
}\r
+ ASSERT (Value != NULL);\r
if (!IsValidDecimalString(Value, AsciiStrLen(Value))) {\r
return EFI_NOT_FOUND;\r
}\r
if (EFI_ERROR(Status)) {\r
return EFI_NOT_FOUND;\r
}\r
+ ASSERT (Value != NULL);\r
if (!IsValidHexString(Value, AsciiStrLen(Value))) {\r
return EFI_NOT_FOUND;\r
}\r
if (EFI_ERROR(Status)) {\r
return EFI_NOT_FOUND;\r
}\r
+ ASSERT (Value != NULL);\r
if (!IsValidHexString(Value, AsciiStrLen(Value))) {\r
return EFI_NOT_FOUND;\r
}\r