aboutsummaryrefslogtreecommitdiff
path: root/src/optional.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@protonmail.com>2019-10-10 13:25:08 +0200
committerfanquake <fanquake@gmail.com>2019-10-19 14:58:27 -0400
commit0b18ea6f570e24c9719c10eb6e125da743409c58 (patch)
tree326e9024ec8db22e81d6465cb2e4a756aec3b39e /src/optional.h
parentac30fc4f599b28fc09a854bf2d2940fe2eb5fcdf (diff)
downloadbitcoin-0b18ea6f570e24c9719c10eb6e125da743409c58.tar.xz
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/optional.h')
0 files changed, 0 insertions, 0 deletions