-
Notifications
You must be signed in to change notification settings - Fork 32
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
Null pointer causing crash in debug builds. #24
Comments
I pushed a PR that addresses the issue. It's just a matter of explicitly checking for null pointers. In the process I also noticed that the rust crate points to a rather old commit of the C repo. |
Has there been any update on this bug? It is still appearing in the current crate, so I am assuming that it has not been addressed yet. |
Still happening to me and I'm not sure if @gwihlidal is active so it might be a while before he accepts the PR. |
As a temporary fix you can replace |
PR #27 has been closed and therefore this issue is resolved |
I suspect there is a bug in the library. In particular at line:
spirv-reflect-rs/src/convert.rs
Line 66 in b2c4527
It seems like it is possible for
ffi_type.members
to be null ifffi_type.member_count
is 0. However, rust considers this unsafe and will return the error:Thus no application using this crate can run correctly in debug mode.
OS: ubuntu 22.04
crate version: 0.2.3
rustc version: rustc 1.78.0-nightly (ef324565d 2024-02-27)
The text was updated successfully, but these errors were encountered: