mirror of
https://github.com/boostorg/uuid.git
synced 2026-01-19 04:42:16 +00:00
Avoid UBSan failures in md5.hpp
This commit is contained in:
@@ -116,9 +116,9 @@ private:
|
||||
*/
|
||||
#if defined(__i386__) || defined(__x86_64__) || defined(__vax__)
|
||||
#define BOOST_UUID_DETAIL_MD5_SET(n) \
|
||||
(*(MD5_u32plus *)&ptr[(n) * 4])
|
||||
(memcpy(&ctx->block[(n)], &ptr[(n) * 4], sizeof(MD5_u32plus)), (ctx->block[(n)]))
|
||||
#define BOOST_UUID_DETAIL_MD5_GET(n) \
|
||||
BOOST_UUID_DETAIL_MD5_SET(n)
|
||||
(ctx->block[(n)])
|
||||
#else
|
||||
#define BOOST_UUID_DETAIL_MD5_SET(n) \
|
||||
(ctx->block[(n)] = \
|
||||
|
||||
Reference in New Issue
Block a user