diff options
author | Wladimir J. van der Laan <laanwj@protonmail.com> | 2019-10-10 13:25:08 +0200 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2019-10-19 14:58:27 -0400 |
commit | 0b18ea6f570e24c9719c10eb6e125da743409c58 (patch) | |
tree | 326e9024ec8db22e81d6465cb2e4a756aec3b39e /src/versionbitsinfo.h | |
parent | ac30fc4f599b28fc09a854bf2d2940fe2eb5fcdf (diff) |
util: Filter control characters out of log messages
Belts and suspenders: make sure outgoing log messages don't contain
potentially suspicious characters, such as terminal control codes.
This escapes control characters except newline ('\n') in C syntax.
It escapes instead of removes them to still allow for troubleshooting
issues where they accidentally end up in strings.
Github-Pull: #17095
Rebased-From: d7820a1250070f3640246ae497e049bee0b3516f
Diffstat (limited to 'src/versionbitsinfo.h')
0 files changed, 0 insertions, 0 deletions