Project

General

Profile

Actions

Bug #834

closed

ctf-text: ASCII control characters are not escaped when printing a string/text array

Added by Philippe Proulx about 10 years ago. Updated almost 5 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
09/10/2014
Due date:
% Done:

0%

Estimated time:

Description

ASCII control characters are not escaped when the ctf-text format prints strings or text arrays, leading to interesting results.

Simple steps to reproduce:

lttng create bug
lttng enable-event -k lttng_logger
lttng start
echo -ne 'hello\nworld\x08\x08\x08man\x00true end' > /proc/lttng-logger
lttng stop
lttng view

Babeltrace shows:

[15:04:54.524520321] (+?.?????????) archeepp lttng_logger: { cpu_id = 0 }, { _msg_length = 25, msg = "hello
woman" }
Actions

Also available in: Atom PDF