-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support intermediate casts in calls. (#1022)
In lighttpd there are intermediate casts where the final cast is an argument to `memcpy` or `memset`. Prior to this, only one cast to `*libc::c_void` was exempted, the final one. Now, all casts are skipped/allowed as long as the final cast serves as input to a function like `memcpy` or `free` or `realloc`. Also, any non-skipped casts into `*libc::c_void` are now allowed to support cast ancestry that crosses function call boundaries, as the intra-body analysis starting backwards from `memset` and `memcpy` does not capture these cases. The contents of `algo_md5.rs` match exactly the transpiled output from `lighttpd` with no alterations made.
- Loading branch information
Showing
3 changed files
with
105 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters