Fix: sessiond: error accounting: wrong sizeof argument cpu_counters
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 7 Apr 2021 17:01:44 +0000 (13:01 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 7 Apr 2021 17:01:44 +0000 (13:01 -0400)
commit74f286be45611aa0a3e0a8fedfdee6c254a97ee6
tree3b6dae9f0df1ca6b05d07a7d7c5590d13d240fa4
parent477b83a4de8580a75e3aa88de423c7081e49d6e0
Fix: sessiond: error accounting: wrong sizeof argument cpu_counters

1452205 Wrong sizeof argument

The wrong sizeof value is used in an expression or as argument to a function. The result is an incorrect value that may cause unexpected program behaviors.

In create_uid_accounting_entry: The sizeof operator is invoked on the wrong argument (CWE-569)

Reported-by: Coverity Scan
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I1912964bd1579f3b1ff013000848c28cea6a9d52
src/bin/lttng-sessiond/event-notifier-error-accounting.c
This page took 0.024746 seconds and 4 git commands to generate.