Casting a char pointer to struct ctf_header causes bus error on
authorbluhm <bluhm@openbsd.org>
Thu, 10 Feb 2022 23:40:09 +0000 (23:40 +0000)
committerbluhm <bluhm@openbsd.org>
Thu, 10 Feb 2022 23:40:09 +0000 (23:40 +0000)
commit5cdeb2c09234a47167353c26fa135b4ec1795659
treeedc4ce0cab442ef1b4d65ebc60eb5dad1c6107a6
parent1a7bc0bf9406d0be22ac126e5163a3dc4254f6f8
Casting a char pointer to struct ctf_header causes bus error on
sparc64.  Use memcpy() to align the data.
found by regress/usr.bin/ctfdump; OK mpi@
usr.bin/ctfdump/ctfdump.c