Replace memcpy with memmove to Solve Memory Overlap Error Replacing memcpy with memmove so there is no memcpy-param-overlap error. Bug: 62887820 Test: vendor testing Change-Id: I8292659f4f490ce1eed16356a7caf16df6324283 (cherry picked from commit 0a2112249af3c8de52f4da9e89d740b20246d050)
diff --git a/decoder/impeg2d_mc.c b/decoder/impeg2d_mc.c index 79c5ef6..229579c 100644 --- a/decoder/impeg2d_mc.c +++ b/decoder/impeg2d_mc.c
@@ -1260,7 +1260,7 @@ for(i = 0; i < u4_blk_height; i++) { - memcpy(pu1_out, pu1_ref, u4_blk_width); + memmove(pu1_out, pu1_ref, u4_blk_width); pu1_ref += u4_ref_wid; pu1_out += u4_out_wid; }