Implement ring buffer Pascal string copy
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 7 May 2021 18:05:00 +0000 (14:05 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 11 May 2021 19:14:55 +0000 (15:14 -0400)
commit0d1080f40a7ac09fce7120398746b1bfab3d32d8
tree1763a788c5267e2a7e35c8b1ef8f04db892863ab
parentf5ffbd770ec2b9d1ac9b7059eb33a01432043bce
Implement ring buffer Pascal string copy

Introduce a new lib_ring_buffer_pstrcpy() to handle copying into a ring
buffer Pascal String, use them for array and sequence of text.

Cover strings copied from both kernel and user-space.

This ensures that when copying from a string input to a ring buffer
utf8/ascii-encoded array or sequence, the source is not read beyond its
null terminating character.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I74996c8c8db6eec39b189693739aa2f980e29816
include/lttng/events.h
include/lttng/tracepoint-event-impl.h
include/ringbuffer/backend.h
include/ringbuffer/backend_internal.h
src/lib/ringbuffer/ring_buffer_backend.c
src/lttng-ring-buffer-client.h
src/lttng-ring-buffer-metadata-client.h
This page took 0.027119 seconds and 4 git commands to generate.