sessiond: fix: possible unaligned access in packed structure
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 14 Sep 2019 20:02:33 +0000 (16:02 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 26 Sep 2019 19:55:46 +0000 (15:55 -0400)
commitdee68e680fcb782b455daaeab744d5480580a3fd
treebbd49cb796772ada9f6e972c80cc95667589ebb1
parente909777bf000d0fd8f0116569b3fb31676b228be
sessiond: fix: possible unaligned access in packed structure

'&rsock->sock.fd' is passed to consumer_send_fds and may result in an
unaligned pointer value. Use the ALIGNED_CONST_PTR macro to create
an aligned copy of the fd that is being passed.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/consumer.c
This page took 0.02587 seconds and 4 git commands to generate.