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

Update string representation to not char* #665

Merged
merged 2 commits into from
Sep 12, 2023

Conversation

alexcrichton
Copy link
Member

Use uint8_t* to represent that it's not a normal char* since it's neither nul-terminated and it may also contain interior nul characters.

Closes #662

Use `uint8_t*` to represent that it's not a normal `char*` since it's
neither nul-terminated and it may also contain interior nul characters.

Closes bytecodealliance#662
@alexcrichton
Copy link
Member Author

@Mossaka would you be able to assist with the Go failures here? I could add some exceptions to ignore the tests but that seems infeasible in this case because it'd break all usage of strings from Go

@Mossaka
Copy link
Member

Mossaka commented Sep 11, 2023

Yup I'll take a look at today. Thanks for letting me know

@alexcrichton
Copy link
Member Author

Thanks! Not super urgent, but there may also be a simple fix too

Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>
@Mossaka
Copy link
Member

Mossaka commented Sep 11, 2023

@alexcrichton I just added a commit, should fix the Go failures.

@alexcrichton alexcrichton merged commit b8c1222 into bytecodealliance:main Sep 12, 2023
@alexcrichton alexcrichton deleted the update-string-repr branch September 12, 2023 16:05
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.

C string bindings generate char*, change to uint8_t*
2 participants