Skip to content
Snippets Groups Projects
Commit 33e176b8 authored by Piotr Kubaj's avatar Piotr Kubaj
Browse files

security/samhain: fix build on big-endian

x_sh_checksum.c:471:15: error: incompatible pointer to integer conversion passing 'sha2_word32[8]' (aka 'unsigned int[8]') to parameter of type 'int' [-Wint-conversion]
    memset(d, context->state, SHA256_DIGEST_LENGTH);
              ^~~~~~~~~~~~~~
parent b5724fc1
No related branches found
No related tags found
No related merge requests found
--- src/sh_checksum.c.orig 2024-01-27 14:26:35 UTC
+++ src/sh_checksum.c
@@ -468,7 +468,7 @@ void SHA256_Final(sha2_byte digest[], SHA256_CTX* cont
}
}
#else
- memset(d, context->state, SHA256_DIGEST_LENGTH);
+ memcpy(d, context->state, SHA256_DIGEST_LENGTH);
/* bcopy(context->state, d, SHA256_DIGEST_LENGTH); */
#endif
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment