Skip to content

Do not add null byte for immutable strings#137

Merged
Flakebi merged 1 commit intoGPUOpen-Drivers:devfrom
jundaliuAMD:string-null-byte
Mar 10, 2026
Merged

Do not add null byte for immutable strings#137
Flakebi merged 1 commit intoGPUOpen-Drivers:devfrom
jundaliuAMD:string-null-byte

Conversation

@jundaliuAMD
Copy link
Contributor

CreateGlobalString will add a null byte to the end of string by default, which prevents us from getting the exact same string back as we set.

This makes it hard to use for cases where we need exact string matching, such as function names lookup.

`CreateGlobalString` will add a null byte to the end of string by default,
which prevents us from getting the exact same string back as we set.

This makes it hard to use for cases where we need exact string matching, such
as function names lookup.
Copy link
Member

@Flakebi Flakebi left a comment

Choose a reason for hiding this comment

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

Makes sense to me, thanks!

@Flakebi Flakebi merged commit 9ff519b into GPUOpen-Drivers:dev Mar 10, 2026
8 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