File tree 3 files changed +26
-2
lines changed
3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 1
1
CORE
2
2
main.c
3
- --pointer-check --bounds-check
3
+ --pointer-check --bounds-check --malloc-may-fail --malloc-fail-null
4
4
VERIFICATION SUCCESSFUL
5
5
^EXIT=0$
6
6
^SIGNAL=0$
7
7
--
8
- ^\*\*\*\* WARNING: no body for function posix_memalign
8
+ ^warning: ignoring
Original file line number Diff line number Diff line change
1
+ #include <stdlib.h>
2
+ #include <string.h>
3
+
4
+ int main ()
5
+ {
6
+ size_t size = 4 ;
7
+ size_t page_size = 4096 ;
8
+ void * src = "testing" ;
9
+ void * dest ;
10
+ posix_memalign (& dest , page_size , size );
11
+ memcpy (dest , src , size );
12
+ return 0 ;
13
+ }
Original file line number Diff line number Diff line change
1
+ CORE
2
+ main.c
3
+ --pointer-check --bounds-check --malloc-may-fail --malloc-fail-null
4
+ ^EXIT=10$
5
+ ^SIGNAL=0$
6
+ ^VERIFICATION FAILED$
7
+ \[main.precondition_instance.1\] .* memcpy src/dst overlap: FAILURE
8
+ \[main.precondition_instance.3\] .* memcpy destination region writeable: FAILURE
9
+ \*\* 2 of 14 failed
10
+ --
11
+ ^warning: ignoring
You can’t perform that action at this time.
0 commit comments