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

Transmuting to std::time::Instant is fragile #1

Open
pcwalton opened this issue Oct 4, 2019 · 0 comments
Open

Transmuting to std::time::Instant is fragile #1

pcwalton opened this issue Oct 4, 2019 · 0 comments

Comments

@pcwalton
Copy link

pcwalton commented Oct 4, 2019

https://github.com/BrainiumLLC/display-link/blob/master/src/macos.rs#L24

This could break at any time. The layout of std::time::Instant is undefined.

bors-servo added a commit to servo/surfman that referenced this issue Dec 11, 2022
Use forked display-link dependency.

https://github.com/servo/display-link/tree/no-transmute was created to work around BrainiumLLC/display-link#3, which was identified as a risk back in BrainiumLLC/display-link#1.
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