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

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

From: Laszlo Ersek <lersek@redhat.com>

To: edk2-devel@lists.sourceforge.net

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
.

Laszlo


------------------------------------------------------------------------------
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. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel