From: Jérémie Galarneau Date: Mon, 4 Oct 2021 16:41:51 +0000 (-0400) Subject: Fix: userspace-probe: unreported error on string copy error X-Git-Tag: v2.12.6~9 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=9e6c156fee2c2834063198384e3c35001992c7eb;hp=9e6c156fee2c2834063198384e3c35001992c7eb;p=lttng-tools.git 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 Change-Id: Ia07cac7cba315ea79337262e9082dd06eb60950f ---