Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

Smjert
Copy link
Member

@Smjert Smjert commented Oct 22, 2024

Fixes #8443

@Smjert Smjert force-pushed the stefano/fix/cpuid-null-bytes branch from ccbfa26 to 9819cca Compare October 22, 2024 22:35
@Smjert Smjert marked this pull request as ready for review October 23, 2024 10:30
@Smjert Smjert requested review from a team as code owners October 23, 2024 10:30
@Smjert
Copy link
Member Author

Smjert commented Oct 23, 2024

I wonder if we should also trim spaces; this is done by other tables like system_info when they query cpuid. Normally I would keep both embedded nulls and the spaces to have a faithful representation (because embedded nulls could be used to hide data).
I guess I could add in a new PR additional base64 columns to retain the complete value.

@directionless
Copy link
Member

I wonder if we should also trim spaces; this is done by other tables like system_info when they query cpuid. Normally I would keep both embedded nulls and the spaces to have a faithful representation (because embedded nulls could be used to hide data). I guess I could add in a new PR additional base64 columns to retain the complete value.

I think there's often value in trimming spaces. I don't think I have an opinion about data smuggling here, or whether or not we should have an additional raw base64 column. I'd approve it if you think it has value

@Smjert
Copy link
Member Author

Smjert commented Oct 23, 2024

I think there's often value in trimming spaces. I don't think I have an opinion about data smuggling here, or whether or not we should have an additional raw base64 column. I'd approve it if you think it has value

Yeah I was mostly weighing the usefulness of keeping the "true" display string in the cpuid table only, as for instance one can find examples of manufacturer strings here: https://en.wikipedia.org/wiki/CPUID, which are expected to potentially have leading or trailing spaces, but at the same thinking about it again you wouldn't need to query for vendor or product_name and need to differentiate them via number of spaces.

As for the data smuggling, definitely in this case there wouldn't be any adverse effect (while for instance if this was the Windows registry, that's another story), was mostly for curiosity in knowing if there was additional data or not.

In any case, I'll add the trimming.

@Smjert Smjert marked this pull request as draft October 23, 2024 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The equal operator doesn't correctly work

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.