Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove extraneous NUL terminator from dumped kernel arg type names #339

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

bashbaug
Copy link
Contributor

Description of Changes

A C++ std::string can store a string NUL terminator. So, if we're reading directly into a std::string we need to remove the NUL terminator, which is not required. Fixes this issue for kernel arg types names, and unifies the mechanism with program build options, also.

Testing Done

Verified that kernel arg type names and program build options do not have extraneous NUL terminators in a hex editor.

@bashbaug bashbaug merged commit 365c29e into intel:main Feb 19, 2024
5 checks passed
@bashbaug bashbaug deleted the fix-kernel-arg-type-dump branch February 19, 2024 17:43
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.

1 participant