From: Joseph Sutton Date: Mon, 7 Mar 2022 23:13:12 +0000 (+1300) Subject: compression: Use PUSH_LE_U32 for first output buffer write X-Git-Tag: talloc-2.3.4~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a964210d243737d0f31ee93c546fc33566745b1;p=thirdparty%2Fsamba.git compression: Use PUSH_LE_U32 for first output buffer write Signed-off-by: Joseph Sutton Reviewed-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/lib/compression/lzxpress.c b/lib/compression/lzxpress.c index 647545bbac3..f903b8c974b 100644 --- a/lib/compression/lzxpress.c +++ b/lib/compression/lzxpress.c @@ -76,7 +76,7 @@ ssize_t lzxpress_compress(const uint8_t *uncompressed, compressed_pos = 0; indic = 0; CHECK_OUTPUT_BYTES(sizeof(uint32_t)); - *(uint32_t *)compressed = 0; + PUSH_LE_U32(compressed, compressed_pos, 0); compressed_pos += sizeof(uint32_t); indic_pos = 0;