summaryrefslogtreecommitdiff
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2017-01-03 10:35:34 -0800
committerNick Kralevich <nnk@google.com>2017-01-03 12:39:28 -0800
commitfeb08eae5c36f28b220e0175dcef5b4e68ffa995 (patch)
tree3d8874c2fb0917eaa2774dbe8a3d36f381ea2f37 /libutils/Unicode.cpp
parent572ac060d96bc36e39e3de96a9ff1185bd97db10 (diff)
LogAudit.cpp: replace newlines with spaces in audit messages
Some kernels have a bug which causes a newline to show up in audit messages. The embedded newlines cause one message to look like two due to prefix controls. Replace any newlines with spaces. Duplicate spaces are further consolidated in code immediately after this newly added code. Test: create an audit message with a newline, and watch it be cleaned up. Bug: 27878170 Change-Id: Id90c29ab9e10d3be96f51403b0293622d782422a
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions