clang -cc1 -cc1 -triple amd64-unknown-openbsd7.0 -analyze -disable-free -disable-llvm-verifier -discard-value-names -main-file-name conftest.c -analyzer-store=region -analyzer-opt-analyze-nested-blocks -analyzer-checker=core -analyzer-checker=apiModeling -analyzer-checker=unix -analyzer-checker=deadcode -analyzer-checker=security.insecureAPI.UncheckedReturn -analyzer-checker=security.insecureAPI.getpw -analyzer-checker=security.insecureAPI.gets -analyzer-checker=security.insecureAPI.mktemp -analyzer-checker=security.insecureAPI.mkstemp -analyzer-checker=security.insecureAPI.vfork -analyzer-checker=nullability.NullPassedToNonnull -analyzer-checker=nullability.NullReturnedFromNonnull -analyzer-output plist -w -setup-static-analyzer -mrelocation-model pic -pic-level 1 -pic-is-pie -mframe-pointer=all -relaxed-aliasing -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-feature +retpoline-indirect-calls -target-feature +retpoline-indirect-branches -tune-cpu generic -debugger-tuning=gdb -fcoverage-compilation-dir=/usr/src/usr.sbin/unbound/obj -resource-dir /usr/local/lib/clang/13.0.0 -I /usr/src/usr.sbin/unbound -internal-isystem /usr/local/lib/clang/13.0.0/include -internal-externc-isystem /usr/include -O2 -fdebug-compilation-dir=/usr/src/usr.sbin/unbound/obj -ferror-limit 19 -fwrapv -D_RET_PROTECTOR -ret-protector -fgnuc-version=4.2.1 -vectorize-loops -vectorize-slp -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-valloc -fno-builtin-free -fno-builtin-strdup -fno-builtin-strndup -analyzer-output=html -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /home/ben/Projects/vmm/scan-build/2022-01-12-194120-40624-1 -x c conftest.c
1 | |
2 | #define PACKAGE_NAME "unbound" |
3 | #define PACKAGE_TARNAME "unbound" |
4 | #define PACKAGE_VERSION "1.13.2" |
5 | #define PACKAGE_STRING "unbound 1.13.2" |
6 | #define PACKAGE_BUGREPORT "unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues" |
7 | #define PACKAGE_URL "" |
8 | #define CONFCMDLINE "--enable-allsymbols --with-ssl=/usr --with-libevent=/usr --with-libexpat=/usr --without-pythonmodule --with-chroot-dir=/var/unbound --with-pidfile= --with-rootkey-file=/var/unbound/db/root.key --with-conf-file=/var/unbound/etc/unbound.conf --with-username=_unbound --disable-shared --disable-explicit-port-randomisation --without-pthreads" |
9 | #define HAVE_STDIO_H 1 |
10 | #define HAVE_STDLIB_H 1 |
11 | #define HAVE_STRING_H 1 |
12 | #define HAVE_INTTYPES_H 1 |
13 | #define HAVE_STDINT_H 1 |
14 | #define HAVE_STRINGS_H 1 |
15 | #define HAVE_SYS_STAT_H 1 |
16 | #define HAVE_SYS_TYPES_H 1 |
17 | #define HAVE_UNISTD_H 1 |
18 | #define HAVE_WCHAR_H 1 |
19 | #define STDC_HEADERS 1 |
20 | #define _ALL_SOURCE 1 |
21 | #define _DARWIN_C_SOURCE 1 |
22 | #define _GNU_SOURCE 1 |
23 | #define _HPUX_ALT_XOPEN_SOCKET_API 1 |
24 | #define _NETBSD_SOURCE 1 |
25 | #define _OPENBSD_SOURCE 1 |
26 | #define _POSIX_PTHREAD_SEMANTICS 1 |
27 | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 |
28 | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 |
29 | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 |
30 | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 |
31 | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 |
32 | #define __STDC_WANT_LIB_EXT2__ 1 |
33 | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 |
34 | #define _TANDEM_SOURCE 1 |
35 | #define __EXTENSIONS__ 1 |
36 | #define CONFIGFILE "/var/unbound/etc/unbound.conf" |
37 | #define RUN_DIR "/var/unbound/etc" |
38 | #define CHROOT_DIR "/var/unbound" |
39 | #define SHARE_DIR "/var/unbound/etc" |
40 | #define PIDFILE "" |
41 | #define ROOT_ANCHOR_FILE "/var/unbound/db/root.key" |
42 | #define ROOT_CERT_FILE "/var/unbound/etc/icannbundle.pem" |
43 | #define UB_USERNAME "_unbound" |
44 | #define WINVER 0x0502 |
45 | #define RSRC_PACKAGE_VERSION 1,13,2,0 |
46 | #define HAVE_GETOPT_H 1 |
47 | #define HAVE_TIME_H 1 |
48 | #define HAVE_ATTR_FORMAT 1 |
49 | #define HAVE_ATTR_UNUSED 1 |
50 | #define HAVE_ATTR_WEAK 1 |
51 | #define ATTR_WEAK __attribute__((weak)) |
52 | #define HAVE_ATTR_NORETURN 1 |
53 | #define ATTR_NORETURN __attribute__((__noreturn__)) |
54 | #define YYTEXT_POINTER 1 |
55 | #define LEX_HAS_YYLEX_DESTROY 1 |
56 | #define HAVE_DLFCN_H 1 |
57 | #define LT_OBJDIR ".libs/" |
58 | #define HAVE_STDARG_H 1 |
59 | #define HAVE_STDBOOL_H 1 |
60 | #define HAVE_NETINET_IN_H 1 |
61 | #define HAVE_NETINET_TCP_H 1 |
62 | #define HAVE_SYS_PARAM_H 1 |
63 | #define HAVE_SYS_SELECT_H 1 |
64 | #define HAVE_SYS_SOCKET_H 1 |
65 | #define HAVE_SYS_UN_H 1 |
66 | #define HAVE_SYS_UIO_H 1 |
67 | #define HAVE_SYS_RESOURCE_H 1 |
68 | #define HAVE_ARPA_INET_H 1 |
69 | #define HAVE_SYSLOG_H 1 |
70 | #define HAVE_NETDB_H 1 |
71 | #define HAVE_SYS_WAIT_H 1 |
72 | #define HAVE_PWD_H 1 |
73 | #define HAVE_GLOB_H 1 |
74 | #define HAVE_GRP_H 1 |
75 | #define HAVE_LOGIN_CAP_H 1 |
76 | #define HAVE_ENDIAN_H 1 |
77 | #define HAVE_SYS_ENDIAN_H 1 |
78 | #define HAVE_SYS_IPC_H 1 |
79 | #define HAVE_SYS_SHM_H 1 |
80 | #define HAVE_IFADDRS_H 1 |
81 | #define HAVE_NET_IF_H 1 |
82 | #define SIZEOF_TIME_T 8 |
83 | #define SIZEOF_SIZE_T 8 |
84 | #define HAVE_CHOWN 1 |
85 | #define HAVE_FORK 1 |
86 | #define HAVE_VFORK 1 |
87 | #define HAVE_WORKING_VFORK 1 |
88 | #define HAVE_WORKING_FORK 1 |
89 | #define RETSIGTYPE void |
90 | #define HAVE_FSEEKO 1 |
91 | #define NONBLOCKING_IS_BROKEN 1 |
92 | #define HAVE_STRPTIME 1 |
93 | #define STRPTIME_WORKS 1 |
94 | #define REUSEPORT_DEFAULT 0 |
95 | |
96 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
97 | #include <stdlib.h> |
98 | #else |
99 | char *malloc (); |
100 | #endif |
101 | |
102 | int |
103 | main (void) |
104 | { |
105 | if(malloc(0) != 0) return 1; |
| |
| 2 | | Assuming the condition is true | |
|
| |
| |
106 | ; |
107 | return 0; |
108 | } |
109 | |