Fix: event notification capture: validate buffer length
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 28 Sep 2022 14:41:08 +0000 (10:41 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 28 Sep 2022 18:26:28 +0000 (14:26 -0400)
commitba08b9fce68c0e9c31a860c3453983d3093f3eae
tree6b61d4c48f994de66f67fa09160d3dc5e96739b1
parentd9c66e5afd887aca6f8f914ec469b53109d9bd7a
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 <mathieu.desnoyers@efficios.com>
Change-Id: I819f2b3cdd7f23cd97e35ec5e5f615ef7d740dc5
src/lib/lttng-ust/event-notifier-notification.c
This page took 0.025358 seconds and 4 git commands to generate.