File tree 4 files changed +37
-1
lines changed
4 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 1
1
.PRECIOUS : % .ll
2
2
3
- TARGETS =simple0.out simple1.out branch0.out loop0.out
3
+ TARGETS =simple0.out simple1.out branch0.out loop0.out branch1.out branch2.out loop1.out
4
4
5
5
all : ${TARGETS}
6
6
Original file line number Diff line number Diff line change
1
+ #include "prelude.h"
2
+
3
+ int main (int argc , char * * argv ) {
4
+ int x = tainted_input ();
5
+ int y ;
6
+ if (argc > 2 ) {
7
+ x = 0 ;
8
+ y = sanitizer (x );
9
+ } else {
10
+ y = not_sanitizer (x );
11
+ }
12
+ int z = 4 / y ; // alarm
13
+ }
Original file line number Diff line number Diff line change
1
+ #include "prelude.h"
2
+
3
+ int main (int argc , char * * argv ) {
4
+ int x = tainted_input ();
5
+ int y ;
6
+ if (1 ) {
7
+ y = 0 ;
8
+ } else {
9
+ y = 100 ;
10
+ }
11
+ int z = 4 / y ; // alarm
12
+ }
Original file line number Diff line number Diff line change
1
+ #include "prelude.h"
2
+
3
+ int main (int argc , char * * argv ) {
4
+ int x ;
5
+ int y = tainted_input ();
6
+ x = 0 ;
7
+ while (x > 0 ) {
8
+ y = sanitizer (y );
9
+ }
10
+ int z = 4 / y ; // alarm
11
+ }
You can’t perform that action at this time.
0 commit comments