PARSER_PARAMS (SratResourceAllocationParser)\r
);\r
\r
+ // Check if the values used to control the parsing logic have been\r
+ // successfully read.\r
+ if ((SratRAType == NULL) ||\r
+ (SratRALength == NULL)) {\r
+ IncrementErrorCount ();\r
+ Print (\r
+ L"ERROR: Insufficient remaining table buffer length to read the " \\r
+ L"Static Resource Allocation structure header. Length = %d.\n",\r
+ AcpiTableLength - Offset\r
+ );\r
+ return;\r
+ }\r
+\r
// Make sure the SRAT structure lies inside the table\r
if ((Offset + *SratRALength) > AcpiTableLength) {\r
IncrementErrorCount ();\r