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

Fix missing null terminator in schema name #430

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

guusw
Copy link

@guusw guusw commented Apr 26, 2024

So we were having some issues in release builds, apparently there is an undefined behavior conversion from "main" (rust string, NOT NULL TERMINATED) to &str using CStr::from_ptr (which expects a null terminated string)

This seems to be a decent fix, although you might want to go over similar code, there might be cases I missed.
Also the error codes are slightly vague, since all these conversions just return "out of memory" even though it's not what's going on.
Thanks.

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.

None yet

1 participant