mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-30 20:24:26 +01:00
md5: fix strict aliasing warnings
Change-Id: I64f4570610c625b1325249fd5fa1b9edc3a89ae4 Reviewed-on: https://chromium-review.googlesource.com/438864 Reviewed-by: Ivan Penkov <ivanpe@chromium.org>
This commit is contained in:
parent
8f5741078d
commit
6c78460419
@ -138,8 +138,8 @@ void MD5Final(unsigned char digest[16], struct MD5Context *ctx)
|
|||||||
byteReverse(ctx->in, 14);
|
byteReverse(ctx->in, 14);
|
||||||
|
|
||||||
/* Append length in bits and transform */
|
/* Append length in bits and transform */
|
||||||
((u32 *) ctx->in)[14] = ctx->bits[0];
|
memcpy(&ctx->in[14], &ctx->bits[0], sizeof(u32));
|
||||||
((u32 *) ctx->in)[15] = ctx->bits[1];
|
memcpy(&ctx->in[15], &ctx->bits[1], sizeof(u32));
|
||||||
|
|
||||||
MD5Transform(ctx->buf, (u32 *) ctx->in);
|
MD5Transform(ctx->buf, (u32 *) ctx->in);
|
||||||
byteReverse((unsigned char *) ctx->buf, 4);
|
byteReverse((unsigned char *) ctx->buf, 4);
|
||||||
|
Loading…
Reference in New Issue
Block a user