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:15:04 +0000 (15:15 -0400)
commit959132c967690a1ab263766279e779c4d36fa3b9
treea149a04a409b9188336f84998e1ff712822852ca
parent77fcffefa34f8de5c4988eea035883a65c6befbc
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.026899 seconds and 4 git commands to generate.