-
Notifications
You must be signed in to change notification settings - Fork 733
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
Thread 'main' panicked at 'called Result::unwrap()
on an Err
value: FromBytesWithNulError { kind: InteriorNul(29) }
#2566
Comments
If I downgrade bindgen version to 0.65.x - it works fine. So it's a regression. |
Closed
Regression from 46a08b0, cc @reitermarkus |
Minimal repro: #define FOO "a\0b" |
emilio
added a commit
to emilio/rust-bindgen
that referenced
this issue
Jun 26, 2023
And fix a crash when strings have interior nulls. Fixes rust-lang#2566
emilio
added a commit
to emilio/rust-bindgen
that referenced
this issue
Jun 26, 2023
And fix a crash when strings have interior nulls. Fixes rust-lang#2566
emilio
added a commit
to emilio/rust-bindgen
that referenced
this issue
Jun 26, 2023
And fix a crash when strings have interior nulls. Fixes rust-lang#2566
emilio
added a commit
that referenced
this issue
Jun 26, 2023
And fix a crash when strings have interior nulls. Fixes #2566
Thanks for such a quick fix! |
Just ran into this myself, glad to see it's already been fixed in git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Input C/C++ Header
Sorry, but I wasn't able to reduce headers for some reason - error disappears. I am attaching the full project and an archive with the Rizin headers.
The system is macOS ARM64 13.4
bindgen-crash-reproducer.zip
rizin-headers.zip
error_report.log.zip
The headers are of the Rizin project: https://github.com/rizinorg/rizin
Bindgen Invocation
See
build.rs
in the attached archiveActual Results
Expected Results
No crash
The text was updated successfully, but these errors were encountered: