Skip to content

Conversation

@spaceone
Copy link
Contributor

None of the invisible ASCII Control chars 0 - 32 were replaced.
This PR replaces them with a unicode representation, the same as go-logfmt does it.
e.g. \x00"\u0000".

This is security critical, as currently \r and other things would be part of the raw log.
It would e.g. allow with ANSI escape sequences to set information in a linux terminal like the window name.

@spaceone spaceone force-pushed the fix/quote-control-chars branch 2 times, most recently from b99a925 to 21afb78 Compare September 25, 2025 10:14
None of the invisible ASCII Control chars 0 - 32 were replaced.
This PR replaces them with a unicode representation, the same as go-logfmt does it.
e.g. `\x00` → `"\u0000"`

This is security critical, as currently `\r` and other things would be part of the raw log.
It would e.g. allow via ANSI escape sequences to set information in a linux terminal, like the window name/title.
@spaceone spaceone force-pushed the fix/quote-control-chars branch from 21afb78 to cf5ed75 Compare September 25, 2025 10:36
@josheppinette josheppinette merged commit 56a5819 into josheppinette:main Sep 25, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants