Fix: event notification capture: validate buffer length
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 28 Sep 2022 14:34:42 +0000 (10:34 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 28 Sep 2022 18:21:45 +0000 (14:21 -0400)
commitf125ded468c0897642e1a5608cee3c9c8398cdc5
tree9677ae8714c3391731f76c17d89536a64968cb5c
parent95ab0b458d258f604de7a1ef387e4be0d1c7ceb5
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: Ifa2cdaf084e2ebee2efa052331107cb4d9095243
src/lttng-event-notifier-notification.c
This page took 0.026107 seconds and 4 git commands to generate.