diff --git a/libwvdrmengine/oemcrypto/ref/src/oemcrypto_session.cpp b/libwvdrmengine/oemcrypto/ref/src/oemcrypto_session.cpp index 880eabd7..fa288e5e 100644 --- a/libwvdrmengine/oemcrypto/ref/src/oemcrypto_session.cpp +++ b/libwvdrmengine/oemcrypto/ref/src/oemcrypto_session.cpp @@ -7,6 +7,7 @@ #include "oemcrypto_session.h" #include + #include #include #include @@ -1858,7 +1859,7 @@ OEMCryptoResult SessionContext::SetDecryptHash(uint32_t frame_number, } compute_hash_ = true; current_frame_number_ = frame_number; - given_hash_ = *reinterpret_cast(hash); + memcpy(&given_hash_, hash, sizeof(uint32_t)); return OEMCrypto_SUCCESS; }