]> git.proxmox.com Git - mirror_edk2.git/commit
MdePkg/BaseMemoryLibOptDxe ARM AARCH64: fix thinko in SetMem##
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 22 Sep 2016 08:52:00 +0000 (09:52 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 23 Sep 2016 10:50:51 +0000 (11:50 +0100)
commit8b4ca351dded404f992504c45e358572c4d236f9
tree9ca46710ed79b3320152846e4116fc6fe0bb8a33
parentfe882c01122e7e01e0e78ca8da64630faf9a7b5a
MdePkg/BaseMemoryLibOptDxe ARM AARCH64: fix thinko in SetMem##

The new InternalMemSetMem##() implementations for ARM and AARCH64 in
BaseMemoryLibOptDxe fail to take into account that the 'length' argument
is not in bytes, but in number of items to be copied. So multiply by the
item size before proceeding.

Reported-by: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
MdePkg/Library/BaseMemoryLibOptDxe/AArch64/SetMem.S
MdePkg/Library/BaseMemoryLibOptDxe/Arm/SetMem.S
MdePkg/Library/BaseMemoryLibOptDxe/Arm/SetMem.asm