Dear all, 

  After EDK2 rev:14820  
  MdeModulePkg Pool: Update the type of Size to UINTN for the potential more 
than 4GB buffer allocation.

  It modify the POOL_HEAD structure in MdeModulePkg\Core\Dxe\Mem\Pool.c, 
  however it doesn't sync to the POOL_HEAD structure in 
StdLib\LibC\StdLib\Malloc.c.

Original:
typedef struct {
  UINT32          Signature;
  UINT32          Size;
  EFI_MEMORY_TYPE Type;
  UINTN           Reserved;
  CHAR8           Data[1];
} POOL_HEAD;


Modified:
typedef struct {
  UINT32          Signature;
  UINT32          Reserved;
  ^^^^^^^^^^^^^^^^^^^^^^^^
  EFI_MEMORY_TYPE Type;
  UINTN           Size;
  ^^^^^^^^^^^^^^^^^^^^
  CHAR8           Data[1];
} POOL_HEAD;


Thanks,
Bin Lain

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to