audk/MdePkg/Library/BaseMemoryLibOptDxe
Ard Biesheuvel 12a37b2ae1 MdePkg/BaseMemoryLib*: check for zero length in ZeroMem ()
Unlike other string functions in this library, ZeroMem () does not
return early when the length of the input buffer is 0. So add the
same to ZeroMem () as well, for all implementations of BaseMemoryLib
living under MdePkg/

This fixes an issue with the ARM implementation of BaseMemoryLibOPtDxe,
whose InternalMemZeroMem code does not expect a length of 0, and always
writes at least a single byte.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
2016-11-04 09:53:01 +00:00
..
AArch64 MdePkg/BaseMemoryLibOptDxe ARM AARCH64: fix thinko in SetMem## 2016-09-23 11:50:51 +01:00
Arm MdePkg BaseMemoryLibOptDxe: Add function comment for InternalMemCompareGuid 2016-10-25 11:54:08 +08:00
Ia32 MdePkg BaseMemoryLib: Add assembly implementation of API IsZeroBuffer() 2016-08-22 18:54:31 +08:00
X64 MdePkg BaseMemoryLib: Add assembly implementation of API IsZeroBuffer() 2016-08-22 18:54:31 +08:00
BaseMemoryLibOptDxe.inf MdePkg/BaseMemoryLibOptDxe ARM|AARCH64: implement accelerated GUID functions 2016-09-21 08:43:17 +01:00
BaseMemoryLibOptDxe.uni
CompareMemWrapper.c
CopyMemWrapper.c
IsZeroBufferWrapper.c MdePkg BaseMemoryLib: Add assembly implementation of API IsZeroBuffer() 2016-08-22 18:54:31 +08:00
MemLibGuid.c MdePkg BaseMemoryLib: Add implementation of API IsZeroGuid() 2016-08-22 18:54:29 +08:00
MemLibInternals.h MdePkg BaseMemoryLib: Add assembly implementation of API IsZeroBuffer() 2016-08-22 18:54:31 +08:00
ScanMem8Wrapper.c
ScanMem16Wrapper.c
ScanMem32Wrapper.c
ScanMem64Wrapper.c
SetMem16Wrapper.c
SetMem32Wrapper.c
SetMem64Wrapper.c
SetMemWrapper.c
ZeroMemWrapper.c MdePkg/BaseMemoryLib*: check for zero length in ZeroMem () 2016-11-04 09:53:01 +00:00