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

Remove type inference casts from FFI code #1

Open
tiago-lqt opened this issue Apr 4, 2021 · 0 comments
Open

Remove type inference casts from FFI code #1

tiago-lqt opened this issue Apr 4, 2021 · 0 comments

Comments

@tiago-lqt
Copy link
Collaborator

Remove all pointer casts using type inference from code interacting with the openexr-core-sys crate.

The current Drop function for Reader has an type cast using type inference.
This caused casting the *const sys::exr_file_t returned by self.inner() into *mut *mut exr_file_t required by exr_close(). Which lead to a crash at runtime when dropping a Reader struct.

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

No branches or pull requests

1 participant