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/nsd/obj -resource-dir /usr/local/lib/clang/13.0.0 -I . -I /usr/src/usr.sbin/nsd -internal-isystem /usr/local/lib/clang/13.0.0/include -internal-externc-isystem /usr/include -O2 -fdebug-compilation-dir=/usr/src/usr.sbin/nsd/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 "NSD" |
3 | #define PACKAGE_TARNAME "nsd" |
4 | #define PACKAGE_VERSION "4.3.9" |
5 | #define PACKAGE_STRING "NSD 4.3.9" |
6 | #define PACKAGE_BUGREPORT "nsd-bugs@nlnetlabs.nl" |
7 | #define PACKAGE_URL "" |
8 | #define CONFCMDLINE "--prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-ssl=/usr --with-user=_nsd --with-chroot=/var/nsd --with-configdir=/var/nsd/etc --with-pidfile= --with-zonesdir=/var/nsd/zones --with-dbfile= --with-zonelistfile=/var/nsd/db/zone.list --with-xfrdir=/var/nsd/run/xfr --with-xfrdfile=/var/nsd/run/xfrd.state --with-libevent=/usr --enable-ratelimit --enable-root-server" |
9 | #define STDC_HEADERS 1 |
10 | #define HAVE_SYS_TYPES_H 1 |
11 | #define HAVE_SYS_STAT_H 1 |
12 | #define HAVE_STDLIB_H 1 |
13 | #define HAVE_STRING_H 1 |
14 | #define HAVE_MEMORY_H 1 |
15 | #define HAVE_STRINGS_H 1 |
16 | #define HAVE_INTTYPES_H 1 |
17 | #define HAVE_STDINT_H 1 |
18 | #define HAVE_UNISTD_H 1 |
19 | #define __EXTENSIONS__ 1 |
20 | #define _ALL_SOURCE 1 |
21 | #define _GNU_SOURCE 1 |
22 | #define _POSIX_PTHREAD_SEMANTICS 1 |
23 | #define _TANDEM_SOURCE 1 |
24 | #define CONFIGDIR "/var/nsd/etc" |
25 | #define CONFIGFILE "/var/nsd/etc/nsd.conf" |
26 | #define PIDFILE "" |
27 | #define DBFILE "" |
28 | #define ZONESDIR "/var/nsd/zones" |
29 | #define XFRDFILE "/var/nsd/run/xfrd.state" |
30 | #define ZONELISTFILE "/var/nsd/db/zone.list" |
31 | #define XFRDIR "/var/nsd/run/xfr" |
32 | #define NSD_START_PATH "/usr/sbin/nsd" |
33 | #define CHROOTDIR "/var/nsd" |
34 | #define USER "_nsd" |
35 | #define YYTEXT_POINTER 1 |
36 | #define HAVE_ATTR_FORMAT 1 |
37 | #define HAVE_ATTR_UNUSED 1 |
38 | #define HAVE_ATTR_WEAK 1 |
39 | #define ATTR_WEAK __attribute__((weak)) |
40 | #define HAVE_ATTR_NORETURN 1 |
41 | #define ATTR_NORETURN __attribute__((__noreturn__)) |
42 | #define HAVE_EVENT_H 1 |
43 | #define HAVE_EVENT_BASE_FREE 1 |
44 | #define HAVE_EVENT_BASE_ONCE 1 |
45 | #define HAVE_EVENT_BASE_NEW 1 |
46 | #define HAVE_EVENT_BASE_GET_METHOD 1 |
47 | #define HAVE_SYS_WAIT_H 1 |
48 | #define HAVE_TIME_H 1 |
49 | #define HAVE_ARPA_INET_H 1 |
50 | #define HAVE_SIGNAL_H 1 |
51 | #define HAVE_STRING_H 1 |
52 | #define HAVE_STRINGS_H 1 |
53 | #define HAVE_FCNTL_H 1 |
54 | #define HAVE_LIMITS_H 1 |
55 | #define HAVE_NETINET_IN_H 1 |
56 | #define HAVE_NETINET_TCP_H 1 |
57 | #define HAVE_STDDEF_H 1 |
58 | #define HAVE_SYS_PARAM_H 1 |
59 | #define HAVE_SYS_SOCKET_H 1 |
60 | #define HAVE_SYS_UN_H 1 |
61 | #define HAVE_SYSLOG_H 1 |
62 | #define HAVE_UNISTD_H 1 |
63 | #define HAVE_SYS_SELECT_H 1 |
64 | #define HAVE_STDARG_H 1 |
65 | #define HAVE_STDINT_H 1 |
66 | #define HAVE_NETDB_H 1 |
67 | #define HAVE_GLOB_H 1 |
68 | #define HAVE_GRP_H 1 |
69 | #define HAVE_ENDIAN_H 1 |
70 | #define HAVE_IFADDRS_H 1 |
71 | #define STRPTIME_WORKS 1 |
72 | #define NONBLOCKING_IS_BROKEN 1 |
73 | #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1 |
74 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 |
75 | #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 |
76 | #define HAVE_UNISTD_H 1 |
77 | #define HAVE_CHOWN 1 |
78 | #define HAVE_FORK 1 |
79 | #define HAVE_VFORK 1 |
80 | #define HAVE_WORKING_VFORK 1 |
81 | #define HAVE_WORKING_FORK 1 |
82 | #define HAVE_STDLIB_H 1 |
83 | |
84 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
85 | # include <stdlib.h> |
86 | #else |
87 | char *malloc (); |
88 | #endif |
89 | |
90 | int |
91 | main () |
92 | { |
93 | return ! malloc (0); |
| |
| 2 | | Assuming the condition is false | |
|
| |
94 | ; |
95 | return 0; |
96 | } |