This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 7b9eeadda0 tests/checkasm/aes: fix memcmp size argument
7b9eeadda0 is described below

commit 7b9eeadda06edd6ef7f604d5c3863f30722c7c15
Author:     Shreesh Adiga <[email protected]>
AuthorDate: Fri Jul 10 18:27:46 2026 +0530
Commit:     Martin Storsjö <[email protected]>
CommitDate: Sun Jul 12 19:44:48 2026 +0000

    tests/checkasm/aes: fix memcmp size argument
    
    sizeof(16 * count) evaluates to 4 and thus only the first 4 bytes of aes
    output was being compared. Removing the sizeof operator will ensure that
    the whole output buffer will be compared.
---
 tests/checkasm/aes.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/checkasm/aes.c b/tests/checkasm/aes.c
index c5502118fa..4bbfc5750b 100644
--- a/tests/checkasm/aes.c
+++ b/tests/checkasm/aes.c
@@ -46,13 +46,13 @@ void checkasm_check_aes(void)
                     iv[0][j] = iv[1][j] = rnd();
                 call_ref(&b, temp[0], pt, count, iv[0], b.rounds);
                 call_new(&b, temp[1], pt, count, iv[1], b.rounds);
-                if (memcmp(temp[0], temp[1], sizeof(16 * count)))
+                if (memcmp(temp[0], temp[1], 16 * count))
                     fail();
                 if (memcmp(iv[0], iv[1], sizeof(iv[0])))
                     fail();
                 call_ref(&b, temp[0], pt, count, NULL, b.rounds);
                 call_new(&b, temp[1], pt, count, NULL, b.rounds);
-                if (memcmp(temp[0], temp[1], sizeof(16 * count)))
+                if (memcmp(temp[0], temp[1], 16 * count))
                     fail();
                 if (memcmp(iv[0], iv[1], sizeof(iv[0])))
                     fail();

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to