Fix SHA digest alignment issues found by UBSAN (#11596)

This commit is contained in:
radare 2018-09-20 16:44:00 +02:00 committed by GitHub
parent e405e8b66b
commit 185d8dce37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,8 +171,8 @@ struct r_hash_t {
R_SHA384_CTX sha384;
R_SHA512_CTX sha512;
bool rst;
ut8 digest[128];
double entropy;
ut8 R_ALIGNED(8) digest[128];
};
typedef struct r_hash_seed_t {