~lttng/lttng-ust/lttng-ust

Viewing all changes in revision 3001.

  • Committer: Mathieu Desnoyers
  • Date: 2022-09-28 18:26:17 UTC
  • Revision ID: git-v1:c651e8720fb4cf5751a7d152ab7067025b6fc6a7
Fix: event notification capture error handling

When the captured fields end up taking more than

  PIPE_BUF - sizeof(struct lttng_ust_abi_event_notifier_notification) - 1

bytes of space for the msgpack message, the notification append capture
fails.

Currently, the result is that the msgpack buffer will contain a (likely
corrupted) truncated msgpack data.

Handle those overflow errors, and when they are encountered, reset the
msgpack writer position to skip the problematic captured field entirely.

Change-Id: I7ba1bf06aa72512fc73211a1d8ae6823d0e8d7ff

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: