clang -cc1 -cc1 -triple amd64-unknown-openbsd7.4 -analyze -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name conftest.c -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 -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -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/llvm16/lib/clang/16 -I /usr/src/usr.sbin/unbound -internal-isystem /usr/local/llvm16/lib/clang/16/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 -fcf-protection=branch -fno-jump-tables -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/scan/2024-01-11-140451-98009-1 -x c conftest.c
1 | |
2 | #define PACKAGE_NAME "unbound" |
3 | #define PACKAGE_TARNAME "unbound" |
4 | #define PACKAGE_VERSION "1.18.0" |
5 | #define PACKAGE_STRING "unbound 1.18.0" |
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 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 CONFIGFILE "/var/unbound/etc/unbound.conf" |
25 | #define RUN_DIR "/var/unbound/etc" |
26 | #define CHROOT_DIR "/var/unbound" |
27 | #define SHARE_DIR "/var/unbound/etc" |
28 | #define PIDFILE "" |
29 | #define ROOT_ANCHOR_FILE "/var/unbound/db/root.key" |
30 | #define ROOT_CERT_FILE "/var/unbound/etc/icannbundle.pem" |
31 | #define UB_USERNAME "_unbound" |
32 | #define WINVER 0x0502 |
33 | #define RSRC_PACKAGE_VERSION 1,18,0,0 |
34 | #define HAVE_GETOPT_H 1 |
35 | #define HAVE_TIME_H 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 YYTEXT_POINTER 1 |
43 | #define LEX_HAS_YYLEX_DESTROY 1 |
44 | #define HAVE_DLFCN_H 1 |
45 | #define LT_OBJDIR ".libs/" |
46 | #define HAVE_STDARG_H 1 |
47 | #define HAVE_STDBOOL_H 1 |
48 | #define HAVE_NETINET_IN_H 1 |
49 | #define HAVE_NETINET_TCP_H 1 |
50 | #define HAVE_SYS_PARAM_H 1 |
51 | #define HAVE_SYS_SELECT_H 1 |
52 | #define HAVE_SYS_SOCKET_H 1 |
53 | #define HAVE_SYS_UN_H 1 |
54 | #define HAVE_SYS_UIO_H 1 |
55 | #define HAVE_SYS_RESOURCE_H 1 |
56 | #define HAVE_ARPA_INET_H 1 |
57 | #define HAVE_SYSLOG_H 1 |
58 | #define HAVE_NETDB_H 1 |
59 | #define HAVE_SYS_WAIT_H 1 |
60 | #define HAVE_PWD_H 1 |
61 | #define HAVE_GLOB_H 1 |
62 | #define HAVE_GRP_H 1 |
63 | #define HAVE_LOGIN_CAP_H 1 |
64 | #define HAVE_ENDIAN_H 1 |
65 | #define HAVE_SYS_ENDIAN_H 1 |
66 | #define HAVE_SYS_IPC_H 1 |
67 | #define HAVE_SYS_SHM_H 1 |
68 | #define HAVE_IFADDRS_H 1 |
69 | #define HAVE_POLL_H 1 |
70 | #define HAVE_NET_IF_H 1 |
71 | #define SIZEOF_TIME_T 8 |
72 | #define SIZEOF_SIZE_T 8 |
73 | #define HAVE_UNISTD_H 1 |
74 | #define HAVE_CHOWN 1 |
75 | #define HAVE_FORK 1 |
76 | #define HAVE_VFORK 1 |
77 | #define HAVE_WORKING_VFORK 1 |
78 | #define HAVE_WORKING_FORK 1 |
79 | #define RETSIGTYPE void |
80 | #define HAVE_FSEEKO 1 |
81 | #define HAVE_STRPTIME 1 |
82 | #define STRPTIME_WORKS 1 |
83 | #define REUSEPORT_DEFAULT 0 |
84 | |
85 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
86 | #include <stdlib.h> |
87 | #else |
88 | char *malloc (); |
89 | #endif |
90 | |
91 | int |
92 | main () |
93 | { |
94 | if(malloc(0) != 0) return 1; |
| |
| 2 | | Assuming the condition is true | |
|
| |
| |
95 | ; |
96 | return 0; |
97 | } |
98 | |