forked from fkie-cad/cwe_checker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/ir/project: add pass to retarget returns from non-returning calls
The original fix for Issue fkie-cad#461 in Commit ("lib/ir/project: propagate control flow for call returns") was incomplete. The original problem was due to a call to a function without a return instruction "returning" to a block that could be optimized away in the propagate control flow pass. Retargeting the call return can only solve the issue when the return block can be retargeted (and the retarget is not optimized away), which is not the case for condition blocks. Thus, always retarget returns from calls to functions without a ret to the artificial sink. Link: fkie-cad#462 (comment) Signed-off-by: Valentin Obst <[email protected]>
- Loading branch information
Valentin Obst
committed
May 8, 2024
1 parent
5945796
commit b27d393
Showing
1 changed file
with
108 additions
and
44 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