]> git.lttng.org Git - lttng-ust.git/commit
Fix: Initialize fd field of struct lttng_ust_elf to -1 at allocation
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 14 Nov 2018 19:38:37 +0000 (14:38 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 22 Jan 2019 21:52:23 +0000 (16:52 -0500)
commita019e014fa11e15c79451904a1e13bbb3f528733
treeef5d5d70d6456b3ec9e448ae9f6c557b39ae1d82
parent0a722bbae004bff82b6f057e3660259de132d15e
Fix: Initialize fd field of struct lttng_ust_elf to -1 at allocation

In rare cases when the executable cannot be open, using a default value
of zero lead to invalid close call and fd tracker removal.

fixes #1171

Reported-by: Stefan Palade <stefan.palade@windriver.com>
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-ust-elf.c
This page took 0.029357 seconds and 4 git commands to generate.