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

2014-01-20 Thread Gao, Liming
The patch is good to me. Reviewed-by: Gao, Liming Thanks Liming -Original Message- From: Gary Ching-Pang Lin [mailto:g...@suse.com] Sent: Monday, January 20, 2014 2:41 PM To: edk2-devel@lists.sourceforge.net Subject: [edk2] [PATCH] Fix VfrCompiler bug on the misued memcpy

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

2014-01-20 Thread Laszlo Ersek
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 corr

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

2014-01-19 Thread Gary Ching-Pang Lin
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 Agre