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 panic on getting config value from NativeConfig #587

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

Magister
Copy link
Contributor

Kafka can return string with multiple \0 chars (seen at least on Windows x64), and CStr::from_bytes_with_nul panics in that case. String::from_utf8_lossy() handles that ok

Kafka can return string with multiple \0 chars (seen on Windows x64),
and CStr::from_bytes_with_nul panics in that case.
String::from_utf8_lossy() handles that ok
@davidblewett davidblewett merged commit e69c2aa into fede1024:master Jan 19, 2024
@jjh42
Copy link

jjh42 commented Feb 5, 2024

This change seems to result in getting an extra null character and therefore panicing (on linux) when trying to parse the result into a number.

The change in the linked PR fixes it (although that PR also contains a lot of other changes)

@davidblewett
Copy link
Collaborator

@jjh42 yes; it might be simpler to revert this. I ran out of time ironing out the issues upgrading the MSRV to be able to handle this in a better fashion.

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.

3 participants