Clean-up: common: uuid: uninitialized output parameter on error
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 14 Jun 2022 16:04:07 +0000 (12:04 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 15 Jun 2022 15:08:00 +0000 (11:08 -0400)
commit52cb8c0f651ade8d057a264eea1de534ead36517
tree6c64c56a88609a45a0ba7b4d4e73726a82b4eec6
parent36038679a47861ffc7e937ea6446d6ca3805b109
Clean-up: common: uuid: uninitialized output parameter on error

1490018 Uninitialized scalar variable
The variable will contain an arbitrary value left from earlier
computations.

In lttng_uuid_from_str(char const *, std::​array<unsigned char, 16ul> &):
Use of an uninitialized variable (CWE-457)

Callers should not use the return parameter anyhow on error.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Idd863d219da840a0c291478733f7b931967a5e56
src/common/uuid.cpp
This page took 0.024905 seconds and 4 git commands to generate.