X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FInclude%2FLibrary%2FMemoryAllocationLib.h;h=74f7673cd7b02490e4e135e84b2a5976ad4e2e55;hb=2297186d22231ffcf35cc5a03bdd60e8ac97558e;hp=9b8e3aa62be4fe7616267e4c4c90763ccb4f885e;hpb=c23904319f4d49ddd69193e10fe3bd57ce245cbd;p=mirror_edk2.git diff --git a/MdePkg/Include/Library/MemoryAllocationLib.h b/MdePkg/Include/Library/MemoryAllocationLib.h index 9b8e3aa62b..74f7673cd7 100644 --- a/MdePkg/Include/Library/MemoryAllocationLib.h +++ b/MdePkg/Include/Library/MemoryAllocationLib.h @@ -381,14 +381,13 @@ AllocateReservedCopyPool ( /** Reallocates a buffer of type EfiBootServicesData. - Allocates and zeros the number bytes specified by NewSize with the memmory type + Allocates and zeros the number bytes specified by NewSize from memory of type EfiBootServicesData. If OldBuffer is not NULL, then the smaller of OldSize and NewSize bytes are copied from OldBuffer to the newly allocated buffer, and OldBuffer is freed. A pointer to the newly allocated buffer is returned. If NewSize is 0, then a valid buffer of 0 size is returned. If there is not enough memory remaining to satisfy the request, then NULL is returned. - If OldBuffer is NULL, then ASSERT(). If NewSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). If OldSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). @@ -411,14 +410,13 @@ ReallocatePool ( /** Reallocates a buffer of type EfiRuntimeServicesData. - Allocates and zeros the number bytes specified by NewSize with the memmory type + Allocates and zeros the number bytes specified by NewSize from memory of type EfiRuntimeServicesData. If OldBuffer is not NULL, then the smaller of OldSize and NewSize bytes are copied from OldBuffer to the newly allocated buffer, and OldBuffer is freed. A pointer to the newly allocated buffer is returned. If NewSize is 0, then a valid buffer of 0 size is returned. If there is not enough memory remaining to satisfy the request, then NULL is returned. - - If OldBuffer is NULL, then ASSERT(). + If NewSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). If OldSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). @@ -441,14 +439,13 @@ ReallocateRuntimePool ( /** Reallocates a buffer of type EfiReservedMemoryType. - Allocates and zeros the number bytes specified by NewSize with the memmory type + Allocates and zeros the number bytes specified by NewSize from memory of type EfiReservedMemoryType. If OldBuffer is not NULL, then the smaller of OldSize and NewSize bytes are copied from OldBuffer to the newly allocated buffer, and OldBuffer is freed. A pointer to the newly allocated buffer is returned. If NewSize is 0, then a valid buffer of 0 size is returned. If there is not enough memory remaining to satisfy the request, then NULL is returned. - - If OldBuffer is NULL, then ASSERT(). + If NewSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). If OldSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().