From: Mathieu Desnoyers Date: Wed, 28 Sep 2022 14:41:08 +0000 (-0400) Subject: Fix: event notification capture: validate buffer length X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=65c955a51b7d49c17baad6bc65b55f845808ba77;hp=65c955a51b7d49c17baad6bc65b55f845808ba77;p=lttng-ust.git Fix: event notification capture: validate buffer length Validate that the buffer length is large enough to hold empty capture fields. If the buffer is initially not large enough to hold empty capture fields for each field to capture, discard the notification. If after capturing a field there is not enough room anymore in the buffer to write empty capture fields, skip the offending large field by writing an empty capture field in its place. Signed-off-by: Mathieu Desnoyers Change-Id: I819f2b3cdd7f23cd97e35ec5e5f615ef7d740dc5 ---