mirror of
				https://git.proxmox.com/git/mirror_edk2
				synced 2025-11-04 05:38:26 +00:00 
			
		
		
		
	The Variable PEI and RuntimeDxe drivers were using the attribute 'HeaderLength' of EFI_FIRMWARE_VOLUME_HEADER without checking if a Firmware Volume Header was existing at the base address. In case the Firmware Volume Header does not exist or is corrupted, the attribute 'HeaderLength' is a non valid value that can lead to a non valid physical address when accessing produces an access error. Signed-off-by: oliviermartin Reviewed-by: niruiyu git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12836 6f19259b-4bc3-4df7-8a09-765794883524
		
			
				
	
	
		
			92 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			92 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
## @file
 | 
						|
# Component description file for Variable module.
 | 
						|
#
 | 
						|
# This module installs three EFI_RUNTIME_SERVICES: SetVariable, GetVariable, GetNextVariableName.
 | 
						|
# Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
 | 
						|
#
 | 
						|
#  This program and the accompanying materials
 | 
						|
#  are licensed and made available under the terms and conditions of the BSD License
 | 
						|
#  which accompanies this distribution. The full text of the license may be found at
 | 
						|
#  http://opensource.org/licenses/bsd-license.php
 | 
						|
#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 | 
						|
#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 | 
						|
#
 | 
						|
#
 | 
						|
##
 | 
						|
 | 
						|
[Defines]
 | 
						|
  INF_VERSION                    = 0x00010005
 | 
						|
  BASE_NAME                      = VariableRuntimeDxe
 | 
						|
  FILE_GUID                      = CBD2E4D5-7068-4FF5-B462-9822B4AD8D60
 | 
						|
  MODULE_TYPE                    = DXE_RUNTIME_DRIVER
 | 
						|
  VERSION_STRING                 = 1.0
 | 
						|
  ENTRY_POINT                    = VariableServiceInitialize
 | 
						|
 | 
						|
#
 | 
						|
# The following information is for reference only and not required by the build tools.
 | 
						|
#
 | 
						|
#  VALID_ARCHITECTURES           = IA32 X64 EBC
 | 
						|
#
 | 
						|
#  VIRTUAL_ADDRESS_MAP_CALLBACK  =  VariableClassAddressChangeEvent
 | 
						|
#
 | 
						|
 | 
						|
[Sources]
 | 
						|
  Reclaim.c
 | 
						|
  Variable.c
 | 
						|
  VariableDxe.c
 | 
						|
  Variable.h
 | 
						|
 | 
						|
[Packages]
 | 
						|
  MdePkg/MdePkg.dec
 | 
						|
  MdeModulePkg/MdeModulePkg.dec
 | 
						|
 | 
						|
[LibraryClasses]
 | 
						|
  MemoryAllocationLib
 | 
						|
  BaseLib
 | 
						|
  SynchronizationLib
 | 
						|
  UefiLib
 | 
						|
  UefiBootServicesTableLib
 | 
						|
  BaseMemoryLib
 | 
						|
  DebugLib
 | 
						|
  UefiRuntimeLib
 | 
						|
  DxeServicesTableLib
 | 
						|
  UefiDriverEntryPoint
 | 
						|
  PcdLib
 | 
						|
  HobLib
 | 
						|
 | 
						|
[Protocols]
 | 
						|
  gEfiFirmwareVolumeBlockProtocolGuid           ## SOMETIMES_CONSUMES
 | 
						|
  gEfiVariableWriteArchProtocolGuid             ## ALWAYS_PRODUCES
 | 
						|
  gEfiVariableArchProtocolGuid                  ## ALWAYS_PRODUCES
 | 
						|
  gEfiFaultTolerantWriteProtocolGuid            ## SOMETIMES_CONSUMES
 | 
						|
 | 
						|
[Guids]
 | 
						|
  gEfiVariableGuid                              ## PRODUCES ## Configuration Table Guid 
 | 
						|
  gEfiGlobalVariableGuid                        ## PRODUCES ## Variable Guid
 | 
						|
  gEfiEventVirtualAddressChangeGuid             ## PRODUCES ## Event
 | 
						|
  gEfiSystemNvDataFvGuid                        ## CONSUMES
 | 
						|
 | 
						|
[Pcd]
 | 
						|
  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
 | 
						|
  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase
 | 
						|
  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64
 | 
						|
  gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize
 | 
						|
  gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize
 | 
						|
  gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize
 | 
						|
  gEfiMdeModulePkgTokenSpaceGuid.PcdHwErrStorageSize
 | 
						|
  
 | 
						|
[FeaturePcd]
 | 
						|
  gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics  ## SOMETIME_CONSUMES (statistic the information of variable.)
 | 
						|
 | 
						|
[Depex]
 | 
						|
  TRUE
 | 
						|
 | 
						|
# [Event]
 | 
						|
#   ##
 | 
						|
#   # Event will be signaled for VIRTUAL_ADDRESS_CHANGE event.
 | 
						|
#   #
 | 
						|
#   EVENT_TYPE_NOTIFY_SIGNAL                    ## PRODUCES
 | 
						|
#
 | 
						|
#
 | 
						|
    
 |