Fix: userspace-probe: unreported error on string copy error
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 4 Oct 2021 16:41:51 +0000 (12:41 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 18 Oct 2021 18:58:29 +0000 (14:58 -0400)
commit8434f919e7b4db73116fedd90df78fe74c6b4d7d
treec902808c2e977515049f4d63262fc9e14b55d01f
parent72a77198b9733fd48fa403b2534a464bb6b9f5d1
Fix: userspace-probe: unreported error on string copy error

Issue
=====

String copy errors, either due to the length or an allocation failure,
are not reported by
lttng_userspace_probe_location_tracepoint_create_from_payload
and don't log a clear error message.

This allowed truncation bugs like the one fixed in b45a296 to go
unnoticed.

Fix
===

Return an "invalid" status code and log a more descriptive error
message.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ia07cac7cba315ea79337262e9082dd06eb60950f
src/common/userspace-probe.c
This page took 0.027038 seconds and 5 git commands to generate.