-
Notifications
You must be signed in to change notification settings - Fork 243
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
analyze: avoid rewriting structs mentioned in extern declarations #948
Comments
aneksteind
added a commit
that referenced
this issue
Jun 14, 2023
aneksteind
added a commit
that referenced
this issue
Jun 14, 2023
aneksteind
added a commit
that referenced
this issue
Jun 14, 2023
aneksteind
added a commit
that referenced
this issue
Jun 14, 2023
aneksteind
added a commit
that referenced
this issue
Jun 14, 2023
aneksteind
added a commit
that referenced
this issue
Jun 14, 2023
aneksteind
added a commit
that referenced
this issue
Jun 14, 2023
aneksteind
added a commit
that referenced
this issue
Jun 14, 2023
aneksteind
added a commit
that referenced
this issue
Jun 16, 2023
Fixes #948. Fixes an issue where we would rewrite structs and their fields even though they appear in extern blocks.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Structs like
FILE
, which are used in external libc functions likefwrite
, should have their fields markedFIXED
so we don't try to rewrite them. Even changing pointers to&
/&mut
should be forbidden, even though it doesn't change the layout, because the correctness of that change depends on details of the behavior of the libc functions that use the type.The text was updated successfully, but these errors were encountered: