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

AsciiStringRef / UTF8StringRef memory safety concerns #285

Open
charleskorn opened this issue Nov 23, 2021 · 0 comments
Open

AsciiStringRef / UTF8StringRef memory safety concerns #285

charleskorn opened this issue Nov 23, 2021 · 0 comments

Comments

@charleskorn
Copy link
Contributor

charleskorn commented Nov 23, 2021

From #276:

I'm not sure if my changes are correct though:

  • should UTFStringRef.set() also update this.length to the length of the new string value?
  • should we be allocating additional space for the null terminator character in the call to getRuntime().getMemoryManager().allocateDirect()?
@charleskorn charleskorn changed the title AsciiStringRef / UTF8StringREf AsciiStringRef / UTF8StringRef memory safety concerns Nov 23, 2021
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