Fix: syscalls: address of statically allocated element never null
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 25 Nov 2020 15:25:54 +0000 (10:25 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 25 Nov 2020 16:51:12 +0000 (11:51 -0500)
commitd053f3eecd81fad0189e12f9f63a6095d421d5d8
tree9959c67016a8952aa112ab525ed9b3c22dc5d854
parentcff6938b5405c9125a5149f03e504d7b1cc4b8a4
Fix: syscalls: address of statically allocated element never null

This check is intended to confirm that the table element for that syscall
is indeed populated but checked that the element is NULL. This was never
the case because the address of an element of a statically allocated
array cannot be NULL.

Fix this by check if the function pointer is NULL instead. This means
that the element is not populated.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I1d769d6609fa4517199f022e1a262c4494c8f63a
src/lttng-syscalls.c
This page took 0.025368 seconds and 4 git commands to generate.