[FFmpeg-cvslog] fate/checkasm: fix use of uninitialized memory on hevc_add_res tests

James Almer git at videolan.org
Sat Mar 25 06:14:49 EET 2017


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Mar 24 22:11:34 2017 -0300| [09ce5519f3b44873ac242e9a2f89db7d459de532] | committer: James Almer

fate/checkasm: fix use of uninitialized memory on hevc_add_res tests

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=09ce5519f3b44873ac242e9a2f89db7d459de532
---

 tests/checkasm/hevc_add_res.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/checkasm/hevc_add_res.c b/tests/checkasm/hevc_add_res.c
index ddb0584..185656a 100644
--- a/tests/checkasm/hevc_add_res.c
+++ b/tests/checkasm/hevc_add_res.c
@@ -59,7 +59,7 @@ static void check_add_res(HEVCDSPContext h, int bit_depth)
         randomize_buffers(res0, size);
         randomize_buffers2(dst0, size);
         memcpy(res1, res0, sizeof(*res0) * size);
-        memcpy(dst1, dst0, size);
+        memcpy(dst1, dst0, sizeof(int16_t) * size);
 
         if (check_func(h.add_residual[i - 2], "add_res_%dx%d_%d", block_size, block_size, bit_depth)) {
             call_ref(dst0, res0, stride);



More information about the ffmpeg-cvslog mailing list