Fix: sessiond: registry_channel: initialize _rcu_head and _node
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 14 Jun 2022 16:01:22 +0000 (12:01 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 15 Jun 2022 15:07:55 +0000 (11:07 -0400)
commit36038679a47861ffc7e937ea6446d6ca3805b109
treecf4a2061faac9f4401104a1689d5242b91da876c
parentf139a4f9cdbea2b08d08b024ad0996fb5bebad41
Fix: sessiond: registry_channel: initialize _rcu_head and _node

1490020 Uninitialized pointer field
The pointer field will point to an arbitrary memory location, any
attempt to write may cause corruption.

In lttng::​sessiond::​ust::​registry_channel::​registry_channel(unsigned int, std::​function<void (lttng::​sessiond::​ust::​registry_channel const &)>, std::​function<void (lttng::​sessiond::​ust::​registry_channel const &, lttng::​sessiond::​ust::​registry_event const &)>): A pointer field is not initialized in the constructor (CWE-457)

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ie043af750941a02a65ba69e70fe2620349989398
src/bin/lttng-sessiond/ust-registry-channel.cpp
This page took 0.034373 seconds and 4 git commands to generate.