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
selectors::OpaqueElement::new
is unsound
#31304
Comments
OpaqueElement::new
is unsoundselectors::OpaqueElement::new
is unsound
It seems that the issue is in fact how this API is used rather than the API itself. Closing then and opening an issue on the relevant repository. |
AFAICS this here is all fine, but librsvg is probably wrong here. It's passing the For reference, the compiler warning from @GuillaumeGomez here is
|
Permalink for the offending source code in librsvg - I've fixed this by not returning a Also, I couldn't find a way to trigger a bug due to this unsoundness. Librsvg's test coverage indicates that the (Maybe the existing tests that actually execute that code got lucky with respect to the unsoundness?) I haven't actually looked at the coverage for |
When building librsvg with the GCC backend, we got a warning about returning a pointer to a local variable here. The problem comes from
OpaqueElement::new
doing a reference to pointer conversion.EDIT: The bug might be coming from the rust GCC backend, just opening this issue in case it is not wrong. Don't hesitate to close it if there is no issue.
The text was updated successfully, but these errors were encountered: