Re: [edk2] [PATCH] Fix VfrCompiler bug on the misued memcpy()

Subject: Re: [edk2] [PATCH] Fix VfrCompiler bug on the misued memcpy()

From: Laszlo Ersek <>


Date: 2014-01-21 05:52:16

On 01/20/14 07:40, Gary Ching-Pang Lin wrote:
> VfrCompiler used memcpy() on the overlapped buffer and caused
> data corruption. This commit replaces memcpy() with memmove()
> if the source or the destination buffer is not created in the
> function, so that the overlapped buffers can be copied correctly.
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Gary Ching-Pang Lin 
> ---
>  BaseTools/Source/C/VfrCompile/VfrFormPkg.cpp |  8 ++++----
>  BaseTools/Source/C/VfrCompile/VfrFormPkg.h   | 28 ++++++++++++++--------------
>  2 files changed, 18 insertions(+), 18 deletions(-)

I think you need to post this to


CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
edk2-devel mailing list