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

Macros for c-style strings should check for interior nuls #28

Closed
OpenByteDev opened this issue Jun 25, 2022 · 0 comments
Closed

Macros for c-style strings should check for interior nuls #28

OpenByteDev opened this issue Jun 25, 2022 · 0 comments

Comments

@OpenByteDev
Copy link
Contributor

I think the macros for c-style strings like u16cstr! should validate their input and check for interior nuls like other crates like cstr and wchar do.
Otherwise it is possible to construct illegal strings without any unchecked method.

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

No branches or pull requests

1 participant