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

lib: Stop using bitflags to declare FFI definitions. #66

Closed

Conversation

emilio
Copy link
Contributor

@emilio emilio commented Oct 9, 2017

Using bitflags for FFI is unsound in linux32, and it causes crashes like
https://bugzilla.mozilla.org/show_bug.cgi?id=1406952.

This is pretty similar to rust-lang/rust-bindgen#439.

For this to be properly type safe we need to wait for rust-lang/rust#43036.

Hopefully that's not for too long.

Using bitflags for FFI is unsound in linux32, and it causes crashes like
https://bugzilla.mozilla.org/show_bug.cgi?id=1406952.

This is pretty similar to
rust-lang/rust-bindgen#439.

For this to be properly type safe we need to wait for
rust-lang/rust#43036.

Hopefully that's not for too long.
@emilio
Copy link
Contributor Author

emilio commented Oct 9, 2017

r? @KyleMayes

@emilio
Copy link
Contributor Author

emilio commented Oct 11, 2017

@KyleMayes ping? It'd be nice to get this in soon, if you can, in order to unblock building firefox in 32-bit devices. I can also avoid using these functions in bindgen, but that's really a last-resort solution...

@KyleMayes
Copy link
Owner

Done, sorry for the delay.

@KyleMayes KyleMayes closed this Oct 11, 2017
@emilio emilio deleted the bye-type-safety-colon-opening-paren branch October 11, 2017 23:28
@emilio
Copy link
Contributor Author

emilio commented Oct 11, 2017

no worries, thanks a lot, as always :)

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