-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
non ub exploit mode: fix false positive with fn calls
- Loading branch information
1 parent
aa78abe
commit ce35c2b
Showing
3 changed files
with
24 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
; TEST-ARGS: -disallow-ub-exploitation | ||
|
||
declare ptr @fn() null_pointer_is_valid | ||
|
||
define i32 @src() null_pointer_is_valid { | ||
%call1 = call ptr @fn() | ||
load i32, ptr %call1, align 1 | ||
ret i32 0 | ||
} | ||
|
||
define i32 @tgt() null_pointer_is_valid { | ||
%call1 = call ptr @fn() | ||
load i32, ptr %call1, align 1 | ||
ret i32 0 | ||
} |