mirror of
				https://gitlab.com/qemu-project/edk2.git
				synced 2025-10-30 07:56:39 +08:00 
			
		
		
		
	DynamicTablesPkg: DynamicTableManagerDxe: Fix NULL pointer dereference
BuildAndInstallMultipleSmbiosTables() can dereference a NULL pointer if the SMBIOS table builder returns a NULL CmObjToken array. Signed-off-by: Sarah Walker <Sarah.Walker2@arm.com>
This commit is contained in:
		 Sarah Walker
					Sarah Walker
				
			
				
					committed by
					
						![mergify[bot]](/assets/img/avatar_default.png) mergify[bot]
						mergify[bot]
					
				
			
			
				
	
			
			
			![mergify[bot]](/assets/img/avatar_default.png) mergify[bot]
						mergify[bot]
					
				
			
						parent
						
							6979b733ac
						
					
				
				
					commit
					3e62dbf504
				
			| @ -264,7 +264,7 @@ BuildAndInstallMultipleSmbiosTables ( | ||||
|     Status = TableFactoryProtocol->AddSmbiosHandle ( | ||||
|                                      SmbiosProtocol, | ||||
|                                      &TableHandle, | ||||
|                                      CmObjToken[Index], | ||||
|                                      CmObjToken ? CmObjToken[Index] : CM_NULL_TOKEN, | ||||
|                                      SmbiosTableInfo->TableGeneratorId | ||||
|                                      ); | ||||
|     if (EFI_ERROR (Status)) { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user