ffmpeg | branch: master | James Almer <jamr...@gmail.com> | Mon May  6 21:27:13 
2024 -0300| [febd9271fc2a9e1244a9d6bbeeaa6ec3ec49a0ba] | committer: James Almer

checkasm/blockdsp: don't randomize the buffers for fill_block_tab

It ignores and overwrites the previous values.
Fixes running the test under ubsan.

Signed-off-by: James Almer <jamr...@gmail.com>

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

 tests/checkasm/blockdsp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/checkasm/blockdsp.c b/tests/checkasm/blockdsp.c
index 19d69b8687..1f02d02076 100644
--- a/tests/checkasm/blockdsp.c
+++ b/tests/checkasm/blockdsp.c
@@ -71,7 +71,8 @@ static void check_fill(BlockDSPContext *h){
                      ptrdiff_t line_size, int h);
         if (check_func(h->fill_block_tab[t], "blockdsp.%s", tests[t].name)) {
             uint8_t value = rnd();
-            randomize_buffers(tests[t].size);
+            memset(buf0, 0, sizeof(*buf0) * n * n);
+            memset(buf1, 0, sizeof(*buf1) * n * n);
             call_ref(buf0, value, n, n);
             call_new(buf1, value, n, n);
             if (memcmp(buf0, buf1, sizeof(*buf0) * n * n))

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to