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

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

guusw
Copy link
Contributor

@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.

@tantaman tantaman merged commit 010883b into vlcn-io:main Jun 4, 2024
7 of 9 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