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
/* Set custom match function. */
_events->match_fct = ht_match_event;
_events->hash_fct = ht_hash_event;
+
+ _rcu_head = {};
+ /*
+ * Node's key is initialized by the channel's parent session. Its value is irrelevant to the
+ * channel object itself.
+ */
+ _node = {};
}
void lsu::registry_channel::add_event(