Skip to content

Sanitize UTF-8 in dmi collector - #2229

Merged
SuperQ merged 1 commit into
masterfrom
superq/dmi_utf8
Dec 1, 2021
Merged

SuperQ merged 1 commit into
masterfrom
superq/dmi_utf8

Conversation

@SuperQ

@SuperQ SuperQ commented Nov 29, 2021

Copy link
Copy Markdown
Member

Replace invalid UTF-8 chars with "�" string.

Fixes: #2228

Signed-off-by: Ben Kochie [email protected]

@SuperQ

SuperQ commented Nov 29, 2021

Copy link
Copy Markdown
Member Author

CC @bdrung

Comment thread collector/dmi.go Resolved

@discordianfish discordianfish left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test would be nice but LGTM either way

@SuperQ
SuperQ force-pushed the superq/dmi_utf8 branch 2 times, most recently from 0f0ec17 to b2a8995 Compare December 1, 2021 09:09
Replace invalid UTF-8 chars with "�" string.

Fixes: #2228

Signed-off-by: Ben Kochie <[email protected]>
@SuperQ
SuperQ merged commit 1d5afd0 into master Dec 1, 2021
@SuperQ
SuperQ deleted the superq/dmi_utf8 branch December 1, 2021 10:13
SuperQ added a commit that referenced this pull request Dec 1, 2021
* [BUGFIX] Handle nil CPU thermal power status on M1 #2218
* [BUGFIX] bsd: Ignore filesystems flagged as MNT_IGNORE. #2227
* [BUGFIX] Sanitize UTF-8 in dmi collector #2229

Signed-off-by: Ben Kochie <[email protected]>
@SuperQ SuperQ mentioned this pull request Dec 1, 2021
SuperQ added a commit that referenced this pull request Dec 4, 2021
* [BUGFIX] Handle nil CPU thermal power status on M1 #2218
* [BUGFIX] bsd: Ignore filesystems flagged as MNT_IGNORE. #2227
* [BUGFIX] Sanitize UTF-8 in dmi collector #2229

Signed-off-by: Ben Kochie <[email protected]>
SuperQ added a commit that referenced this pull request Dec 4, 2021
Replace invalid UTF-8 chars with "�" string.

Fixes: #2228

Signed-off-by: Ben Kochie <[email protected]>
SuperQ added a commit that referenced this pull request Dec 4, 2021
* [BUGFIX] Handle nil CPU thermal power status on M1 #2218
* [BUGFIX] bsd: Ignore filesystems flagged as MNT_IGNORE. #2227
* [BUGFIX] Sanitize UTF-8 in dmi collector #2229

Signed-off-by: Ben Kochie <[email protected]>
@SuperQ SuperQ mentioned this pull request Dec 4, 2021
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this pull request Apr 9, 2024
Replace invalid UTF-8 chars with "�" string.

Fixes: prometheus#2228

Signed-off-by: Ben Kochie <[email protected]>
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this pull request Apr 9, 2024
* [BUGFIX] Handle nil CPU thermal power status on M1 prometheus#2218
* [BUGFIX] bsd: Ignore filesystems flagged as MNT_IGNORE. prometheus#2227
* [BUGFIX] Sanitize UTF-8 in dmi collector prometheus#2229

Signed-off-by: Ben Kochie <[email protected]>
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this pull request Apr 9, 2024
Replace invalid UTF-8 chars with "�" string.

Fixes: prometheus#2228

Signed-off-by: Ben Kochie <[email protected]>
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this pull request Apr 9, 2024
* [BUGFIX] Handle nil CPU thermal power status on M1 prometheus#2218
* [BUGFIX] bsd: Ignore filesystems flagged as MNT_IGNORE. prometheus#2227
* [BUGFIX] Sanitize UTF-8 in dmi collector prometheus#2229

Signed-off-by: Ben Kochie <[email protected]>
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.

panic: label value "\xc0\x1c[\x87" is not valid UTF-8

3 participants