File sox-14.3.1-aliasing.patch of Package sox

Index: src/sox-fmt.c
===================================================================
--- src/sox-fmt.c.orig
+++ src/sox-fmt.c
@@ -77,8 +77,10 @@ static int write_header(sox_format_t * f
   size_t comments_len = strlen(comments);
   size_t comments_bytes = (comments_len + 7) & ~7u; /* Multiple of 8 bytes */
   uint64_t size   = ft->olength? ft->olength : ft->signal.length;
+  uint32_t local_magic;
+  memcpy(&local_magic, &magic[MACHINE_IS_BIGENDIAN], sizeof(local_magic));
   sox_bool error  = sox_false
-  ||lsx_writedw(ft, *(uint32_t *)&magic[MACHINE_IS_BIGENDIAN])
+  ||lsx_writedw(ft, local_magic)
   ||lsx_writedw(ft, FIXED_HDR + (unsigned)comments_bytes)
   ||lsx_writeqw(ft, size)
   ||lsx_writedf(ft, ft->signal.rate)