scan.ini: [scan] scan.ini: tool = csmock scan.ini: tool-version = csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 scan.ini: tool-args = '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpvg03j16k/crun-1.18.2-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpvg03j16k/crun-1.18.2-1.fc42.src.rpm' scan.ini: host = ip-172-16-1-56.us-west-2.compute.internal scan.ini: store-results-to = /tmp/tmpvg03j16k/crun-1.18.2-1.fc42.tar.xz scan.ini: time-created = 2024-11-12 23:27:17 scan.ini: enabled-plugins = clippy, cppcheck, gcc, shellcheck, unicontrol scan.ini: mock-config = fedora-rawhide-gcc-latest-x86_64 scan.ini: project-name = crun-1.18.2-1.fc42 >>> 2024-11-12 23:27:17 rpm -qa | sort -V > '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/rpm-list-host.txt' scan.ini: analyzer-version-unicontrol = 0.0.2 >>> 2024-11-12 23:27:18 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--init" INFO: mock.py version 5.9 starting (python version = 3.9.20, NVR = mock-5.9-1.el9), args: /usr/libexec/mock/mock -r fedora-rawhide-gcc-latest-x86_64 --plugin-option=tmpfs:keep_mounted=True --config-opts=print_main_output=True --init Start(bootstrap): init plugins INFO: selinux enabled Finish(bootstrap): init plugins Start: init plugins INFO: selinux enabled Finish: init plugins INFO: Signal handler active Start: run Start: clean chroot Finish: clean chroot Mock Version: 5.9 INFO: Mock Version: 5.9 Start(bootstrap): chroot init INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata INFO: Package manager dnf5 detected and used (fallback) Finish(bootstrap): chroot init Start: chroot init INFO: calling preinit hooks INFO: enabled root cache Start: unpacking root cache Finish: unpacking root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin INFO: Package manager dnf5 detected and used (direct choice) Finish: chroot init Finish: run >>> 2024-11-12 23:27:20 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--no-clean" "--calculate-build-dependencies" "/tmp/csmock_42lglbg/crun-1.18.2-1.fc42.src.rpm" Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1730332800 Wrote: /builddir/build/SRPMS/crun-1.18.2-1.fc42.src.rpm Updating and loading repositories: fedora 100% | 482.2 KiB/s | 9.6 KiB | 00m00s Copr repository 100% | 5.3 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package Arch Version Repository Size Installing: autoconf noarch 2.72-3.fc41 fedora 2.8 MiB automake noarch 1.16.5-17.fc41 fedora 1.7 MiB criu-devel x86_64 4.0-2.fc42 fedora 52.9 KiB gcc x86_64 14.2.1-6.fc42 fedora 104.3 MiB git-core x86_64 2.47.0-1.fc42 fedora 22.6 MiB gperf x86_64 3.1-20.fc41 fedora 666.9 KiB libcap-devel x86_64 2.71-1.fc42 fedora 37.7 KiB libkrun-devel x86_64 1.9.5-2.fc42 fedora 15.2 KiB libseccomp-devel x86_64 2.5.5-2.fc41 fedora 113.1 KiB libtool x86_64 2.4.7-12.fc41 fedora 2.6 MiB protobuf-c-devel x86_64 1.5.0-4.fc41 fedora 36.4 KiB python-unversioned-command noarch 3.13.0-1.fc42 fedora 23.0 B python3-libmount x86_64 2.40.2-8.fc42 fedora 120.8 KiB systemd-devel x86_64 257~rc1-2.fc42 fedora 610.8 KiB wasmedge-devel x86_64 0.14.1-1.fc42 fedora 219.3 KiB yajl-devel x86_64 2.1.0-24.fc41 fedora 26.6 KiB Installing dependencies: alsa-lib x86_64 1.2.12-2.fc41 fedora 1.4 MiB annobin-docs noarch 12.70-1.fc42 fedora 97.7 KiB annobin-plugin-gcc x86_64 12.70-1.fc42 fedora 985.6 KiB avahi-libs x86_64 0.8-30.fc42 fedora 174.2 KiB bluez-libs x86_64 5.79-1.fc42 fedora 198.7 KiB cpp x86_64 14.2.1-6.fc42 fedora 35.0 MiB criu x86_64 4.0-2.fc42 fedora 1.6 MiB criu-libs x86_64 4.0-2.fc42 fedora 89.1 KiB dbus-libs x86_64 1:1.14.10-4.fc41 fedora 368.9 KiB emacs-filesystem noarch 1:30.0-3.fc41 fedora 0.0 B expat x86_64 2.6.4-1.fc42 fedora 285.5 KiB fdk-aac-free x86_64 2.0.0-14.fc41 fedora 607.2 KiB flac-libs x86_64 1.4.3-5.fc41 fedora 674.2 KiB fmt x86_64 11.0.2-2.fc42 fedora 264.1 KiB gcc-plugin-annobin x86_64 14.2.1-6.fc42 fedora 57.6 KiB glib2 x86_64 2.83.0-1.fc42 fedora 14.7 MiB glibc-devel x86_64 2.40.9000-16.fc42 fedora 2.3 MiB gnutls x86_64 3.8.8-1.fc42 fedora 3.2 MiB groff-base x86_64 1.23.0-7.fc41 fedora 3.8 MiB gsm x86_64 1.0.22-7.fc41 fedora 68.8 KiB hwdata noarch 0.389-1.fc42 fedora 9.3 MiB iptables-libs x86_64 1.8.11-1.fc42 fedora 1.5 MiB kernel-headers x86_64 6.12.0-0.rc7.58.fc42 fedora 6.4 MiB lame-libs x86_64 3.100-18.fc41 fedora 1.2 MiB less x86_64 668-1.fc42 fedora 406.4 KiB libX11 x86_64 1.8.10-2.fc42 fedora 1.3 MiB libX11-common noarch 1.8.10-2.fc42 fedora 1.1 MiB libX11-xcb x86_64 1.8.10-2.fc42 fedora 15.0 KiB libXau x86_64 1.0.11-7.fc41 fedora 66.9 KiB libXext x86_64 1.3.6-2.fc41 fedora 90.1 KiB libXfixes x86_64 6.0.1-4.fc41 fedora 30.3 KiB libXxf86vm x86_64 1.1.5-7.fc41 fedora 25.4 KiB libasyncns x86_64 0.8-29.fc41 fedora 59.4 KiB libb2 x86_64 0.98.1-12.fc41 fedora 42.2 KiB libbsd x86_64 0.12.2-4.fc41 fedora 419.2 KiB libcbor x86_64 0.11.0-2.fc41 fedora 73.9 KiB libdrm x86_64 2.4.123-1.fc42 fedora 408.0 KiB libedit x86_64 3.1-53.20240808cvs.fc41 fedora 244.1 KiB libepoxy x86_64 1.5.10-8.fc41 fedora 1.1 MiB libfido2 x86_64 1.15.0-2.fc41 fedora 238.2 KiB libglvnd x86_64 1:1.7.0-5.fc41 fedora 530.2 KiB libglvnd-glx x86_64 1:1.7.0-5.fc41 fedora 605.5 KiB libkrun x86_64 1.9.5-2.fc42 fedora 3.5 MiB libkrunfw x86_64 4.5.1-1.fc42 fedora 18.7 MiB liblc3 x86_64 1.1.1-3.fc41 fedora 170.9 KiB libldac x86_64 2.0.2.3-16.fc41 fedora 82.4 KiB libmd x86_64 1.1.0-5.fc41 fedora 102.9 KiB libmnl x86_64 1.0.5-6.fc41 fedora 55.2 KiB libmpc x86_64 1.3.1-6.fc41 fedora 164.7 KiB libnet x86_64 1.3-4.fc41 fedora 136.5 KiB libnetfilter_conntrack x86_64 1.0.9-6.fc41 fedora 139.5 KiB libnfnetlink x86_64 1.0.1-28.fc41 fedora 53.9 KiB libnftnl x86_64 1.2.8-2.fc42 fedora 229.2 KiB libnl3 x86_64 3.11.0-1.fc42 fedora 1.0 MiB libogg x86_64 2:1.3.5-9.fc41 fedora 49.4 KiB libpciaccess x86_64 0.16-13.fc41 fedora 44.6 KiB libsbc x86_64 2.0-5.fc41 fedora 93.5 KiB libseccomp x86_64 2.5.5-2.fc41 fedora 173.3 KiB libsndfile x86_64 1.2.2-4.fc41 fedora 534.0 KiB libusb1 x86_64 1.0.27-4.fc42 fedora 170.6 KiB libva x86_64 2.22.0-3.fc41 fedora 341.9 KiB libvorbis x86_64 1:1.3.7-11.fc41 fedora 833.6 KiB libwayland-client x86_64 1.23.0-2.fc41 fedora 62.1 KiB libwayland-server x86_64 1.23.0-2.fc41 fedora 78.6 KiB libxcb x86_64 1.17.0-3.fc42 fedora 1.2 MiB libxcrypt-devel x86_64 4.4.36-10.fc42 fedora 30.5 KiB libxshmfence x86_64 1.3.2-5.fc42 fedora 12.8 KiB lld18 x86_64 18.1.8-6.fc42 fedora 134.5 KiB lld18-libs x86_64 18.1.8-6.fc42 fedora 5.3 MiB llvm-libs x86_64 19.1.0-1.fc42 fedora 124.5 MiB llvm18 x86_64 18.1.8-4.fc42 fedora 112.2 MiB llvm18-libs x86_64 18.1.8-4.fc42 fedora 113.5 MiB lm_sensors-libs x86_64 3.6.0-20.fc41 fedora 85.9 KiB m4 x86_64 1.4.19-10.fc41 fedora 592.9 KiB make x86_64 1:4.4.1-9.fc42 fedora 1.8 MiB mesa-dri-drivers x86_64 24.2.6-1.fc42 fedora 143.0 MiB mesa-filesystem x86_64 24.2.6-1.fc42 fedora 3.6 KiB mesa-libGL x86_64 24.2.6-1.fc42 fedora 457.0 KiB mesa-libgbm x86_64 24.2.6-1.fc42 fedora 65.5 KiB mesa-libglapi x86_64 24.2.6-1.fc42 fedora 168.8 KiB mpdecimal x86_64 2.5.1-16.fc41 fedora 204.9 KiB mpg123-libs x86_64 1.31.3-5.fc41 fedora 787.3 KiB ncurses x86_64 6.5-2.20240629.fc41 fedora 627.3 KiB nettle x86_64 3.10-3.fc41 fedora 793.0 KiB nftables x86_64 1:1.1.1-2.fc42 fedora 1.0 MiB openssh x86_64 9.9p1-5.fc42 fedora 1.4 MiB openssh-clients x86_64 9.9p1-5.fc42 fedora 2.7 MiB opus x86_64 1.5.2-1.fc42 fedora 411.7 KiB perl-AutoLoader noarch 5.74-512.fc42 fedora 20.5 KiB perl-B x86_64 1.89-512.fc42 fedora 498.0 KiB perl-Carp noarch 1.54-511.fc41 fedora 46.6 KiB perl-Class-Struct noarch 0.68-512.fc42 fedora 25.4 KiB perl-Data-Dumper x86_64 2.189-512.fc41 fedora 111.7 KiB perl-Digest noarch 1.20-511.fc41 fedora 35.3 KiB perl-Digest-MD5 x86_64 2.59-5.fc41 fedora 59.8 KiB perl-DynaLoader x86_64 1.56-512.fc42 fedora 32.1 KiB perl-Encode x86_64 4:3.21-511.fc41 fedora 4.7 MiB perl-Errno x86_64 1.38-512.fc42 fedora 8.4 KiB perl-Exporter noarch 5.78-511.fc41 fedora 54.3 KiB perl-Fcntl x86_64 1.18-512.fc42 fedora 49.0 KiB perl-File-Basename noarch 2.86-512.fc42 fedora 14.0 KiB perl-File-Compare noarch 1.100.800-512.fc42 fedora 5.6 KiB perl-File-Copy noarch 2.41-512.fc42 fedora 19.6 KiB perl-File-Find noarch 1.44-512.fc42 fedora 41.9 KiB perl-File-Path noarch 2.18-511.fc41 fedora 63.5 KiB perl-File-Temp noarch 1:0.231.100-511.fc41 fedora 162.3 KiB perl-File-stat noarch 1.14-512.fc42 fedora 12.5 KiB perl-FileHandle noarch 2.05-512.fc42 fedora 9.3 KiB perl-Getopt-Long noarch 1:2.58-2.fc41 fedora 144.5 KiB perl-Getopt-Std noarch 1.14-512.fc42 fedora 11.2 KiB perl-HTTP-Tiny noarch 0.088-512.fc41 fedora 152.2 KiB perl-IO x86_64 1.55-512.fc42 fedora 151.1 KiB perl-IO-Socket-IP noarch 0.42-512.fc41 fedora 98.7 KiB perl-IO-Socket-SSL noarch 2.089-1.fc42 fedora 703.3 KiB perl-IPC-Open3 noarch 1.22-512.fc42 fedora 22.5 KiB perl-MIME-Base32 noarch 1.303-21.fc41 fedora 30.7 KiB perl-MIME-Base64 x86_64 3.16-511.fc41 fedora 46.1 KiB perl-Mozilla-CA noarch 20240924-1.fc42 fedora 10.3 KiB perl-Net-SSLeay x86_64 1.94-7.fc41 fedora 1.3 MiB perl-POSIX x86_64 2.20-512.fc42 fedora 235.1 KiB perl-PathTools x86_64 3.91-511.fc41 fedora 180.0 KiB perl-Pod-Escapes noarch 1:1.07-511.fc41 fedora 24.9 KiB perl-Pod-Perldoc noarch 3.28.01-512.fc41 fedora 163.7 KiB perl-Pod-Simple noarch 1:3.45-511.fc41 fedora 560.9 KiB perl-Pod-Usage noarch 4:2.03-511.fc41 fedora 84.8 KiB perl-Scalar-List-Utils x86_64 5:1.68-1.fc42 fedora 148.9 KiB perl-SelectSaver noarch 1.02-512.fc42 fedora 2.2 KiB perl-Socket x86_64 4:2.038-511.fc41 fedora 124.0 KiB perl-Storable x86_64 1:3.32-511.fc41 fedora 232.4 KiB perl-Symbol noarch 1.09-512.fc42 fedora 6.8 KiB perl-Term-ANSIColor noarch 5.01-512.fc41 fedora 97.5 KiB perl-Term-Cap noarch 1.18-511.fc41 fedora 29.3 KiB perl-Text-ParseWords noarch 3.31-511.fc41 fedora 13.6 KiB perl-Text-Tabs+Wrap noarch 2024.001-511.fc41 fedora 22.6 KiB perl-Thread-Queue noarch 3.14-511.fc41 fedora 28.9 KiB perl-Time-Local noarch 2:1.350-511.fc41 fedora 69.0 KiB perl-URI noarch 5.31-1.fc42 fedora 257.0 KiB perl-base noarch 2.27-512.fc42 fedora 12.5 KiB perl-constant noarch 1.33-512.fc41 fedora 26.2 KiB perl-if noarch 0.61.000-512.fc42 fedora 5.8 KiB perl-interpreter x86_64 4:5.40.0-512.fc42 fedora 122.3 KiB perl-libnet noarch 3.15-512.fc41 fedora 289.4 KiB perl-libs x86_64 4:5.40.0-512.fc42 fedora 9.9 MiB perl-locale noarch 1.12-512.fc42 fedora 6.5 KiB perl-mro x86_64 1.29-512.fc42 fedora 45.6 KiB perl-overload noarch 1.37-512.fc42 fedora 71.5 KiB perl-overloading noarch 0.02-512.fc42 fedora 4.8 KiB perl-parent noarch 1:0.242-1.fc42 fedora 10.0 KiB perl-podlators noarch 1:6.0.2-2.fc41 fedora 317.5 KiB perl-threads x86_64 1:2.40-511.fc41 fedora 115.1 KiB perl-threads-shared x86_64 1.69-511.fc41 fedora 83.7 KiB perl-vars noarch 1.05-512.fc42 fedora 3.9 KiB pipewire-libs x86_64 1.2.6-1.fc42 fedora 7.1 MiB protobuf x86_64 3.19.6-10.fc41 fedora 3.3 MiB protobuf-c x86_64 1.5.0-4.fc41 fedora 54.0 KiB protobuf-c-compiler x86_64 1.5.0-4.fc41 fedora 180.2 KiB protobuf-compiler x86_64 3.19.6-10.fc41 fedora 2.5 MiB pulseaudio-libs x86_64 17.0-2.fc41 fedora 3.4 MiB python-pip-wheel noarch 24.2-2.fc42 fedora 1.2 MiB python3 x86_64 3.13.0-1.fc42 fedora 31.8 KiB python3-libs x86_64 3.13.0-1.fc42 fedora 40.4 MiB spdlog x86_64 1.14.1-3.fc41 fedora 355.2 KiB systemd-rpm-macros noarch 257~rc1-2.fc42 fedora 10.7 KiB tzdata noarch 2024a-9.fc41 fedora 1.7 MiB virglrenderer x86_64 1.1.0-1.fc42 fedora 1.1 MiB vulkan-loader x86_64 1.3.296.0-1.fc42 fedora 520.7 KiB wasmedge x86_64 0.14.1-1.fc42 fedora 2.1 MiB webrtc-audio-processing x86_64 1.3-3.fc42 fedora 1.3 MiB yajl x86_64 2.1.0-24.fc41 fedora 90.6 KiB Transaction Summary: Installing: 185 packages Total size of inbound packages is 226 MiB. Need to download 0 B. After this operation, 851 MiB extra will be used (install 851 MiB, remove 0 B). [1/1] autoconf-0:2.72-3.fc41.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [1/1] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/2] automake-0:1.16.5-17.fc41.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [2/2] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/3] criu-devel-0:4.0-2.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [3/3] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/4] gcc-0:14.2.1-6.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [4/4] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/5] git-core-0:2.47.0-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [5/5] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/6] gperf-0:3.1-20.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [6/6] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/7] libkrun-devel-0:1.9.5-2.fc42.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [7/7] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/8] libtool-0:2.4.7-12.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [8/8] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/9] python-unversioned-command-0:3.13 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [9/9] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/10] python3-libmount-0:2.40.2-8.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [10/10] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/11] wasmedge-devel-0:0.14.1-1.fc42. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [11/11] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/12] libcap-devel-0:2.71-1.fc42.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [12/12] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/13] libseccomp-devel-0:2.5.5-2.fc41 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [13/13] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/14] protobuf-c-devel-0:1.5.0-4.fc41 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [14/14] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/15] systemd-devel-0:257~rc1-2.fc42. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [15/15] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/16] yajl-devel-0:2.1.0-24.fc41.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [16/16] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/17] emacs-filesystem-1:30.0-3.fc41. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [17/17] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/18] m4-0:1.4.19-10.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [18/18] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/19] perl-Carp-0:1.54-511.fc41.noarc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [19/19] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/20] perl-Class-Struct-0:0.68-512.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [20/20] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/21] perl-Data-Dumper-0:2.189-512.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [21/21] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/22] perl-Errno-0:1.38-512.fc42.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [22/22] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/23] perl-Exporter-0:5.78-511.fc41.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [23/23] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/24] perl-File-Basename-0:2.86-512.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [24/24] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/25] perl-File-Compare-0:1.100.800-5 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [25/25] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/26] perl-File-Copy-0:2.41-512.fc42. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [26/26] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/27] perl-File-Find-0:1.44-512.fc42. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [27/27] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/28] perl-File-Temp-1:0.231.100-511. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [28/28] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/29] perl-File-stat-0:1.14-512.fc42. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [29/29] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/30] perl-Getopt-Long-1:2.58-2.fc41. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [30/30] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/31] perl-IO-0:1.55-512.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [31/31] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/32] perl-POSIX-0:2.20-512.fc42.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [32/32] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/33] perl-PathTools-0:3.91-511.fc41. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [33/33] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/34] perl-Text-ParseWords-0:3.31-511 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [34/34] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/35] perl-constant-0:1.33-512.fc41.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [35/35] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/36] perl-interpreter-4:5.40.0-512.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [36/36] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/37] perl-File-Path-0:2.18-511.fc41. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [37/37] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/38] perl-Thread-Queue-0:3.14-511.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [38/38] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/39] perl-threads-1:2.40-511.fc41.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [39/39] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/40] criu-0:4.0-2.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [40/40] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/41] criu-libs-0:4.0-2.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [41/41] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/42] cpp-0:14.2.1-6.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [42/42] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/43] libmpc-0:1.3.1-6.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [43/43] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/44] make-1:4.4.1-9.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [44/44] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/45] expat-0:2.6.4-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [45/45] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/46] less-0:668-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [46/46] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/47] openssh-clients-0:9.9p1-5.fc42. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [47/47] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/48] libkrun-0:1.9.5-2.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [48/48] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/49] wasmedge-0:0.14.1-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [49/49] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/50] libseccomp-0:2.5.5-2.fc41.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [50/50] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/51] protobuf-c-0:1.5.0-4.fc41.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [51/51] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/52] protobuf-c-compiler-0:1.5.0-4.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [52/52] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/53] yajl-0:2.1.0-24.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [53/53] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/54] perl-B-0:1.89-512.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [54/54] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/55] perl-Scalar-List-Utils-5:1.68-1 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [55/55] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/56] perl-libs-4:5.40.0-512.fc42.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [56/56] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/57] perl-overload-0:1.37-512.fc42.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [57/57] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/58] perl-Fcntl-0:1.18-512.fc42.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [58/58] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/59] perl-parent-1:0.242-1.fc42.noar 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [59/59] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/60] perl-Symbol-0:1.09-512.fc42.noa 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [60/60] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/61] perl-Pod-Usage-4:2.03-511.fc41. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [61/61] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/62] perl-base-0:2.27-512.fc42.noarc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [62/62] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/63] perl-SelectSaver-0:1.02-512.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [63/63] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/64] perl-Socket-4:2.038-511.fc41.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [64/64] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/65] perl-locale-0:1.12-512.fc42.noa 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [65/65] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/66] perl-vars-0:1.05-512.fc42.noarc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [66/66] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/67] perl-threads-shared-0:1.69-511. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [67/67] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/68] gnutls-0:3.8.8-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [68/68] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/69] libbsd-0:0.12.2-4.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [69/69] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/70] libnet-0:1.3-4.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [70/70] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/71] libnl3-0:3.11.0-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [71/71] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/72] nftables-1:1.1.1-2.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [72/72] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/73] libedit-0:3.1-53.20240808cvs.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [73/73] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/74] libfido2-0:1.15.0-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [74/74] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/75] openssh-0:9.9p1-5.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [75/75] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/76] libkrunfw-0:4.5.1-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [76/76] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/77] pipewire-libs-0:1.2.6-1.fc42.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [77/77] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/78] virglrenderer-0:1.1.0-1.fc42.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [78/78] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/79] fmt-0:11.0.2-2.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [79/79] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/80] lld18-libs-0:18.1.8-6.fc42.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [80/80] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/81] llvm18-libs-0:18.1.8-4.fc42.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [81/81] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/82] spdlog-0:1.14.1-3.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [82/82] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/83] protobuf-0:3.19.6-10.fc41.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [83/83] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/84] protobuf-compiler-0:3.19.6-10.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [84/84] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/85] perl-if-0:0.61.000-512.fc42.noa 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [85/85] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/86] perl-overloading-0:0.02-512.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [86/86] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/87] perl-DynaLoader-0:1.56-512.fc42 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [87/87] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/88] perl-mro-0:1.29-512.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [88/88] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/89] perl-Pod-Perldoc-0:3.28.01-512. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [89/89] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/90] perl-podlators-1:6.0.2-2.fc41.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [90/90] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/91] nettle-0:3.10-3.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [91/91] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/92] libmd-0:1.1.0-5.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [92/92] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/93] iptables-libs-0:1.8.11-1.fc42.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [93/93] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/94] libmnl-0:1.0.5-6.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [94/94] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/95] libnftnl-0:1.2.8-2.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [95/95] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/96] libcbor-0:0.11.0-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [96/96] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/97] alsa-lib-0:1.2.12-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [97/97] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/98] avahi-libs-0:0.8-30.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [98/98] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/99] bluez-libs-0:5.79-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [99/99] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/100] dbus-libs-1:1.14.10-4.fc41.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [100/100] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/101] fdk-aac-free-0:2.0.0-14.fc41. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [101/101] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/102] glib2-0:2.83.0-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [102/102] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/103] liblc3-0:1.1.1-3.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [103/103] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/104] libldac-0:2.0.2.3-16.fc41.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [104/104] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/105] libsbc-0:2.0-5.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [105/105] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/106] libsndfile-0:1.2.2-4.fc41.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [106/106] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/107] libusb1-0:1.0.27-4.fc42.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [107/107] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/108] opus-0:1.5.2-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [108/108] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/109] pulseaudio-libs-0:17.0-2.fc41 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [109/109] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/110] webrtc-audio-processing-0:1.3 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [110/110] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/111] libX11-0:1.8.10-2.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [111/111] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/112] libdrm-0:2.4.123-1.fc42.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [112/112] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/113] libepoxy-0:1.5.10-8.fc41.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [113/113] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/114] libva-0:2.22.0-3.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [114/114] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/115] mesa-libgbm-0:24.2.6-1.fc42.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [115/115] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/116] vulkan-loader-0:1.3.296.0-1.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [116/116] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/117] groff-base-0:1.23.0-7.fc41.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [117/117] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/118] perl-HTTP-Tiny-0:0.088-512.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [118/118] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/119] perl-IPC-Open3-0:1.22-512.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [119/119] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/120] perl-Pod-Simple-1:3.45-511.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [120/120] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/121] perl-Term-ANSIColor-0:5.01-51 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [121/121] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/122] perl-Term-Cap-0:1.18-511.fc41 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [122/122] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/123] libnetfilter_conntrack-0:1.0. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [123/123] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/124] flac-libs-0:1.4.3-5.fc41.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [124/124] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/125] gsm-0:1.0.22-7.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [125/125] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/126] lame-libs-0:3.100-18.fc41.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [126/126] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/127] libogg-2:1.3.5-9.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [127/127] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/128] libvorbis-1:1.3.7-11.fc41.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [128/128] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/129] mpg123-libs-0:1.31.3-5.fc41.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [129/129] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/130] libasyncns-0:0.8-29.fc41.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [130/130] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/131] libxcb-0:1.17.0-3.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [131/131] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/132] libX11-common-0:1.8.10-2.fc42 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [132/132] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/133] libpciaccess-0:0.16-13.fc41.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [133/133] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/134] libX11-xcb-0:1.8.10-2.fc42.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [134/134] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/135] libXext-0:1.3.6-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [135/135] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/136] libXfixes-0:6.0.1-4.fc41.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [136/136] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/137] libglvnd-glx-1:1.7.0-5.fc41.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [137/137] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/138] libwayland-client-0:1.23.0-2. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [138/138] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/139] mesa-filesystem-0:24.2.6-1.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [139/139] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/140] libwayland-server-0:1.23.0-2. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [140/140] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/141] mesa-dri-drivers-0:24.2.6-1.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [141/141] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/142] perl-IO-Socket-SSL-0:2.089-1. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [142/142] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/143] perl-MIME-Base64-0:3.16-511.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [143/143] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/144] perl-Mozilla-CA-0:20240924-1. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [144/144] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/145] perl-Net-SSLeay-0:1.94-7.fc41 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [145/145] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/146] perl-Time-Local-2:1.350-511.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [146/146] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/147] perl-Pod-Escapes-1:1.07-511.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [147/147] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/148] perl-Text-Tabs+Wrap-0:2024.00 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [148/148] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/149] ncurses-0:6.5-2.20240629.fc41 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [149/149] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/150] libnfnetlink-0:1.0.1-28.fc41. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [150/150] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/151] libXau-0:1.0.11-7.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [151/151] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/152] hwdata-0:0.389-1.fc42.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [152/152] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/153] libglvnd-1:1.7.0-5.fc41.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [153/153] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/154] mesa-libGL-0:24.2.6-1.fc42.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [154/154] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/155] libxshmfence-0:1.3.2-5.fc42.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [155/155] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/156] llvm-libs-0:19.1.0-1.fc42.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [156/156] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/157] lm_sensors-libs-0:3.6.0-20.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [157/157] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/158] mesa-libglapi-0:24.2.6-1.fc42 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [158/158] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/159] perl-IO-Socket-IP-0:0.42-512. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [159/159] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/160] perl-URI-0:5.31-1.fc42.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [160/160] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/161] perl-AutoLoader-0:5.74-512.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [161/161] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/162] libXxf86vm-0:1.1.5-7.fc41.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [162/162] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/163] perl-MIME-Base32-0:1.303-21.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [163/163] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/164] perl-libnet-0:3.15-512.fc41.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [164/164] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/165] perl-Digest-MD5-0:2.59-5.fc41 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [165/165] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/166] perl-FileHandle-0:2.05-512.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [166/166] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/167] perl-Digest-0:1.20-511.fc41.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [167/167] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/168] lld18-0:18.1.8-6.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [168/168] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/169] llvm18-0:18.1.8-4.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [169/169] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/170] python3-0:3.13.0-1.fc42.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [170/170] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/171] python3-libs-0:3.13.0-1.fc42. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [171/171] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/172] libb2-0:0.98.1-12.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [172/172] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/173] mpdecimal-0:2.5.1-16.fc41.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [173/173] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/174] python-pip-wheel-0:24.2-2.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [174/174] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/175] tzdata-0:2024a-9.fc41.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [175/175] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/176] perl-Encode-4:3.21-511.fc41.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [176/176] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/177] perl-Getopt-Std-0:1.14-512.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [177/177] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/178] perl-Storable-1:3.32-511.fc41 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [178/178] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/179] glibc-devel-0:2.40.9000-16.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [179/179] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/180] libxcrypt-devel-0:4.4.36-10.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [180/180] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/181] kernel-headers-0:6.12.0-0.rc7 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [181/181] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/182] annobin-plugin-gcc-0:12.70-1. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [182/182] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/183] gcc-plugin-annobin-0:14.2.1-6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [183/183] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/184] annobin-docs-0:12.70-1.fc42.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [184/184] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/185] systemd-rpm-macros-0:257~rc1- 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [185/185] Total 100% | 0.0 B/s | 0.0 B | 00m00s Running transaction [ 1/187] Verify package files 100% | 251.0 B/s | 185.0 B | 00m01s [ 2/187] Prepare transaction 100% | 2.5 KiB/s | 185.0 B | 00m00s [ 3/187] Installing expat-0:2.6.4-1.fc 100% | 35.1 MiB/s | 287.6 KiB | 00m00s [ 4/187] Installing libedit-0:3.1-53.2 100% | 60.0 MiB/s | 245.8 KiB | 00m00s [ 5/187] Installing llvm18-libs-0:18.1 100% | 377.1 MiB/s | 113.5 MiB | 00m00s [ 6/187] Installing protobuf-c-0:1.5.0 100% | 13.6 MiB/s | 55.5 KiB | 00m00s [ 7/187] Installing libX11-xcb-0:1.8.1 100% | 5.2 MiB/s | 15.9 KiB | 00m00s [ 8/187] Installing libogg-2:1.3.5-9.f 100% | 16.6 MiB/s | 51.0 KiB | 00m00s [ 9/187] Installing dbus-libs-1:1.14.1 100% | 72.3 MiB/s | 370.0 KiB | 00m00s [ 10/187] Installing libmnl-0:1.0.5-6.f 100% | 13.8 MiB/s | 56.6 KiB | 00m00s [ 11/187] Installing lld18-libs-0:18.1. 100% | 276.8 MiB/s | 5.3 MiB | 00m00s [ 12/187] Installing libxshmfence-0:1.3 100% | 4.5 MiB/s | 13.9 KiB | 00m00s [ 13/187] Installing mesa-filesystem-0: 100% | 1.4 MiB/s | 4.3 KiB | 00m00s [ 14/187] Installing opus-0:1.5.2-1.fc4 100% | 80.6 MiB/s | 412.8 KiB | 00m00s [ 15/187] Installing protobuf-0:3.19.6- 100% | 250.6 MiB/s | 3.3 MiB | 00m00s [ 16/187] Installing fmt-0:11.0.2-2.fc4 100% | 51.9 MiB/s | 265.6 KiB | 00m00s [ 17/187] Installing libmpc-0:1.3.1-6.f 100% | 14.8 MiB/s | 166.2 KiB | 00m00s [ 18/187] Installing cpp-0:14.2.1-6.fc4 100% | 320.9 MiB/s | 35.0 MiB | 00m00s [ 19/187] Installing spdlog-0:1.14.1-3. 100% | 69.7 MiB/s | 356.6 KiB | 00m00s [ 20/187] Installing protobuf-compiler- 100% | 205.5 MiB/s | 2.5 MiB | 00m00s [ 21/187] Installing protobuf-c-compile 100% | 44.2 MiB/s | 181.1 KiB | 00m00s [ 22/187] Installing protobuf-c-devel-0 100% | 12.3 MiB/s | 37.7 KiB | 00m00s [ 23/187] Installing lld18-0:18.1.8-6.f 100% | 33.5 MiB/s | 137.4 KiB | 00m00s [ 24/187] Installing libnftnl-0:1.2.8-2 100% | 56.2 MiB/s | 230.3 KiB | 00m00s [ 25/187] Installing avahi-libs-0:0.8-3 100% | 34.5 MiB/s | 176.8 KiB | 00m00s [ 26/187] Installing flac-libs-0:1.4.3- 100% | 110.2 MiB/s | 677.0 KiB | 00m00s [ 27/187] Installing libvorbis-1:1.3.7- 100% | 136.1 MiB/s | 836.2 KiB | 00m00s [ 28/187] Installing llvm-libs-0:19.1.0 100% | 410.8 MiB/s | 124.5 MiB | 00m00s [ 29/187] Installing annobin-docs-0:12. 100% | 16.1 MiB/s | 98.8 KiB | 00m00s [ 30/187] Installing kernel-headers-0:6 100% | 117.8 MiB/s | 6.6 MiB | 00m00s [ 31/187] Installing libxcrypt-devel-0: 100% | 6.4 MiB/s | 32.9 KiB | 00m00s [ 32/187] Installing glibc-devel-0:2.40 100% | 77.6 MiB/s | 2.3 MiB | 00m00s [ 33/187] Installing tzdata-0:2024a-9.f 100% | 32.3 MiB/s | 1.9 MiB | 00m00s [ 34/187] Installing python-pip-wheel-0 100% | 248.3 MiB/s | 1.2 MiB | 00m00s [ 35/187] Installing mpdecimal-0:2.5.1- 100% | 50.3 MiB/s | 206.0 KiB | 00m00s [ 36/187] Installing libb2-0:0.98.1-12. 100% | 5.3 MiB/s | 43.3 KiB | 00m00s [ 37/187] Installing python3-libs-0:3.1 100% | 236.8 MiB/s | 40.7 MiB | 00m00s [ 38/187] Installing python3-0:3.13.0-1 100% | 8.2 MiB/s | 33.5 KiB | 00m00s [ 39/187] Installing llvm18-0:18.1.8-4. 100% | 381.8 MiB/s | 112.2 MiB | 00m00s [ 40/187] Installing wasmedge-0:0.14.1- 100% | 190.0 MiB/s | 2.1 MiB | 00m00s [ 41/187] Installing lm_sensors-libs-0: 100% | 21.2 MiB/s | 87.0 KiB | 00m00s [ 42/187] Installing libglvnd-1:1.7.0-5 100% | 129.8 MiB/s | 531.6 KiB | 00m00s [ 43/187] Installing hwdata-0:0.389-1.f 100% | 442.9 MiB/s | 9.3 MiB | 00m00s [ 44/187] Installing libpciaccess-0:0.1 100% | 11.2 MiB/s | 46.0 KiB | 00m00s [ 45/187] Installing libdrm-0:2.4.123-1 100% | 57.5 MiB/s | 411.9 KiB | 00m00s [ 46/187] Installing libXau-0:1.0.11-7. 100% | 16.7 MiB/s | 68.4 KiB | 00m00s [ 47/187] Installing libxcb-0:1.17.0-3. 100% | 108.0 MiB/s | 1.2 MiB | 00m00s [ 48/187] Installing libnfnetlink-0:1.0 100% | 13.5 MiB/s | 55.3 KiB | 00m00s [ 49/187] Installing libnetfilter_connt 100% | 34.3 MiB/s | 140.7 KiB | 00m00s [ 50/187] Installing iptables-libs-0:1. 100% | 81.1 MiB/s | 1.5 MiB | 00m00s [ 51/187] Installing nftables-1:1.1.1-2 100% | 87.8 MiB/s | 1.1 MiB | 00m00s [ 52/187] Installing ncurses-0:6.5-2.20 100% | 77.4 MiB/s | 633.9 KiB | 00m00s [ 53/187] Installing libwayland-server- 100% | 19.5 MiB/s | 79.8 KiB | 00m00s [ 54/187] Installing mesa-libgbm-0:24.2 100% | 16.2 MiB/s | 66.3 KiB | 00m00s [ 55/187] Installing mesa-libglapi-0:24 100% | 41.4 MiB/s | 169.6 KiB | 00m00s [ 56/187] Installing mesa-dri-drivers-0 100% | 466.0 MiB/s | 143.0 MiB | 00m00s [ 57/187] Installing libwayland-client- 100% | 15.5 MiB/s | 63.3 KiB | 00m00s [ 58/187] Installing libX11-common-0:1. 100% | 74.2 MiB/s | 1.2 MiB | 00m00s [ 59/187] Installing libX11-0:1.8.10-2. 100% | 183.6 MiB/s | 1.3 MiB | 00m00s [ 60/187] Installing libXext-0:1.3.6-2. 100% | 29.7 MiB/s | 91.3 KiB | 00m00s [ 61/187] Installing libXfixes-0:6.0.1- 100% | 10.3 MiB/s | 31.7 KiB | 00m00s [ 62/187] Installing libXxf86vm-0:1.1.5 100% | 8.7 MiB/s | 26.6 KiB | 00m00s [ 63/187] Installing libglvnd-glx-1:1.7 100% | 118.5 MiB/s | 606.9 KiB | 00m00s [ 64/187] Installing mesa-libGL-0:24.2. 100% | 89.4 MiB/s | 457.9 KiB | 00m00s [ 65/187] Installing libva-0:2.22.0-3.f 100% | 48.2 MiB/s | 345.8 KiB | 00m00s [ 66/187] Installing libasyncns-0:0.8-2 100% | 19.7 MiB/s | 60.6 KiB | 00m00s [ 67/187] Installing mpg123-libs-0:1.31 100% | 110.2 MiB/s | 789.9 KiB | 00m00s [ 68/187] Installing lame-libs-0:3.100- 100% | 170.6 MiB/s | 1.2 MiB | 00m00s [ 69/187] Installing gsm-0:1.0.22-7.fc4 100% | 17.2 MiB/s | 70.4 KiB | 00m00s [ 70/187] Installing libsndfile-0:1.2.2 100% | 87.2 MiB/s | 535.6 KiB | 00m00s [ 71/187] Installing pulseaudio-libs-0: 100% | 154.0 MiB/s | 3.4 MiB | 00m00s [ 72/187] Installing groff-base-0:1.23. 100% | 138.3 MiB/s | 3.9 MiB | 00m00s [ 73/187] Installing perl-Digest-0:1.20 100% | 9.1 MiB/s | 37.1 KiB | 00m00s [ 74/187] Installing perl-B-0:1.89-512. 100% | 81.6 MiB/s | 501.3 KiB | 00m00s [ 75/187] Installing perl-FileHandle-0: 100% | 3.2 MiB/s | 9.8 KiB | 00m00s [ 76/187] Installing perl-Digest-MD5-0: 100% | 15.1 MiB/s | 61.7 KiB | 00m00s [ 77/187] Installing perl-Data-Dumper-0 100% | 27.7 MiB/s | 113.6 KiB | 00m00s [ 78/187] Installing perl-MIME-Base32-0 100% | 10.5 MiB/s | 32.2 KiB | 00m00s [ 79/187] Installing perl-libnet-0:3.15 100% | 48.0 MiB/s | 294.7 KiB | 00m00s [ 80/187] Installing perl-IO-Socket-IP- 100% | 32.7 MiB/s | 100.5 KiB | 00m00s [ 81/187] Installing perl-AutoLoader-0: 100% | 6.8 MiB/s | 20.9 KiB | 00m00s [ 82/187] Installing perl-URI-0:5.31-1. 100% | 32.9 MiB/s | 269.6 KiB | 00m00s [ 83/187] Installing perl-locale-0:1.12 100% | 2.2 MiB/s | 6.9 KiB | 00m00s [ 84/187] Installing perl-File-Path-0:2 100% | 21.0 MiB/s | 64.5 KiB | 00m00s [ 85/187] Installing perl-if-0:0.61.000 100% | 2.0 MiB/s | 6.2 KiB | 00m00s [ 86/187] Installing perl-Mozilla-CA-0: 100% | 3.7 MiB/s | 11.3 KiB | 00m00s [ 87/187] Installing perl-Time-Local-2: 100% | 23.0 MiB/s | 70.6 KiB | 00m00s [ 88/187] Installing perl-Pod-Escapes-1 100% | 8.4 MiB/s | 25.9 KiB | 00m00s [ 89/187] Installing perl-Text-Tabs+Wra 100% | 7.8 MiB/s | 23.9 KiB | 00m00s [ 90/187] Installing perl-Net-SSLeay-0: 100% | 113.5 MiB/s | 1.4 MiB | 00m00s [ 91/187] Installing perl-IO-Socket-SSL 100% | 115.1 MiB/s | 707.4 KiB | 00m00s [ 92/187] Installing perl-Class-Struct- 100% | 8.4 MiB/s | 25.9 KiB | 00m00s [ 93/187] Installing perl-POSIX-0:2.20- 100% | 57.7 MiB/s | 236.4 KiB | 00m00s [ 94/187] Installing perl-File-Temp-1:0 100% | 40.1 MiB/s | 164.1 KiB | 00m00s [ 95/187] Installing perl-IPC-Open3-0:1 100% | 7.6 MiB/s | 23.3 KiB | 00m00s [ 96/187] Installing perl-Term-ANSIColo 100% | 24.2 MiB/s | 99.2 KiB | 00m00s [ 97/187] Installing perl-Term-Cap-0:1. 100% | 7.5 MiB/s | 30.6 KiB | 00m00s [ 98/187] Installing perl-Pod-Simple-1: 100% | 69.6 MiB/s | 570.5 KiB | 00m00s [ 99/187] Installing perl-HTTP-Tiny-0:0 100% | 37.7 MiB/s | 154.2 KiB | 00m00s [100/187] Installing perl-Symbol-0:1.09 100% | 2.3 MiB/s | 7.2 KiB | 00m00s [101/187] Installing perl-SelectSaver-0 100% | 859.4 KiB/s | 2.6 KiB | 00m00s [102/187] Installing perl-Socket-4:2.03 100% | 24.6 MiB/s | 126.1 KiB | 00m00s [103/187] Installing perl-File-stat-0:1 100% | 4.2 MiB/s | 13.1 KiB | 00m00s [104/187] Installing perl-podlators-1:6 100% | 52.3 MiB/s | 321.4 KiB | 00m00s [105/187] Installing perl-Pod-Perldoc-0 100% | 27.5 MiB/s | 169.3 KiB | 00m00s [106/187] Installing perl-Text-ParseWor 100% | 4.7 MiB/s | 14.6 KiB | 00m00s [107/187] Installing perl-Fcntl-0:1.18- 100% | 16.3 MiB/s | 50.1 KiB | 00m00s [108/187] Installing perl-base-0:2.27-5 100% | 4.2 MiB/s | 12.9 KiB | 00m00s [109/187] Installing perl-overloading-0 100% | 1.8 MiB/s | 5.5 KiB | 00m00s [110/187] Installing perl-IO-0:1.55-512 100% | 30.3 MiB/s | 155.2 KiB | 00m00s [111/187] Installing perl-mro-0:1.29-51 100% | 15.2 MiB/s | 46.7 KiB | 00m00s [112/187] Installing perl-Pod-Usage-4:2 100% | 16.9 MiB/s | 86.3 KiB | 00m00s [113/187] Installing perl-Errno-0:1.38- 100% | 2.9 MiB/s | 8.8 KiB | 00m00s [114/187] Installing perl-File-Basename 100% | 4.7 MiB/s | 14.6 KiB | 00m00s [115/187] Installing perl-constant-0:1. 100% | 8.9 MiB/s | 27.4 KiB | 00m00s [116/187] Installing perl-Scalar-List-U 100% | 24.8 MiB/s | 152.6 KiB | 00m00s [117/187] Installing perl-parent-1:0.24 100% | 3.5 MiB/s | 10.7 KiB | 00m00s [118/187] Installing perl-vars-0:1.05-5 100% | 1.4 MiB/s | 4.3 KiB | 00m00s [119/187] Installing perl-overload-0:1. 100% | 23.4 MiB/s | 71.9 KiB | 00m00s [120/187] Installing perl-MIME-Base64-0 100% | 11.8 MiB/s | 48.4 KiB | 00m00s [121/187] Installing perl-Getopt-Std-0: 100% | 3.8 MiB/s | 11.7 KiB | 00m00s [122/187] Installing perl-Getopt-Long-1 100% | 35.9 MiB/s | 147.2 KiB | 00m00s [123/187] Installing perl-Storable-1:3. 100% | 57.1 MiB/s | 234.0 KiB | 00m00s [124/187] Installing perl-Exporter-0:5. 100% | 18.1 MiB/s | 55.6 KiB | 00m00s [125/187] Installing perl-PathTools-0:3 100% | 30.0 MiB/s | 184.6 KiB | 00m00s [126/187] Installing perl-DynaLoader-0: 100% | 10.6 MiB/s | 32.5 KiB | 00m00s [127/187] Installing perl-Encode-4:3.21 100% | 248.3 MiB/s | 4.7 MiB | 00m00s [128/187] Installing perl-Carp-0:1.54-5 100% | 9.3 MiB/s | 47.7 KiB | 00m00s [129/187] Installing perl-libs-4:5.40.0 100% | 178.2 MiB/s | 10.0 MiB | 00m00s [130/187] Installing perl-interpreter-4 100% | 15.1 MiB/s | 124.0 KiB | 00m00s [131/187] Installing perl-threads-1:2.4 100% | 12.7 MiB/s | 117.2 KiB | 00m00s [132/187] Installing perl-threads-share 100% | 10.5 MiB/s | 86.0 KiB | 00m00s [133/187] Installing perl-Thread-Queue- 100% | 3.3 MiB/s | 30.4 KiB | 00m00s [134/187] Installing perl-File-Compare- 100% | 2.0 MiB/s | 6.1 KiB | 00m00s [135/187] Installing perl-File-Copy-0:2 100% | 3.3 MiB/s | 20.2 KiB | 00m00s [136/187] Installing perl-File-Find-0:1 100% | 6.9 MiB/s | 42.5 KiB | 00m00s [137/187] Installing vulkan-loader-0:1. 100% | 36.5 MiB/s | 523.3 KiB | 00m00s [138/187] Installing libepoxy-0:1.5.10- 100% | 90.5 MiB/s | 1.1 MiB | 00m00s [139/187] Installing virglrenderer-0:1. 100% | 93.7 MiB/s | 1.1 MiB | 00m00s [140/187] Installing webrtc-audio-proce 100% | 149.2 MiB/s | 1.3 MiB | 00m00s [141/187] Installing libusb1-0:1.0.27-4 100% | 56.1 MiB/s | 172.3 KiB | 00m00s [142/187] Installing libsbc-0:2.0-5.fc4 100% | 46.2 MiB/s | 94.6 KiB | 00m00s [143/187] Installing libldac-0:2.0.2.3- 100% | 41.2 MiB/s | 84.4 KiB | 00m00s [144/187] Installing liblc3-0:1.1.1-3.f 100% | 83.9 MiB/s | 171.9 KiB | 00m00s [145/187] Installing fdk-aac-free-0:2.0 100% | 148.6 MiB/s | 608.7 KiB | 00m00s [146/187] Installing bluez-libs-0:5.79- 100% | 65.0 MiB/s | 199.8 KiB | 00m00s [147/187] Installing alsa-lib-0:1.2.12- 100% | 126.8 MiB/s | 1.4 MiB | 00m00s [148/187] Installing libcbor-0:0.11.0-2 100% | 36.8 MiB/s | 75.3 KiB | 00m00s [149/187] Installing libfido2-0:1.15.0- 100% | 78.0 MiB/s | 239.7 KiB | 00m00s [150/187] Installing libmd-0:1.1.0-5.fc 100% | 51.1 MiB/s | 104.6 KiB | 00m00s [151/187] Installing libbsd-0:0.12.2-4. 100% | 102.7 MiB/s | 420.8 KiB | 00m00s [152/187] Installing nettle-0:3.10-3.fc 100% | 155.5 MiB/s | 796.1 KiB | 00m00s [153/187] Installing gnutls-0:3.8.8-1.f 100% | 249.9 MiB/s | 3.2 MiB | 00m00s [154/187] Installing glib2-0:2.83.0-1.f 100% | 293.9 MiB/s | 14.7 MiB | 00m00s [155/187] Installing pipewire-libs-0:1. 100% | 198.3 MiB/s | 7.1 MiB | 00m00s [156/187] Installing libkrunfw-0:4.5.1- 100% | 366.5 MiB/s | 18.7 MiB | 00m00s [157/187] Installing libkrun-0:1.9.5-2. 100% | 106.5 MiB/s | 3.5 MiB | 00m00s [158/187] Installing openssh-0:9.9p1-5. 100% | 197.1 MiB/s | 1.4 MiB | 00m00s [159/187] Installing openssh-clients-0: 100% | 204.5 MiB/s | 2.7 MiB | 00m00s [160/187] Installing libnl3-0:3.11.0-1. 100% | 171.1 MiB/s | 1.0 MiB | 00m00s [161/187] Installing libnet-0:1.3-4.fc4 100% | 67.4 MiB/s | 138.1 KiB | 00m00s [162/187] Installing criu-0:4.0-2.fc42. 100% | 157.2 MiB/s | 1.6 MiB | 00m00s [163/187] Installing criu-libs-0:4.0-2. 100% | 43.9 MiB/s | 89.9 KiB | 00m00s [164/187] Installing yajl-0:2.1.0-24.fc 100% | 45.5 MiB/s | 93.1 KiB | 00m00s [165/187] Installing libseccomp-0:2.5.5 100% | 85.5 MiB/s | 175.2 KiB | 00m00s [166/187] Installing less-0:668-1.fc42. 100% | 100.0 MiB/s | 409.7 KiB | 00m00s [167/187] Installing make-1:4.4.1-9.fc4 100% | 180.0 MiB/s | 1.8 MiB | 00m00s [168/187] Installing gcc-0:14.2.1-6.fc4 100% | 339.8 MiB/s | 104.3 MiB | 00m00s [169/187] Installing m4-0:1.4.19-10.fc4 100% | 23.4 MiB/s | 599.2 KiB | 00m00s [170/187] Installing emacs-filesystem-1 100% | 26.6 KiB/s | 544.0 B | 00m00s [171/187] Installing autoconf-0:2.72-3. 100% | 233.1 MiB/s | 2.8 MiB | 00m00s [172/187] Installing automake-0:1.16.5- 100% | 176.4 MiB/s | 1.8 MiB | 00m00s [173/187] Installing libtool-0:2.4.7-12 100% | 331.7 MiB/s | 2.7 MiB | 00m00s [174/187] Installing annobin-plugin-gcc 100% | 74.2 MiB/s | 987.3 KiB | 00m00s [175/187] Installing gcc-plugin-annobin 100% | 4.4 MiB/s | 59.2 KiB | 00m00s [176/187] Installing git-core-0:2.47.0- 100% | 359.4 MiB/s | 22.6 MiB | 00m00s [177/187] Installing libseccomp-devel-0 100% | 38.9 MiB/s | 119.5 KiB | 00m00s [178/187] Installing yajl-devel-0:2.1.0 100% | 27.2 MiB/s | 27.8 KiB | 00m00s [179/187] Installing criu-devel-0:4.0-2 100% | 52.9 MiB/s | 54.2 KiB | 00m00s [180/187] Installing libkrun-devel-0:1. 100% | 15.3 MiB/s | 15.7 KiB | 00m00s [181/187] Installing wasmedge-devel-0:0 100% | 107.8 MiB/s | 220.7 KiB | 00m00s [182/187] Installing python-unversioned 100% | 414.1 KiB/s | 424.0 B | 00m00s [183/187] Installing python3-libmount-0 100% | 59.9 MiB/s | 122.7 KiB | 00m00s [184/187] Installing systemd-rpm-macros 100% | 3.7 MiB/s | 11.2 KiB | 00m00s [185/187] Installing systemd-devel-0:25 100% | 22.6 MiB/s | 741.9 KiB | 00m00s [186/187] Installing libcap-devel-0:2.7 100% | 12.2 MiB/s | 50.0 KiB | 00m00s [187/187] Installing gperf-0:3.1-20.fc4 100% | 103.1 KiB/s | 670.3 KiB | 00m07s Complete! >>> 2024-11-12 23:27:36 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--install" "tar" "gcc-latest" "cppcheck" "gcc" "ShellCheck" Updating and loading repositories: fedora 100% | 507.6 KiB/s | 9.6 KiB | 00m00s Copr repository 100% | 15.5 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package "tar-2:1.35-4.fc41.x86_64" is already installed. Package "gcc-14.2.1-6.fc42.x86_64" is already installed. Package Arch Version Repository Size Installing: ShellCheck x86_64 0.10.0-3.fc41 fedora 20.6 MiB cppcheck x86_64 2.16.0-1.fc42 fedora 10.4 MiB gcc-latest x86_64 15.0.0-4.20241020git01f50ebfd97a.pr116613.v0.155.fc42 copr_base 295.1 MiB Installing dependencies: pcre x86_64 8.45-1.fc41.7 fedora 545.8 KiB tinyxml2 x86_64 9.0.0-5.fc41 fedora 103.8 KiB Transaction Summary: Installing: 5 packages Total size of inbound packages is 78 MiB. Need to download 0 B. After this operation, 327 MiB extra will be used (install 327 MiB, remove 0 B). [1/1] gcc-latest-0:15.0.0-4.20241020git 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [1/1] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/2] cppcheck-0:2.16.0-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [2/2] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/3] ShellCheck-0:0.10.0-3.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [3/3] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/4] pcre-0:8.45-1.fc41.7.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [4/4] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/5] tinyxml2-0:9.0.0-5.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [5/5] Total 100% | 0.0 B/s | 0.0 B | 00m00s Running transaction [1/7] Verify package files 100% | 16.0 B/s | 5.0 B | 00m00s [2/7] Prepare transaction 100% | 128.0 B/s | 5.0 B | 00m00s [3/7] Installing tinyxml2-0:9.0.0-5.fc4 100% | 25.6 MiB/s | 104.9 KiB | 00m00s [4/7] Installing pcre-0:8.45-1.fc41.7.x 100% | 133.8 MiB/s | 548.1 KiB | 00m00s [5/7] Installing cppcheck-0:2.16.0-1.fc 100% | 324.8 MiB/s | 10.4 MiB | 00m00s [6/7] Installing ShellCheck-0:0.10.0-3. 100% | 438.4 MiB/s | 20.6 MiB | 00m00s [7/7] Installing gcc-latest-0:15.0.0-4. 100% | 118.4 MiB/s | 295.4 MiB | 00m02s Warning: skipped PGP checks for 1 package from repository: copr_base Complete! >>> 2024-11-12 23:27:41 '/usr/bin/mock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '--plugin-option=tmpfs:keep_mounted=True' '--config-opts=print_main_output=True' '--quiet' '--shell' 'rpm -qa' | sort -V > /tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/rpm-list-mock.txt >>> 2024-11-12 23:27:42 '/usr/bin/mock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '--plugin-option=tmpfs:keep_mounted=True' '--config-opts=print_main_output=True' '--quiet' '--shell' 'rpm -qa --provides' | sort -V > /tmp/csmock_42lglbg/rpm-list-mock-provides.txt >>> 2024-11-12 23:27:43 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--copyin" "/tmp/csmock_42lglbg/crun-1.18.2-1.fc42.src.rpm" "/builddir/crun-1.18.2-1.fc42.src.rpm" >>> 2024-11-12 23:27:44 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--chroot" "chown mockbuild -R /builddir" >>> 2024-11-12 23:27:45 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--chroot" "/bin/su mockbuild -l -c \"rpm -Uvh --nodeps '/builddir/crun-1.18.2-1.fc42.src.rpm'\"" Updating / installing... crun-1.18.2-1.fc42 ######################################## >>> 2024-11-12 23:27:46 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--chroot" "/bin/su mockbuild -l -c \"rpmbuild -bs --nodeps /builddir/build/SPECS/crun.spec '--define' '_unpackaged_files_terminate_build 0' '--define' 'apidocs 0' '--define' 'with_publican 0' '--without' 'docs' '--without' 'langpacks' && sh -c 'cd /builddir/build/SRPMS && eval mv -v *.src.rpm /builddir/crun-1.18.2-1.fc42.src.rpm || :'\"" setting SOURCE_DATE_EPOCH=1730332800 Wrote: /builddir/build/SRPMS/crun-1.18.2-1.fc42.src.rpm renamed 'crun-1.18.2-1.fc42.src.rpm' -> '/builddir/crun-1.18.2-1.fc42.src.rpm' >>> 2024-11-12 23:27:47 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--disable-plugin=selinux" "--copyout" "/builddir/crun-1.18.2-1.fc42.src.rpm" "/tmp/csmock_42lglbg/crun-1.18.2-1.fc42.src.rpm" >>> 2024-11-12 23:27:49 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--no-clean" "--calculate-build-dependencies" "/tmp/csmock_42lglbg/crun-1.18.2-1.fc42.src.rpm" Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1730332800 Wrote: /builddir/build/SRPMS/crun-1.18.2-1.fc42.src.rpm Updating and loading repositories: fedora 100% | 482.2 KiB/s | 9.6 KiB | 00m00s Copr repository 100% | 16.5 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package "autoconf-2.72-3.fc41.noarch" is already installed. Package "automake-1.16.5-17.fc41.noarch" is already installed. Package "criu-devel-4.0-2.fc42.x86_64" is already installed. Package "gcc-14.2.1-6.fc42.x86_64" is already installed. Package "git-core-2.47.0-1.fc42.x86_64" is already installed. Package "gperf-3.1-20.fc41.x86_64" is already installed. Package "libcap-devel-2.71-1.fc42.x86_64" is already installed. Package "libkrun-devel-1.9.5-2.fc42.x86_64" is already installed. Package "libseccomp-devel-2.5.5-2.fc41.x86_64" is already installed. Package "libtool-2.4.7-12.fc41.x86_64" is already installed. Package "protobuf-c-devel-1.5.0-4.fc41.x86_64" is already installed. Package "python-unversioned-command-3.13.0-1.fc42.noarch" is already installed. Package "python3-libmount-2.40.2-8.fc42.x86_64" is already installed. Package "systemd-devel-257~rc1-2.fc42.x86_64" is already installed. Package "wasmedge-devel-0.14.1-1.fc42.x86_64" is already installed. Package "yajl-devel-2.1.0-24.fc41.x86_64" is already installed. Nothing to do. >>> 2024-11-12 23:27:52 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--install" "tar" "gcc-latest" "cppcheck" "gcc" "ShellCheck" Updating and loading repositories: fedora 100% | 535.8 KiB/s | 9.6 KiB | 00m00s Copr repository 100% | 16.5 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package "tar-2:1.35-4.fc41.x86_64" is already installed. Package "gcc-latest-15.0.0-4.20241020git01f50ebfd97a.pr116613.v0.155.fc42.x86_64" is already installed. Package "cppcheck-2.16.0-1.fc42.x86_64" is already installed. Package "gcc-14.2.1-6.fc42.x86_64" is already installed. Package "ShellCheck-0.10.0-3.fc41.x86_64" is already installed. Nothing to do. >>> 2024-11-12 23:27:53 '/usr/bin/mock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '--plugin-option=tmpfs:keep_mounted=True' '--config-opts=print_main_output=True' '--quiet' '--shell' 'rpm -qa' | sort -V > /tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/rpm-list-mock.txt >>> 2024-11-12 23:27:54 '/usr/bin/mock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '--plugin-option=tmpfs:keep_mounted=True' '--config-opts=print_main_output=True' '--quiet' '--shell' 'rpm -qa --provides' | sort -V > /tmp/csmock_42lglbg/rpm-list-mock-provides.txt >>> 2024-11-12 23:27:55 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--install" "csdiff" Updating and loading repositories: fedora 100% | 482.2 KiB/s | 9.6 KiB | 00m00s Copr repository 100% | 16.1 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package Arch Version Repository Size Installing: csdiff x86_64 3.5.2-1.fc42 fedora 3.7 MiB Installing dependencies: boost-atomic x86_64 1.83.0-8.fc41 fedora 21.0 KiB boost-filesystem x86_64 1.83.0-8.fc41 fedora 147.6 KiB boost-program-options x86_64 1.83.0-8.fc41 fedora 272.7 KiB boost-system x86_64 1.83.0-8.fc41 fedora 16.3 KiB Transaction Summary: Installing: 5 packages Total size of inbound packages is 1 MiB. Need to download 0 B. After this operation, 4 MiB extra will be used (install 4 MiB, remove 0 B). [1/1] csdiff-0:3.5.2-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [1/1] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/2] boost-filesystem-0:1.83.0-8.fc41. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [2/2] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/3] boost-program-options-0:1.83.0-8. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [3/3] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/4] boost-atomic-0:1.83.0-8.fc41.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [4/4] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/5] boost-system-0:1.83.0-8.fc41.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [5/5] Total 100% | 0.0 B/s | 0.0 B | 00m00s Running transaction [1/7] Verify package files 100% | 1.2 KiB/s | 5.0 B | 00m00s [2/7] Prepare transaction 100% | 200.0 B/s | 5.0 B | 00m00s [3/7] Installing boost-system-0:1.83.0- 100% | 4.2 MiB/s | 17.3 KiB | 00m00s [4/7] Installing boost-atomic-0:1.83.0- 100% | 10.7 MiB/s | 22.0 KiB | 00m00s [5/7] Installing boost-filesystem-0:1.8 100% | 48.4 MiB/s | 148.6 KiB | 00m00s [6/7] Installing boost-program-options- 100% | 89.1 MiB/s | 273.8 KiB | 00m00s [7/7] Installing csdiff-0:3.5.2-1.fc42. 100% | 64.6 MiB/s | 3.7 MiB | 00m00s Complete! >>> 2024-11-12 23:27:57 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--install" "clippy" Updating and loading repositories: fedora 100% | 419.3 KiB/s | 9.6 KiB | 00m00s Copr repository 100% | 16.7 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package Arch Version Repository Size Installing: clippy x86_64 1.82.0-1.fc42 fedora 11.0 MiB Installing dependencies: cargo x86_64 1.82.0-1.fc42 fedora 19.4 MiB libgit2 x86_64 1.8.4-1.fc42 fedora 1.3 MiB libssh2 x86_64 1.11.1-1.fc42 fedora 322.8 KiB llhttp x86_64 9.2.1-2.fc41 fedora 72.6 KiB rust x86_64 1.82.0-1.fc42 fedora 87.8 MiB rust-std-static x86_64 1.82.0-1.fc42 fedora 143.6 MiB Transaction Summary: Installing: 7 packages Total size of inbound packages is 73 MiB. Need to download 0 B. After this operation, 263 MiB extra will be used (install 263 MiB, remove 0 B). [1/1] clippy-0:1.82.0-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [1/1] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/2] cargo-0:1.82.0-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [2/2] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/3] rust-0:1.82.0-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [3/3] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/4] libgit2-0:1.8.4-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [4/4] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/5] libssh2-0:1.11.1-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [5/5] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/6] rust-std-static-0:1.82.0-1.fc42.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [6/6] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/7] llhttp-0:9.2.1-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [7/7] Total 100% | 0.0 B/s | 0.0 B | 00m00s Running transaction [1/9] Verify package files 100% | 30.0 B/s | 7.0 B | 00m00s [2/9] Prepare transaction 100% | 259.0 B/s | 7.0 B | 00m00s [3/9] Installing rust-std-static-0:1.82 100% | 413.8 MiB/s | 143.6 MiB | 00m00s [4/9] Installing rust-0:1.82.0-1.fc42.x 100% | 373.6 MiB/s | 87.8 MiB | 00m00s [5/9] Installing libssh2-0:1.11.1-1.fc4 100% | 105.6 MiB/s | 324.5 KiB | 00m00s [6/9] Installing llhttp-0:9.2.1-2.fc41. 100% | 36.0 MiB/s | 73.8 KiB | 00m00s [7/9] Installing libgit2-0:1.8.4-1.fc42 100% | 212.3 MiB/s | 1.3 MiB | 00m00s [8/9] Installing cargo-0:1.82.0-1.fc42. 100% | 346.0 MiB/s | 19.4 MiB | 00m00s [9/9] Installing clippy-0:1.82.0-1.fc42 100% | 9.0 MiB/s | 11.0 MiB | 00m01s Complete! >>> 2024-11-12 23:28:01 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--install" "python3-magic" Updating and loading repositories: fedora 100% | 482.2 KiB/s | 9.6 KiB | 00m00s Copr repository 100% | 6.9 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package Arch Version Repository Size Installing: python3-file-magic noarch 5.45-7.fc41 fedora 28.7 KiB Transaction Summary: Installing: 1 package Total size of inbound packages is 20 KiB. Need to download 0 B. After this operation, 29 KiB extra will be used (install 29 KiB, remove 0 B). [1/1] python3-file-magic-0:5.45-7.fc41. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [1/1] Total 100% | 0.0 B/s | 0.0 B | 00m00s Running transaction [1/3] Verify package files 100% | 0.0 B/s | 1.0 B | 00m00s [2/3] Prepare transaction 100% | 166.0 B/s | 1.0 B | 00m00s [3/3] Installing python3-file-magic-0:5 100% | 449.7 KiB/s | 31.0 KiB | 00m00s Complete! >>> 2024-11-12 23:28:03 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--install" "python3-six" Updating and loading repositories: fedora 100% | 507.6 KiB/s | 9.6 KiB | 00m00s Copr repository 100% | 8.2 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package Arch Version Repository Size Installing: python3-six noarch 1.16.0-23.fc41 fedora 118.3 KiB Transaction Summary: Installing: 1 package Total size of inbound packages is 41 KiB. Need to download 0 B. After this operation, 118 KiB extra will be used (install 118 KiB, remove 0 B). [1/1] python3-six-0:1.16.0-23.fc41.noar 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [1/1] Total 100% | 0.0 B/s | 0.0 B | 00m00s Running transaction [1/3] Verify package files 100% | 0.0 B/s | 1.0 B | 00m00s [2/3] Prepare transaction 100% | 200.0 B/s | 1.0 B | 00m00s [3/3] Installing python3-six-0:1.16.0-2 100% | 4.7 MiB/s | 120.7 KiB | 00m00s Complete! >>> 2024-11-12 23:28:05 '/usr/bin/mock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '--plugin-option=tmpfs:keep_mounted=True' '--config-opts=print_main_output=True' '--quiet' '--shell' 'rpm -qa' | sort -V > /tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/rpm-list-mock.txt >>> 2024-11-12 23:28:06 '/usr/bin/mock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '--plugin-option=tmpfs:keep_mounted=True' '--config-opts=print_main_output=True' '--quiet' '--shell' 'rpm -qa --provides' | sort -V > /tmp/csmock_42lglbg/rpm-list-mock-provides.txt >>> 2024-11-12 23:28:07 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--chroot" "chown mockbuild -R /builddir" >>> 2024-11-12 23:28:08 tar -cP '/usr/share/csmock/scripts' '/usr/bin/cswrap' '/usr/lib64/cswrap' '/usr/bin/cscppc' '/usr/lib64/cscppc' '/usr/share/cscppc' '/usr/bin/csgcca' '/usr/lib64/csgcca' '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42.src.rpm' | '/usr/bin/mock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '--plugin-option=tmpfs:keep_mounted=True' '--config-opts=print_main_output=True' '--quiet' '--shell' 'tar -xC/' tar: Removing leading `/' from member names scan.ini: analyzer-version-clippy = 1.82.0 >>> 2024-11-12 23:28:09 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--chroot" "/usr/share/csmock/scripts/inject-clippy.sh" renamed '/usr/bin/cargo' -> '/usr/bin/cargo_original' scan.ini: analyzer-version-cppcheck = 2.16.0 scan.ini: analyzer-version-gcc = 14.2.1 >>> 2024-11-12 23:28:11 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--chroot" "/bin/su mockbuild -l -c \"echo 'int main() {}' | /opt/gcc-latest/bin/gcc -xc - -c -o /dev/null -fanalyzer -fdiagnostics-path-format=separate-events\"" >>> 2024-11-12 23:28:12 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--chroot" "/bin/su mockbuild -l -c \"echo 'int main() {}' | /opt/gcc-latest/bin/gcc -xc - -c -o /dev/null -fanalyzer -fdiagnostics-path-format=separate-events -fdiagnostics-text-art-charset=none\"" >>> 2024-11-12 23:28:13 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--chroot" "echo '#!/bin/bash exec /opt/gcc-latest/bin/gcc \"\$@\"' > /usr/bin/csmock-gcc-wrapper && chmod 755 /usr/bin/csmock-gcc-wrapper" >>> 2024-11-12 23:28:15 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--chroot" "ln -sf ../../bin/cswrap /usr/lib64/cswrap/csmock-gcc-wrapper" scan.ini: analyzer-version-gcc-analyzer = 15.0.0 scan.ini: analyzer-version-shellcheck = 0.10.0 >>> 2024-11-12 23:28:17 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--chroot" "rpm -Uvh --nodeps '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42.src.rpm'" Updating / installing... crun-1.18.2-1.fc42 ######################################## >>> 2024-11-12 23:28:18 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--chroot" "chmod -R +r /builddir" >>> 2024-11-12 23:28:19 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--shell" "for i in /usr/share/csmock/scripts/chroot-fixups/*; do test -x \$i && echo RUN: \$i >&2 && \$i; done" RUN: /usr/share/csmock/scripts/chroot-fixups/00-pre-usr-move-shells.sh RUN: /usr/share/csmock/scripts/chroot-fixups/gdk-pixbuf2-triggers.sh RUN: /usr/share/csmock/scripts/chroot-fixups/glib2-triggers.sh + /usr/bin/gio-querymodules-64 /usr/lib64/gio/modules + /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas No schema files found: doing nothing. RUN: /usr/share/csmock/scripts/chroot-fixups/kpathsea-texhash.sh RUN: /usr/share/csmock/scripts/chroot-fixups/openssl-public-header-files.sh RUN: /usr/share/csmock/scripts/chroot-fixups/qt5-core-abi.sh RUN: /usr/share/csmock/scripts/chroot-fixups/rpm-build-scripts.sh + sed -e s/fail=1/fail=0/ -i /usr/lib/rpm/redhat/brp-mangle-shebangs '/usr/lib/rpm/brp-strip-static-archive' -> '/bin/true' RUN: /usr/share/csmock/scripts/chroot-fixups/rpm-macros.sh RUN: /usr/share/csmock/scripts/chroot-fixups/rpm-python-extras.sh RUN: /usr/share/csmock/scripts/chroot-fixups/shared-mime-info-triggers.sh RUN: /usr/share/csmock/scripts/chroot-fixups/symbiotic-timeout.sh >>> 2024-11-12 23:28:20 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--chroot" "/bin/su mockbuild -l -c \"rpmbuild -bp --nodeps /builddir/build/SPECS/crun.spec '--define' '_unpackaged_files_terminate_build 0' '--define' 'apidocs 0' '--define' 'with_publican 0' '--without' 'docs' '--without' 'langpacks'\"" INFO: mock.py version 5.9 starting (python version = 3.9.20, NVR = mock-5.9-1.el9), args: /usr/libexec/mock/mock -r fedora-rawhide-gcc-latest-x86_64 --plugin-option=tmpfs:keep_mounted=True --config-opts=print_main_output=True --chroot '/bin/su mockbuild -l -c "rpmbuild -bp --nodeps /builddir/build/SPECS/crun.spec '"'"'--define'"'"' '"'"'_unpackaged_files_terminate_build 0'"'"' '"'"'--define'"'"' '"'"'apidocs 0'"'"' '"'"'--define'"'"' '"'"'with_publican 0'"'"' '"'"'--without'"'"' '"'"'docs'"'"' '"'"'--without'"'"' '"'"'langpacks'"'"'"' Start(bootstrap): init plugins INFO: selinux enabled Finish(bootstrap): init plugins Start: init plugins INFO: selinux enabled Finish: init plugins INFO: Signal handler active Start: run Mock Version: 5.9 INFO: Mock Version: 5.9 Start(bootstrap): chroot init INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata INFO: Package manager dnf5 detected and used (fallback) Finish(bootstrap): chroot init Start: chroot init INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin INFO: Package manager dnf5 detected and used (direct choice) Finish: chroot init INFO: Running in chroot: ['/bin/su mockbuild -l -c "rpmbuild -bp --nodeps /builddir/build/SPECS/crun.spec \'--define\' \'_unpackaged_files_terminate_build 0\' \'--define\' \'apidocs 0\' \'--define\' \'with_publican 0\' \'--without\' \'docs\' \'--without\' \'langpacks\'"'] Start: chroot ['/bin/su mockbuild -l -c "rpmbuild -bp --nodeps /builddir/build/SPECS/crun.spec \'--define\' \'_unpackaged_files_terminate_build 0\' \'--define\' \'apidocs 0\' \'--define\' \'with_publican 0\' \'--without\' \'docs\' \'--without\' \'langpacks\'"'] setting SOURCE_DATE_EPOCH=1730332800 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.2INZyU + umask 022 + cd /builddir/build/BUILD/crun-1.18.2-build + test -d /builddir/build/BUILD/crun-1.18.2-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILD/crun-1.18.2-build + /usr/bin/rm -rf /builddir/build/BUILD/crun-1.18.2-build + /usr/bin/mkdir -p /builddir/build/BUILD/crun-1.18.2-build + /usr/bin/mkdir -p /builddir/build/BUILD/crun-1.18.2-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.YmVrWK + umask 022 + cd /builddir/build/BUILD/crun-1.18.2-build + cd /builddir/build/BUILD/crun-1.18.2-build + rm -rf crun-1.18.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/crun-1.18.2.tar.zst + STATUS=0 + '[' 0 -ne 0 ']' + cd crun-1.18.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git config gc.auto 0 + /usr/bin/git add --force . + GIT_COMMITTER_DATE=@1730332800 + GIT_AUTHOR_DATE=@1730332800 + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'crun-1.18.2 base' + /usr/bin/git checkout --track -b rpm-build Switched to a new branch 'rpm-build' branch 'rpm-build' set up to track 'master'. + RPM_EC=0 ++ jobs -p + exit 0 Finish: chroot ['/bin/su mockbuild -l -c "rpmbuild -bp --nodeps /builddir/build/SPECS/crun.spec \'--define\' \'_unpackaged_files_terminate_build 0\' \'--define\' \'apidocs 0\' \'--define\' \'with_publican 0\' \'--without\' \'docs\' \'--without\' \'langpacks\'"'] Finish: run >>> 2024-11-12 23:28:21 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--chroot" "chmod -R +r /builddir/build" >>> 2024-11-12 23:28:22 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--chroot" "/bin/su mockbuild -l -c \"PATH=/usr/lib64/cscppc:/usr/lib64/csgcca:/usr/lib64/cswrap:\\\$PATH CSWRAP_CAP_FILE=\\\$'/builddir/cswrap-capture.err' CSWRAP_TIMEOUT=\\\$'30' CSWRAP_TIMEOUT_FOR=\\\$'::cppcheck:csmock-gcc-wrapper' CSWRAP_ADD_CFLAGS=\\\$'-Wno-unknown-pragmas' CSWRAP_DEL_CFLAGS=\\\$'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register' CSWRAP_ADD_CXXFLAGS=\\\$'' CSWRAP_DEL_CXXFLAGS=\\\$'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register' CSGCCA_ADD_OPTS=\\\$'-fdiagnostics-text-art-charset=none' CSGCCA_ANALYZER_BIN=\\\$'csmock-gcc-wrapper' sh -c \\\"rpmbuild -bc --nodeps --short-circuit /builddir/build/SPECS/crun.spec '--define' '_unpackaged_files_terminate_build 0' '--define' 'apidocs 0' '--define' 'with_publican 0' '--without' 'docs' '--without' 'langpacks' '--define' 'libguestfs_runtests 0' '--define' 'runselftest 0' '--without' 'test' '--without' 'testsuite'\\\"\"" INFO: mock.py version 5.9 starting (python version = 3.9.20, NVR = mock-5.9-1.el9), args: /usr/libexec/mock/mock -r fedora-rawhide-gcc-latest-x86_64 --plugin-option=tmpfs:keep_mounted=True --config-opts=print_main_output=True --chroot '/bin/su mockbuild -l -c "PATH=/usr/lib64/cscppc:/usr/lib64/csgcca:/usr/lib64/cswrap:\$PATH CSWRAP_CAP_FILE=\$'"'"'/builddir/cswrap-capture.err'"'"' CSWRAP_TIMEOUT=\$'"'"'30'"'"' CSWRAP_TIMEOUT_FOR=\$'"'"'::cppcheck:csmock-gcc-wrapper'"'"' CSWRAP_ADD_CFLAGS=\$'"'"'-Wno-unknown-pragmas'"'"' CSWRAP_DEL_CFLAGS=\$'"'"'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register'"'"' CSWRAP_ADD_CXXFLAGS=\$'"'"''"'"' CSWRAP_DEL_CXXFLAGS=\$'"'"'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register'"'"' CSGCCA_ADD_OPTS=\$'"'"'-fdiagnostics-text-art-charset=none'"'"' CSGCCA_ANALYZER_BIN=\$'"'"'csmock-gcc-wrapper'"'"' sh -c \"rpmbuild -bc --nodeps --short-circuit /builddir/build/SPECS/crun.spec '"'"'--define'"'"' '"'"'_unpackaged_files_terminate_build 0'"'"' '"'"'--define'"'"' '"'"'apidocs 0'"'"' '"'"'--define'"'"' '"'"'with_publican 0'"'"' '"'"'--without'"'"' '"'"'docs'"'"' '"'"'--without'"'"' '"'"'langpacks'"'"' '"'"'--define'"'"' '"'"'libguestfs_runtests 0'"'"' '"'"'--define'"'"' '"'"'runselftest 0'"'"' '"'"'--without'"'"' '"'"'test'"'"' '"'"'--without'"'"' '"'"'testsuite'"'"'\""' Start(bootstrap): init plugins INFO: selinux enabled Finish(bootstrap): init plugins Start: init plugins INFO: selinux enabled Finish: init plugins INFO: Signal handler active Start: run Mock Version: 5.9 INFO: Mock Version: 5.9 Start(bootstrap): chroot init INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata INFO: Package manager dnf5 detected and used (fallback) Finish(bootstrap): chroot init Start: chroot init INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin INFO: Package manager dnf5 detected and used (direct choice) Finish: chroot init INFO: Running in chroot: ['/bin/su mockbuild -l -c "PATH=/usr/lib64/cscppc:/usr/lib64/csgcca:/usr/lib64/cswrap:\\$PATH CSWRAP_CAP_FILE=\\$\'/builddir/cswrap-capture.err\' CSWRAP_TIMEOUT=\\$\'30\' CSWRAP_TIMEOUT_FOR=\\$\'::cppcheck:csmock-gcc-wrapper\' CSWRAP_ADD_CFLAGS=\\$\'-Wno-unknown-pragmas\' CSWRAP_DEL_CFLAGS=\\$\'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register\' CSWRAP_ADD_CXXFLAGS=\\$\'\' CSWRAP_DEL_CXXFLAGS=\\$\'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register\' CSGCCA_ADD_OPTS=\\$\'-fdiagnostics-text-art-charset=none\' CSGCCA_ANALYZER_BIN=\\$\'csmock-gcc-wrapper\' sh -c \\"rpmbuild -bc --nodeps --short-circuit /builddir/build/SPECS/crun.spec \'--define\' \'_unpackaged_files_terminate_build 0\' \'--define\' \'apidocs 0\' \'--define\' \'with_publican 0\' \'--without\' \'docs\' \'--without\' \'langpacks\' \'--define\' \'libguestfs_runtests 0\' \'--define\' \'runselftest 0\' \'--without\' \'test\' \'--without\' \'testsuite\'\\""'] Start: chroot ['/bin/su mockbuild -l -c "PATH=/usr/lib64/cscppc:/usr/lib64/csgcca:/usr/lib64/cswrap:\\$PATH CSWRAP_CAP_FILE=\\$\'/builddir/cswrap-capture.err\' CSWRAP_TIMEOUT=\\$\'30\' CSWRAP_TIMEOUT_FOR=\\$\'::cppcheck:csmock-gcc-wrapper\' CSWRAP_ADD_CFLAGS=\\$\'-Wno-unknown-pragmas\' CSWRAP_DEL_CFLAGS=\\$\'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register\' CSWRAP_ADD_CXXFLAGS=\\$\'\' CSWRAP_DEL_CXXFLAGS=\\$\'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register\' CSGCCA_ADD_OPTS=\\$\'-fdiagnostics-text-art-charset=none\' CSGCCA_ANALYZER_BIN=\\$\'csmock-gcc-wrapper\' sh -c \\"rpmbuild -bc --nodeps --short-circuit /builddir/build/SPECS/crun.spec \'--define\' \'_unpackaged_files_terminate_build 0\' \'--define\' \'apidocs 0\' \'--define\' \'with_publican 0\' \'--without\' \'docs\' \'--without\' \'langpacks\' \'--define\' \'libguestfs_runtests 0\' \'--define\' \'runselftest 0\' \'--without\' \'test\' \'--without\' \'testsuite\'\\""'] setting SOURCE_DATE_EPOCH=1730332800 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.tWF1uT + umask 022 + cd /builddir/build/BUILD/crun-1.18.2-build + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd crun-1.18.2 + ./autogen.sh libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. configure.ac:7: installing './compile' configure.ac:8: installing './missing' Makefile.am: installing './depcomp' libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'. libtoolize: copying file 'build-aux/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. configure.ac:3: warning: The macro 'AC_CONFIG_HEADER' is obsolete. configure.ac:3: You should run autoupdate. ./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... configure.ac:3: the top level configure.ac:7: installing 'build-aux/compile' configure.ac:11: installing 'build-aux/missing' Makefile.am: installing 'build-aux/depcomp' libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'. libtoolize: copying file 'build-aux/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' configure.ac:13: installing 'build-aux/compile' configure.ac:15: installing 'build-aux/missing' Makefile.am: installing 'build-aux/depcomp' + ./configure --disable-silent-rules --with-libkrun --with-wasmedge checking whether ln -s works... yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking how to print strings... printf checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for file... file checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking for gawk... gawk checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking whether make sets $(MAKE)... yes checking whether make supports the include directive... yes (GNU style) checking whether make supports nested variables... yes checking whether UID '1001' is supported by ustar format... yes checking whether GID '135' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking dependency style of gcc... gcc3 checking whether to enable maintainer-specific portions of Makefiles... yes checking whether make supports nested variables... (cached) yes checking for gawk... (cached) gawk checking for a sed that does not truncate output... (cached) /usr/bin/sed checking for gcc... (cached) gcc checking whether the compiler supports GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to enable C11 features... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking for a Python interpreter with version >= 3... python checking for python... /usr/bin/python checking for python version... 3.13 checking for python platform... linux checking for GNU default python prefix... ${prefix} checking for GNU default python exec_prefix... ${exec_prefix} checking for python script directory (pythondir)... ${PYTHON_PREFIX}/lib/python3.13/site-packages checking for python extension module directory (pyexecdir)... ${PYTHON_EXEC_PREFIX}/lib64/python3.13/site-packages checking for go-md2man... no checking for error.h... yes checking for linux/openat2.h... yes checking for stdatomic.h... yes checking for linux/ioprio.h... yes checking for atomic_int... yes checking for copy_file_range... yes checking for fgetxattr... yes checking for statx... yes checking for fgetpwent_r... yes checking for issetugid... no checking for memfd_create... yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for library containing yajl_tree_get... -lyajl checking for yajl >= 2.0.0... yes checking for sys/capability.h... yes checking for library containing cap_from_name... -lcap checking for library containing dlopen... none required checking for wasmedge/wasmedge.h... yes checking for libkrun.h... yes checking for seccomp.h... yes checking for library containing seccomp_rule_add... -lseccomp checking for library containing seccomp_arch_resolve_name... none required checking for systemd/sd-bus.h... yes checking for library containing sd_bus_match_signal_async... -lsystemd checking for sd_notify_barrier... yes checking for linux/bpf.h... yes checking compilation for eBPF... yes checking for criu >= 3.15... yes checking for criu > 3.16... yes checking for criu > 3.16.1... yes checking for new mount API (fsconfig)... yes yes checking for seccomp notify API... yes checking for gperf... gperf checking for library containing argp_parse... none required checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing libtool commands config.status: executing depfiles commands === configuring in libocispec (/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local' '--disable-silent-rules' '--with-libkrun' '--with-wasmedge' 'CC=gcc' 'CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' 'LT_SYS_LIBRARY_PATH=/usr/lib64:' 'PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' --cache-file=/dev/null --srcdir=. checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for wchar.h... yes checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking whether _XOPEN_SOURCE should be defined... no checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for file... file checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking for gawk... gawk checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking whether make sets $(MAKE)... yes checking whether make supports the include directive... yes (GNU style) checking whether make supports nested variables... yes checking whether UID '1001' is supported by ustar format... yes checking whether GID '135' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking dependency style of gcc... gcc3 checking whether to enable maintainer-specific portions of Makefiles... yes checking whether make supports nested variables... (cached) yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for library containing yajl_tree_get... -lyajl checking for yajl >= 2.0.0... yes checking for a sed that does not truncate output... (cached) /usr/bin/sed checking for gcc... (cached) gcc checking whether the compiler supports GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to enable C11 features... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking for a Python interpreter with version >= 3... python checking for python... /usr/bin/python checking for python version... 3.13 checking for python platform... linux checking for GNU default python prefix... ${prefix} checking for GNU default python exec_prefix... ${exec_prefix} checking for python script directory (pythondir)... ${PYTHON_PREFIX}/lib/python3.13/site-packages checking for python extension module directory (pyexecdir)... ${PYTHON_EXEC_PREFIX}/lib64/python3.13/site-packages checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating ocispec.pc config.status: creating config.h config.status: executing libtool commands config.status: executing depfiles commands === configuring in yajl (/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local' '--disable-silent-rules' '--with-libkrun' '--with-wasmedge' 'CC=gcc' 'CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' 'LT_SYS_LIBRARY_PATH=/usr/lib64:' 'PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' --cache-file=/dev/null --srcdir=. checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports the include directive... yes (GNU style) checking whether make supports nested variables... yes checking whether UID '1001' is supported by ustar format... yes checking whether GID '135' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking dependency style of gcc... gcc3 checking whether to enable maintainer-specific portions of Makefiles... yes checking whether make supports nested variables... (cached) yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for file... file checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes checking for float.h... yes checking for limits.h... yes checking for stddef.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for sys/time.h... yes checking for inline... inline checking for size_t... yes checking for GNU libc compatible malloc... yes checking for GNU libc compatible realloc... yes checking for working strtod... yes checking for gettimeofday... yes checking for memset... yes checking for strspn... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands + /usr/bin/make -O -j8 V=1 VERBOSE=1 echo 1.18.2 > .version-t && mv .version-t .version /usr/bin/make all-recursive Making all in libocispec make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /usr/bin/python ./src/ocispec/generate.py --gen-ref --root=./tests/test-spec --out=./src/ocispec ./tests/test-spec/imageManifestItems Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/tests/test-spec/imageManifestItems/image-manifest-items-schema.json Success make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /usr/bin/python ./src/ocispec/generate.py --gen-ref --root=./tests/test-spec --out=./src/ocispec ./tests/test-spec/basic Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/tests/test-spec/basic/test_double_array_item.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/tests/test-spec/basic/test_double_array.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/tests/test-spec/basic/test_top_array_int.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/tests/test-spec/basic/test_top_array_string.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/tests/test-spec/basic/test_top_double_array_int.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/tests/test-spec/basic/test_top_double_array_obj.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/tests/test-spec/basic/test_top_double_array_refobj.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/tests/test-spec/basic/test_top_double_array_string.json Success make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /usr/bin/python ./src/ocispec/generate.py --gen-ref --root=. --out=./src/ocispec ./image-spec/schema Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/image-spec/schema/content-descriptor.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/image-spec/schema/defs-descriptor.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/image-spec/schema/image-manifest-schema.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/image-spec/schema/image-index-schema.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/image-spec/schema/image-layout-schema.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/image-spec/schema/config-schema.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/image-spec/schema/defs.json Success make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /usr/bin/python ./src/ocispec/generate.py --gen-ref --root=. --out=./src/ocispec ./runtime-spec/schema Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/runtime-spec/schema/config-zos.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/runtime-spec/schema/defs-linux.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/runtime-spec/schema/defs-vm.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/runtime-spec/schema/defs-windows.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/runtime-spec/schema/defs-zos.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/runtime-spec/schema/defs.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/runtime-spec/schema/features-linux.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/runtime-spec/schema/features-schema.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/runtime-spec/schema/state-schema.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/runtime-spec/schema/config-windows.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/runtime-spec/schema/config-linux.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/runtime-spec/schema/config-schema.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/runtime-spec/schema/config-solaris.json Success Reflection: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/runtime-spec/schema/config-vm.json Success make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /usr/bin/make all-recursive Making all in yajl /usr/bin/make all-am make[5]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' gcc -DHAVE_CONFIG_H -I. -I ./src/headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT verify/json_verify-json_verify.o -MD -MP -MF verify/.deps/json_verify-json_verify.Tpo -c -o verify/json_verify-json_verify.o `test -f 'verify/json_verify.c' || echo './'`verify/json_verify.c mv -f verify/.deps/json_verify-json_verify.Tpo verify/.deps/json_verify-json_verify.Po /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl/verify/json_verify.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] make[5]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' make[5]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DNDEBUG -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl/src/headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libyajl_la-yajl_alloc.lo -MD -MP -MF src/.deps/libyajl_la-yajl_alloc.Tpo -c -o src/libyajl_la-yajl_alloc.lo `test -f 'src/yajl_alloc.c' || echo './'`src/yajl_alloc.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DNDEBUG -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl/src/headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libyajl_la-yajl_alloc.lo -MD -MP -MF src/.deps/libyajl_la-yajl_alloc.Tpo -c src/yajl_alloc.c -o src/libyajl_la-yajl_alloc.o mv -f src/.deps/libyajl_la-yajl_alloc.Tpo src/.deps/libyajl_la-yajl_alloc.Plo make[5]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' make[5]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DNDEBUG -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl/src/headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libyajl_la-yajl_buf.lo -MD -MP -MF src/.deps/libyajl_la-yajl_buf.Tpo -c -o src/libyajl_la-yajl_buf.lo `test -f 'src/yajl_buf.c' || echo './'`src/yajl_buf.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DNDEBUG -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl/src/headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libyajl_la-yajl_buf.lo -MD -MP -MF src/.deps/libyajl_la-yajl_buf.Tpo -c src/yajl_buf.c -o src/libyajl_la-yajl_buf.o mv -f src/.deps/libyajl_la-yajl_buf.Tpo src/.deps/libyajl_la-yajl_buf.Plo make[5]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' make[5]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DNDEBUG -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl/src/headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libyajl_la-yajl_encode.lo -MD -MP -MF src/.deps/libyajl_la-yajl_encode.Tpo -c -o src/libyajl_la-yajl_encode.lo `test -f 'src/yajl_encode.c' || echo './'`src/yajl_encode.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DNDEBUG -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl/src/headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libyajl_la-yajl_encode.lo -MD -MP -MF src/.deps/libyajl_la-yajl_encode.Tpo -c src/yajl_encode.c -o src/libyajl_la-yajl_encode.o mv -f src/.deps/libyajl_la-yajl_encode.Tpo src/.deps/libyajl_la-yajl_encode.Plo make[5]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' make[5]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DNDEBUG -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl/src/headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libyajl_la-yajl.lo -MD -MP -MF src/.deps/libyajl_la-yajl.Tpo -c -o src/libyajl_la-yajl.lo `test -f 'src/yajl.c' || echo './'`src/yajl.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DNDEBUG -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl/src/headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libyajl_la-yajl.lo -MD -MP -MF src/.deps/libyajl_la-yajl.Tpo -c src/yajl.c -o src/libyajl_la-yajl.o mv -f src/.deps/libyajl_la-yajl.Tpo src/.deps/libyajl_la-yajl.Plo make[5]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' make[5]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DNDEBUG -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl/src/headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libyajl_la-yajl_gen.lo -MD -MP -MF src/.deps/libyajl_la-yajl_gen.Tpo -c -o src/libyajl_la-yajl_gen.lo `test -f 'src/yajl_gen.c' || echo './'`src/yajl_gen.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DNDEBUG -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl/src/headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libyajl_la-yajl_gen.lo -MD -MP -MF src/.deps/libyajl_la-yajl_gen.Tpo -c src/yajl_gen.c -o src/libyajl_la-yajl_gen.o mv -f src/.deps/libyajl_la-yajl_gen.Tpo src/.deps/libyajl_la-yajl_gen.Plo make[5]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl/src/yajl_gen.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] make[5]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DNDEBUG -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl/src/headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libyajl_la-yajl_parser.lo -MD -MP -MF src/.deps/libyajl_la-yajl_parser.Tpo -c -o src/libyajl_la-yajl_parser.lo `test -f 'src/yajl_parser.c' || echo './'`src/yajl_parser.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DNDEBUG -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl/src/headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libyajl_la-yajl_parser.lo -MD -MP -MF src/.deps/libyajl_la-yajl_parser.Tpo -c src/yajl_parser.c -o src/libyajl_la-yajl_parser.o mv -f src/.deps/libyajl_la-yajl_parser.Tpo src/.deps/libyajl_la-yajl_parser.Plo make[5]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl/src/yajl_parser.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] make[5]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DNDEBUG -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl/src/headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libyajl_la-yajl_tree.lo -MD -MP -MF src/.deps/libyajl_la-yajl_tree.Tpo -c -o src/libyajl_la-yajl_tree.lo `test -f 'src/yajl_tree.c' || echo './'`src/yajl_tree.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DNDEBUG -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl/src/headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libyajl_la-yajl_tree.lo -MD -MP -MF src/.deps/libyajl_la-yajl_tree.Tpo -c src/yajl_tree.c -o src/libyajl_la-yajl_tree.o mv -f src/.deps/libyajl_la-yajl_tree.Tpo src/.deps/libyajl_la-yajl_tree.Plo make[5]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' make[5]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DNDEBUG -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl/src/headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libyajl_la-yajl_lex.lo -MD -MP -MF src/.deps/libyajl_la-yajl_lex.Tpo -c -o src/libyajl_la-yajl_lex.lo `test -f 'src/yajl_lex.c' || echo './'`src/yajl_lex.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DNDEBUG -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl/src/headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libyajl_la-yajl_lex.lo -MD -MP -MF src/.deps/libyajl_la-yajl_lex.Tpo -c src/yajl_lex.c -o src/libyajl_la-yajl_lex.o mv -f src/.deps/libyajl_la-yajl_lex.Tpo src/.deps/libyajl_la-yajl_lex.Plo make[5]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl/src/yajl_lex.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] make[5]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' /bin/sh ./libtool --tag=CC --mode=link gcc -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl/src/headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o libyajl.la src/libyajl_la-yajl_alloc.lo src/libyajl_la-yajl.lo src/libyajl_la-yajl_gen.lo src/libyajl_la-yajl_parser.lo src/libyajl_la-yajl_buf.lo src/libyajl_la-yajl_encode.lo src/libyajl_la-yajl_lex.lo src/libyajl_la-yajl_tree.lo libtool: link: ar cr .libs/libyajl.a src/libyajl_la-yajl_alloc.o src/libyajl_la-yajl.o src/libyajl_la-yajl_gen.o src/libyajl_la-yajl_parser.o src/libyajl_la-yajl_buf.o src/libyajl_la-yajl_encode.o src/libyajl_la-yajl_lex.o src/libyajl_la-yajl_tree.o libtool: link: ranlib .libs/libyajl.a libtool: link: ( cd ".libs" && rm -f "libyajl.la" && ln -s "../libyajl.la" "libyajl.la" ) make[5]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' make[5]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' /bin/sh ./libtool --tag=CC --mode=link gcc -I ./src/headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o verify/json_verify verify/json_verify-json_verify.o libyajl.la libtool: link: gcc -I ./src/headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o verify/json_verify verify/json_verify-json_verify.o ./.libs/libyajl.a make[5]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/validate.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/validate.o -MD -MP -MF $depbase.Tpo -c -o src/ocispec/validate.o src/ocispec/validate.c &&\ mv -f $depbase.Tpo $depbase.Po make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/image_spec_schema_defs_descriptor.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/image_spec_schema_defs_descriptor.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/image_spec_schema_defs_descriptor.lo src/ocispec/image_spec_schema_defs_descriptor.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/image_spec_schema_defs_descriptor.lo -MD -MP -MF src/ocispec/.deps/image_spec_schema_defs_descriptor.Tpo -c src/ocispec/image_spec_schema_defs_descriptor.c -o src/ocispec/image_spec_schema_defs_descriptor.o make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/runtime_spec_schema_config_zos.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_config_zos.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_config_zos.lo src/ocispec/runtime_spec_schema_config_zos.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_config_zos.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_config_zos.Tpo -c src/ocispec/runtime_spec_schema_config_zos.c -o src/ocispec/runtime_spec_schema_config_zos.o /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_zos.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_zos.c:181: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/image_spec_schema_defs.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/image_spec_schema_defs.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/image_spec_schema_defs.lo src/ocispec/image_spec_schema_defs.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/image_spec_schema_defs.lo -MD -MP -MF src/ocispec/.deps/image_spec_schema_defs.Tpo -c src/ocispec/image_spec_schema_defs.c -o src/ocispec/image_spec_schema_defs.o /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c: In function 'free_image_spec_schema_defs_map_string_object': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:86: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:89: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:126:5: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:67:1: note: (1) entry to 'make_image_spec_schema_defs_map_string_object' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:72:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:74:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:75:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:9, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:8: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:154:49: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:177:29: note: in expansion of macro 'YAJL_IS_OBJECT' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:77:9: note: in expansion of macro 'YAJL_GET_OBJECT' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:154:42: note: (6) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:177:29: note: in expansion of macro 'YAJL_IS_OBJECT' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:77:9: note: in expansion of macro 'YAJL_GET_OBJECT' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:80:16: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:84:21: note: (8) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:85:12: note: (9) assuming 'calloc(len + 1, 8)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:85:12: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:87:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:88:12: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:69:109: note: (13) inlined call to 'free_image_spec_schema_defs_map_string_object_function' from 'make_image_spec_schema_defs_map_string_object' <--[csmock-gcc-wrapper] In function 'free_image_spec_schema_defs_map_string_object_function', inlined from 'make_image_spec_schema_defs_map_string_object' at src/ocispec/image_spec_schema_defs.c:69:109: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:65:70: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:65:70: note: (15) calling 'free_image_spec_schema_defs_map_string_object' from 'make_image_spec_schema_defs_map_string_object' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c: In function 'free_image_spec_schema_defs_map_string_object': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:107:1: note: (16) entry to 'free_image_spec_schema_defs_map_string_object' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:109:8: note: (17) following 'false' branch (when 'ptr' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:111:12: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:111:8: note: (19) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:111:33: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:111:27: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:126:5: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_defs.c:126:5: note: (23) '' leaks here; was allocated at (8) <--[csmock-gcc-wrapper] make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/image_spec_schema_image_layout_schema.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/image_spec_schema_image_layout_schema.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/image_spec_schema_image_layout_schema.lo src/ocispec/image_spec_schema_image_layout_schema.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/image_spec_schema_image_layout_schema.lo -MD -MP -MF src/ocispec/.deps/image_spec_schema_image_layout_schema.Tpo -c src/ocispec/image_spec_schema_image_layout_schema.c -o src/ocispec/image_spec_schema_image_layout_schema.o make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:152: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:9, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:8: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c: In function 'image_spec_schema_image_layout_schema_parse_data': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: warning: leak of 'make_image_spec_schema_image_layout_schema(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:197:42: note: (1) entry to 'image_spec_schema_image_layout_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:203:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:206:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:211:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:217:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:217:7: note: (6) calling 'make_image_spec_schema_image_layout_schema' from 'image_spec_schema_image_layout_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:14:1: note: (7) entry to 'make_image_spec_schema_image_layout_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:21:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:21:11: note: (10) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:22:8: note: (11) assuming 'calloc(1, 16)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:22:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:26:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:27:12: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:31:16: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:36:12: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:36:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:43:13: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:217:7: note: (20) returning to 'image_spec_schema_image_layout_schema_parse_data' from 'make_image_spec_schema_image_layout_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (21) 'make_image_spec_schema_image_layout_schema(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' leaks here; was allocated at (10) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:43:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:197:42: note: (1) entry to 'image_spec_schema_image_layout_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:203:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:206:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:211:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:217:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:217:7: note: (6) calling 'make_image_spec_schema_image_layout_schema' from 'image_spec_schema_image_layout_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:14:1: note: (7) entry to 'make_image_spec_schema_image_layout_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:21:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:22:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:26:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:27:12: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:30:41: note: (14) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:31:16: note: (15) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:31:16: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:36:12: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:36:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:43:13: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:217:7: note: (20) returning to 'image_spec_schema_image_layout_schema_parse_data' from 'make_image_spec_schema_image_layout_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:43:8: note: (21) '' leaks here; was allocated at (14) <--[csmock-gcc-wrapper] make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/image_spec_schema_content_descriptor.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/image_spec_schema_content_descriptor.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/image_spec_schema_content_descriptor.lo src/ocispec/image_spec_schema_content_descriptor.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/image_spec_schema_content_descriptor.lo -MD -MP -MF src/ocispec/.deps/image_spec_schema_content_descriptor.Tpo -c src/ocispec/image_spec_schema_content_descriptor.c -o src/ocispec/image_spec_schema_content_descriptor.o /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:370: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:378: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:385: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:9, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:8: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c: In function 'image_spec_schema_content_descriptor_parse_data': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: warning: leak of 'make_image_spec_schema_content_descriptor(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:454:41: note: (1) entry to 'image_spec_schema_content_descriptor_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:460:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:463:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:468:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:474:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:474:7: note: (6) calling 'make_image_spec_schema_content_descriptor' from 'image_spec_schema_content_descriptor_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:14:1: note: (7) entry to 'make_image_spec_schema_content_descriptor' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:21:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:21:11: note: (10) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:22:8: note: (11) assuming 'calloc(1, 80)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:22:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:26:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:27:12: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:31:16: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:38:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:39:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:60:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:61:12: note: (20) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:63:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:65:16: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:72:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:99:12: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:110:24: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:111:12: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:122:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:123:12: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:138:12: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:138:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddmake[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' ir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:144:12: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:144:8: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:151:13: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:474:7: note: (34) returning to 'image_spec_schema_content_descriptor_parse_data' from 'make_image_spec_schema_content_descriptor' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (35) 'make_image_spec_schema_content_descriptor(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' leaks here; was allocated at (10) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:151:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:454:41: note: (1) entry to 'image_spec_schema_content_descriptor_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:460:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:463:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:468:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:474:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:474:7: note: (6) calling 'make_image_spec_schema_content_descriptor' from 'image_spec_schema_content_descriptor_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:14:1: note: (7) entry to 'make_image_spec_schema_content_descriptor' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:21:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:22:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:26:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:27:12: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:30:31: note: (14) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:31:16: note: (15) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:31:16: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:38:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:39:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:60:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:61:12: note: (20) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:63:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:65:16: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:72:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:99:12: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:110:24: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:111:12: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:122:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:123:12: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:138:12: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:138:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:144:12: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:144:8: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:151:13: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:474:7: note: (34) returning to 'image_spec_schema_content_descriptor_parse_data' from 'make_image_spec_schema_content_descriptor' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:151:8: note: (35) '' leaks here; was allocated at (14) <--[csmock-gcc-wrapper] make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/image_spec_schema_image_manifest_schema.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/image_spec_schema_image_manifest_schema.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/image_spec_schema_image_manifest_schema.lo src/ocispec/image_spec_schema_image_manifest_schema.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/image_spec_schema_image_manifest_schema.lo -MD -MP -MF src/ocispec/.deps/image_spec_schema_image_manifest_schema.Tpo -c src/ocispec/image_spec_schema_image_manifest_schema.c -o src/ocispec/image_spec_schema_image_manifest_schema.o make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:9, <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:349: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:355: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:361: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:367: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:374: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:8: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c: In function 'image_spec_schema_image_manifest_schema_parse_data': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: warning: leak of 'make_image_spec_schema_image_manifest_schema(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:79:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:428:44: note: (1) entry to 'image_spec_schema_image_manifest_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:434:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:437:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:442:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:448:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:448:7: note: (6) calling 'make_image_spec_schema_image_manifest_schema' from 'image_spec_schema_image_manifest_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:14:1: note: (7) entry to 'make_image_spec_schema_image_manifest_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:21:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:21:11: note: (10) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:22:8: note: (11) assuming 'calloc(1, 80)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:22:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:26:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:27:12: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:48:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:49:12: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:60:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:61:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:70:19: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:79:12: note: (20) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:82:20: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:86:16: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (23) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:88:27: note: (24) following 'false' branch (when 'i >= len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:100:24: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:101:12: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:116:12: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:116:8: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:122:12: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:122:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:129:13: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:448:7: note: (32) returning to 'image_spec_schema_image_manifest_schema_parse_data' from 'make_image_spec_schema_image_manifest_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (33) 'make_image_spec_schema_image_manifest_schema(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' leaks here; was allocated at (10) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:79:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c: In function 'image_spec_schema_image_manifest_schema_parse_file_stream': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: warning: leak of 'image_spec_schema_image_manifest_schema_parse_data(fread_file(stream, & filesize), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:79:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:408:1: note: (1) entry to 'image_spec_schema_image_manifest_schema_parse_file_stream' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:413:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:416:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:418:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:423:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:423:7: note: (6) calling 'image_spec_schema_image_manifest_schema_parse_data' from 'image_spec_schema_image_manifest_schema_parse_file_stream' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:428:44: note: (7) entry to 'image_spec_schema_image_manifest_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:434:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:437:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:442:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:448:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:448:7: note: (12) calling 'make_image_spec_schema_image_manifest_schema' from 'image_spec_schema_image_manifest_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:14:1: note: (13) entry to 'make_image_spec_schema_image_manifest_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:19:8: note: (14) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:21:11: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:21:11: note: (16) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:22:8: note: (17) assuming 'calloc(1, 80)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:22:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:26:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:27:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:48:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:49:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:60:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:61:12: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:70:19: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:79:12: note: (26) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:82:20: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:86:16: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (29) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:88:27: note: (30) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:90:38: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:92:20: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:88:35: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:88:27: note: (34) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:90:38: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:92:20: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:88:35: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:88:27: note: (38) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:90:38: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:92:20: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:88:35: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:88:27: note: (42) following 'false' branch (when 'i >= len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:100:24: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:101:12: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:116:12: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:116:8: note: (46) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:122:12: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:122:8: note: (48) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:129:13: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:448:7: note: (50) returning to 'image_spec_schema_image_manifest_schema_parse_data' from 'make_image_spec_schema_image_manifest_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:430:95: note: (51) inlined call to 'yajl_tree_free_function' from 'image_spec_schema_image_manifest_schema_parse_data' <--[csmock-gcc-wrapper] In function 'yajl_tree_free_function', inlined from 'image_spec_schema_image_manifest_schema_parse_data' at src/ocispec/image_spec_schema_image_manifest_schema.c:430:95: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:41:8: note: (52) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:426:1: note: in expansion of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:426:36: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c: In function 'image_spec_schema_image_manifest_schema_parse_file_stream': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:423:7: note: (54) returning to 'image_spec_schema_image_manifest_schema_parse_file_stream' from 'image_spec_schema_image_manifest_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (55) 'image_spec_schema_image_manifest_schema_parse_data(fread_file(stream, & filesize), ctx, err)' leaks here; was allocated at (16) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:79:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c: In function 'image_spec_schema_image_manifest_schema_parse_data': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:129:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:428:44: note: (1) entry to 'image_spec_schema_image_manifest_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:434:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:437:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:442:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:448:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:448:7: note: (6) calling 'make_image_spec_schema_image_manifest_schema' from 'image_spec_schema_image_manifest_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:14:1: note: (7) entry to 'make_image_spec_schema_image_manifest_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:21:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:22:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:26:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:27:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:48:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:49:12: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:60:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:61:12: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:70:19: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:79:12: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:82:20: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:85:27: note: (20) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:86:16: note: (21) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:86:16: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (23) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:88:27: note: (24) following 'false' branch (when 'i >= len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:100:24: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:101:12: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:116:12: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:116:8: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:122:12: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:122:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:129:13: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:448:7: note: (32) returning to 'image_spec_schema_image_manifest_schema_parse_data' from 'make_image_spec_schema_image_manifest_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:129:8: note: (33) '' leaks here; was allocated at (20) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c: In function 'make_image_spec_schema_image_manifest_schema': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:181:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:428:44: note: (1) entry to 'image_spec_schema_image_manifest_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:434:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:437:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:442:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:448:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:448:7: note: (6) calling 'make_image_spec_schema_image_manifest_schema' from 'image_spec_schema_image_manifest_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:14:1: note: (7) entry to 'make_image_spec_schema_image_manifest_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:21:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:22:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:26:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:27:12: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:151:49: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:30:19: note: in expansion of macro 'YAJL_IS_NUMBER' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:30:17: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:35:23: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:36:16: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:42:41: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:101:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:116:12: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:116:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:122:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:122:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:129:13: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:129:8: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:133:16: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:136:12: note: (26) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:138:20: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:138:20: note: (28) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:139:16: note: (29) assuming 'resi' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:139:16: note: (30) following 'false' branch (when 'resi' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:142:24: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:144:16: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:149:37: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:150:16: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:157:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:157:23: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:178:27: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:181:12: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (39) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:181:12: note: (40) 'resi' leaks here; was allocated at (28) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:181:12: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:428:44: note: (1) entry to 'image_spec_schema_image_manifest_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:434:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:437:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:442:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:448:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:448:7: note: (6) calling 'make_image_spec_schema_image_manifest_schema' from 'image_spec_schema_image_manifest_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:14:1: note: (7) entry to 'make_image_spec_schema_image_manifest_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:21:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:22:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:26:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:27:12: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:151:49: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:30:19: note: in expansion of macro 'YAJL_IS_NUMBER' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:30:17: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:35:23: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:36:16: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:42:41: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:101:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:116:12: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:116:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:122:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:122:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:129:13: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:129:8: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:133:16: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:136:12: note: (26) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:138:20: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:139:16: note: (28) following 'false' branch (when 'resi' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:142:24: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:143:35: note: (30) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:144:16: note: (31) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:144:16: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:149:37: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:150:16: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:157:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:157:23: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:178:27: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:181:12: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (39) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:181:12: note: (40) '' leaks here; was allocated at (30) <--[csmock-gcc-wrapper] make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/image_spec_schema_image_index_schema.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/image_spec_schema_image_index_schema.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/image_spec_schema_image_index_schema.lo src/ocispec/image_spec_schema_image_index_schema.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/image_spec_schema_image_index_schema.lo -MD -MP -MF src/ocispec/.deps/image_spec_schema_image_index_schema.Tpo -c src/ocispec/image_spec_schema_image_index_schema.c -o src/ocispec/image_spec_schema_image_index_schema.o /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:9, <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:305: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:311: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:317: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:324: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:603: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:611: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:618: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:954: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:960: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:966: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:973: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:8: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c: In function 'make_image_spec_schema_image_index_schema_manifests_element': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: warning: leak of 'make_image_spec_schema_image_index_schema_manifests_platform(get_val(tree, "platform", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:1027:41: note: (1) entry to 'image_spec_schema_image_index_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:1033:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:1036:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:1041:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:1047:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:1047:7: note: (6) calling 'make_image_spec_schema_image_index_schema' from 'image_spec_schema_image_index_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:643:1: note: (7) entry to 'make_image_spec_schema_image_index_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:648:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:650:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:651:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:655:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:656:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:677:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:678:12: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:689:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:690:12: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:699:20: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:705:12: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:708:20: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:712:16: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (21) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:714:27: note: (22) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:716:38: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:717:37: note: (24) calling 'make_image_spec_schema_image_index_schema_manifests_element' from 'make_image_spec_schema_image_index_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:346:1: note: (25) entry to 'make_image_spec_schema_image_index_schema_manifests_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:351:8: note: (26) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:353:11: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:354:8: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:358:24: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:359:12: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:370:24: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:371:12: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:392:24: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:393:12: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:404:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:428:21: note: (36) calling 'make_image_spec_schema_image_index_schema_manifests_platform' from 'make_image_spec_schema_image_index_schema_manifests_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:14:1: note: (37) entry to 'make_image_spec_schema_image_index_schema_manifests_platform' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:19:8: note: (38) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:21:11: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:21:11: note: (40) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:22:8: note: (41) assuming 'calloc(1, 56)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:22:8: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:26:24: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:27:12: note: (44) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:31:16: note: (46) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:38:24: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:39:12: note: (48) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:41:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:43:16: note: (50) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:50:24: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:51:12: note: (52) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:62:24: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:89:12: note: (54) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:98:12: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:98:8: note: (56) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:104:12: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:104:8: note: (58) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:111:13: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:428:21: note: (60) returning to 'make_image_spec_schema_image_index_schema_manifests_element' from 'make_image_spec_schema_image_index_schema_manifests_platform' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (61) 'make_image_spec_schema_image_index_schema_manifests_platform(get_val(tree, "platform", 3), ctx, err)' leaks here; was allocated at (40) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:111:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:1027:41: note: (1) entry to 'image_spec_schema_image_index_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:1033:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:1036:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:1041:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:1047:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:1047:7: note: (6) calling 'make_image_spec_schema_image_index_schema' from 'image_spec_schema_image_index_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:643:1: note: (7) entry to 'make_image_spec_schema_image_index_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:648:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:650:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:651:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:655:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:656:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:677:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:678:12: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:689:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:690:12: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:699:20: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:705:12: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:708:20: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:712:16: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (21) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:714:27: note: (22) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:716:38: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:717:37: note: (24) calling 'make_image_spec_schema_image_index_schema_manifests_element' from 'make_image_spec_schema_image_index_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:346:1: note: (25) entry to 'make_image_spec_schema_image_index_schema_manifests_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:351:8: note: (26) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:353:11: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:354:8: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:358:24: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:359:12: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:370:24: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:371:12: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:392:24: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:393:12: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:404:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:428:21: note: (36) calling 'make_image_spec_schema_image_index_schema_manifests_platform' from 'make_image_spec_schema_image_index_schema_manifests_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:14:1: note: (37) entry to 'make_image_spec_schema_image_index_schema_manifests_platform' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:19:8: note: (38) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:21:11: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:22:8: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:26:24: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:27:12: note: (42) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:30:33: note: (44) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:31:16: note: (45) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:31:16: note: (46) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:38:24: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:39:12: note: (48) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:41:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:43:16: note: (50) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:50:24: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:51:12: note: (52) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:62:24: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:89:12: note: (54) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:98:12: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:98:8: note: (56) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:104:12: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:104:8: note: (58) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:111:13: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:428:21: note: (60) returning to 'make_image_spec_schema_image_index_schema_manifests_element' from 'make_image_spec_schema_image_index_schema_manifests_platform' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:111:8: note: (61) '' leaks here; was allocated at (44) <--[csmock-gcc-wrapper] make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/runtime_spec_schema_config_solaris.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_config_solaris.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_config_solaris.lo src/ocispec/runtime_spec_schema_config_solaris.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_config_solaris.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_config_solaris.Tpo -c src/ocispec/runtime_spec_schema_config_solaris.c -o src/ocispec/runtime_spec_schema_config_solaris.o /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c: In function 'make_runtime_spec_schema_config_solaris': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:146: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:312: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:318: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:555: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:561: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:567: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:573: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:579: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:585: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:591: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:881: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:887: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:893: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:899: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:905: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:912: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:37:13: warning: leak of 'make_runtime_spec_schema_config_solaris_capped_cpu(get_val(tree, "cappedCPU", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:598:1: note: (1) entry to 'make_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:603:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:605:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:606:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:610:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:611:12: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:622:24: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:623:12: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:634:24: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:635:12: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:644:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:644:23: note: (12) calling 'make_runtime_spec_schema_config_solaris_capped_cpu' from 'make_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:14:1: note: (13) entry to 'make_runtime_spec_schema_config_solaris_capped_cpu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:19:8: note: (14) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:21:11: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:21:11: note: (16) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:22:8: note: (17) assuming 'calloc(1, 16)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:22:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:26:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:27:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:37:13: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:644:23: note: (22) returning to 'make_runtime_spec_schema_config_solaris' from 'make_runtime_spec_schema_config_solaris_capped_cpu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:37:13: note: (23) 'make_runtime_spec_schema_config_solaris_capped_cpu(get_val(tree, "cappedCPU", 3), ctx, err)' leaks here; was allocated at (16) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c: In function 'clone_runtime_spec_schema_config_solaris': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:142:12: warning: leak of 'clone_runtime_spec_schema_config_solaris_capped_cpu(*src.capped_cpu)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:870:1: note: (1) entry to 'clone_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:875:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:877:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:877:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:883:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:883:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:889:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:889:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:895:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:895:8: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:897:27: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:897:27: note: (12) calling 'clone_runtime_spec_schema_config_solaris_capped_cpu' from 'clone_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:135:1: note: (13) entry to 'clone_runtime_spec_schema_config_solaris_capped_cpu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:139:11: note: (14) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:140:8: note: (15) assuming 'calloc(1, 16)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:140:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:142:12: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:142:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (19) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:897:27: note: (20) returning to 'clone_runtime_spec_schema_config_solaris' from 'clone_runtime_spec_schema_config_solaris_capped_cpu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:142:12: note: (21) 'clone_runtime_spec_schema_config_solaris_capped_cpu(*src.capped_cpu)' leaks here; was allocated at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:145:12: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:870:1: note: (1) entry to 'clone_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:875:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:877:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:877:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:883:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:883:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:889:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:889:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:895:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:895:8: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:897:27: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:897:27: note: (12) calling 'clone_runtime_spec_schema_config_solaris_capped_cpu' from 'clone_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:135:1: note: (13) entry to 'clone_runtime_spec_schema_config_solaris_capped_cpu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:140:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:142:12: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:142:8: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:144:22: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:144:22: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:145:12: note: (19) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:145:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (21) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:897:27: note: (22) returning to 'clone_runtime_spec_schema_config_solaris' from 'clone_runtime_spec_schema_config_solaris_capped_cpu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:145:12: note: (23) '' leaks here; was allocated at (18) <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:9, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:8: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c: In function 'make_runtime_spec_schema_config_solaris': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: warning: leak of 'make_runtime_spec_schema_config_solaris_capped_memory(get_val(tree, "cappedMemory", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:168:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:598:1: note: (1) entry to 'make_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:603:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:605:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:606:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:610:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:611:12: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:622:24: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:623:12: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:634:24: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:635:12: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:644:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:36: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:33: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:647:26: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:647:26: note: (16) calling 'make_runtime_spec_schema_config_solaris_capped_memory' from 'make_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:153:1: note: (17) entry to 'make_runtime_spec_schema_config_solaris_capped_memory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:158:8: note: (18) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:160:11: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:160:11: note: (20) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:161:8: note: (21) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:161:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:165:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:166:12: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:168:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:170:16: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:177:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:178:12: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:188:13: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:647:26: note: (30) returning to 'make_runtime_spec_schema_config_solaris' from 'make_runtime_spec_schema_config_solaris_capped_memory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (31) 'make_runtime_spec_schema_config_solaris_capped_memory(get_val(tree, "cappedMemory", 3), ctx, err)' leaks here; was allocated at (20) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:168:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: warning: leak of 'make_runtime_spec_schema_config_solaris_capped_memory(get_val(tree, "cappedMemory", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:180:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:598:1: note: (1) entry to 'make_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:603:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:605:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:606:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:610:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:611:12: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:622:24: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:623:12: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:634:24: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:635:12: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:644:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:36: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:33: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:647:26: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:647:26: note: (16) calling 'make_runtime_spec_schema_config_solaris_capped_memory' from 'make_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:153:1: note: (17) entry to 'make_runtime_spec_schema_config_solaris_capped_memory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:158:8: note: (18) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:160:11: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:160:11: note: (20) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:161:8: note: (21) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:161:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:165:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:166:12: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:177:24: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:178:12: note: (26) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:180:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:182:16: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:188:13: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:647:26: note: (30) returning to 'make_runtime_spec_schema_config_solaris' from 'make_runtime_spec_schema_config_solaris_capped_memory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (31) 'make_runtime_spec_schema_config_solaris_capped_memory(get_val(tree, "cappedMemory", 3), ctx, err)' leaks here; was allocated at (20) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:180:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:188:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:598:1: note: (1) entry to 'make_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:603:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:605:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:606:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:610:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:611:12: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:622:24: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:623:12: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:634:24: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:635:12: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:644:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:36: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:33: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:647:26: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:647:26: note: (16) calling 'make_runtime_spec_schema_config_solaris_capped_memory' from 'make_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:153:1: note: (17) entry to 'make_runtime_spec_schema_config_solaris_capped_memory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:158:8: note: (18) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:160:11: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:161:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:165:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:166:12: note: (22) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:168:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:169:29: note: (24) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:170:16: note: (25) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:170:16: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:177:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:178:12: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:188:13: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:647:26: note: (30) returning to 'make_runtime_spec_schema_config_solaris' from 'make_runtime_spec_schema_config_solaris_capped_memory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:188:8: note: (31) '' leaks here; was allocated at (24) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:188:13: warning: leak of 'make_runtime_spec_schema_config_solaris_capped_memory(get_val(tree, "cappedMemory", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:598:1: note: (1) entry to 'make_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:603:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:605:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:606:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:610:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:611:12: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:622:24: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:623:12: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:634:24: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:635:12: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:644:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:36: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:33: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:647:26: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:647:26: note: (16) calling 'make_runtime_spec_schema_config_solaris_capped_memory' from 'make_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:153:1: note: (17) entry to 'make_runtime_spec_schema_config_solaris_capped_memory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:158:8: note: (18) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:160:11: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:160:11: note: (20) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:161:8: note: (21) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:161:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:165:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:166:12: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:177:24: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:178:12: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:188:13: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:647:26: note: (28) returning to 'make_runtime_spec_schema_config_solaris' from 'make_runtime_spec_schema_config_solaris_capped_memory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:188:13: note: (29) 'make_runtime_spec_schema_config_solaris_capped_memory(get_val(tree, "cappedMemory", 3), ctx, err)' leaks here; was allocated at (20) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c: In function 'clone_runtime_spec_schema_config_solaris': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:308:12: warning: leak of 'clone_runtime_spec_schema_config_solaris_capped_memory(*src.capped_memory)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:870:1: note: (1) entry to 'clone_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:875:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:877:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:877:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:883:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:883:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:889:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:889:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:895:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:895:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:901:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:901:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:903:30: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:903:30: note: (14) calling 'clone_runtime_spec_schema_config_solaris_capped_memory' from 'clone_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:301:1: note: (15) entry to 'clone_runtime_spec_schema_config_solaris_capped_memory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:305:11: note: (16) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:306:8: note: (17) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:306:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:308:12: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:308:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:314:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:314:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (23) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:903:30: note: (24) returning to 'clone_runtime_spec_schema_config_solaris' from 'clone_runtime_spec_schema_config_solaris_capped_memory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:308:12: note: (25) 'clone_runtime_spec_schema_config_solaris_capped_memory(*src.capped_memory)' leaks here; was allocated at (16) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:314:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:870:1: note: (1) entry to 'clone_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:875:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:877:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:877:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:883:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:883:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:889:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:889:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:895:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:895:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:901:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:901:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:903:30: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:903:30: note: (14) calling 'clone_runtime_spec_schema_config_solaris_capped_memory' from 'clone_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:301:1: note: (15) entry to 'clone_runtime_spec_schema_config_solaris_capped_memory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:306:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:308:12: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:308:8: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:310:25: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:310:25: note: (20) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:311:12: note: (21) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:311:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:314:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:314:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (25) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:903:30: note: (26) returning to 'clone_runtime_spec_schema_config_solaris' from 'clone_runtime_spec_schema_config_solaris_capped_memory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:314:8: note: (27) '' leaks here; was allocated at (20) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:317:12: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:870:1: note: (1) entry to 'clone_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:875:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:877:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:877:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:883:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:883:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:889:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:889:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:895:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:895:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:901:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:901:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:903:30: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:903:30: note: (14) calling 'clone_runtime_spec_schema_config_solaris_capped_memory' from 'clone_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:301:1: note: (15) entry to 'clone_runtime_spec_schema_config_solaris_capped_memory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:306:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:308:12: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:308:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:314:12: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:314:8: note: (20) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:316:21: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:316:21: note: (22) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:317:12: note: (23) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:317:12: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (25) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:903:30: note: (26) returning to 'clone_runtime_spec_schema_config_solaris' from 'clone_runtime_spec_schema_config_solaris_capped_memory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:317:12: note: (27) '' leaks here; was allocated at (22) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c: In function 'make_runtime_spec_schema_config_solaris': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: warning: leak of 'make_runtime_spec_schema_config_solaris_anet_element(val, ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:340:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:598:1: note: (1) entry to 'make_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:603:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:605:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:606:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:610:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:611:12: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:622:24: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:623:12: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:634:24: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:635:12: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:644:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:36: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:33: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:647:26: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:648:8: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:648:39: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:648:36: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:652:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:653:12: note: (20) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:656:20: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:660:16: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (23) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:662:27: note: (24) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:664:38: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:665:32: note: (26) calling 'make_runtime_spec_schema_config_solaris_anet_element' from 'make_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:325:1: note: (27) entry to 'make_runtime_spec_schema_config_solaris_anet_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:330:8: note: (28) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:332:11: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:332:11: note: (30) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:333:8: note: (31) assuming 'calloc(1, 56)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:333:8: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:337:24: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:338:12: note: (34) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/cmake[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' run-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:340:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:342:16: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:349:24: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:350:12: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:361:24: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:362:12: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:373:24: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:374:12: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:385:24: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:386:12: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:397:24: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:398:12: note: (46) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:409:24: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:410:12: note: (48) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (49) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:665:32: note: (50) returning to 'make_runtime_spec_schema_config_solaris' from 'make_runtime_spec_schema_config_solaris_anet_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (51) 'make_runtime_spec_schema_config_solaris_anet_element(val, ctx, err)' leaks here; was allocated at (30) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:340:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: warning: leak of 'make_runtime_spec_schema_config_solaris_anet_element(val, ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:352:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:598:1: note: (1) entry to 'make_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:603:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:605:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:606:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:610:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:611:12: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:622:24: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:623:12: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:634:24: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:635:12: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:644:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:36: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:33: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:647:26: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:648:8: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:648:39: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:648:36: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:652:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:653:12: note: (20) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:656:20: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:660:16: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (23) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:662:27: note: (24) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:664:38: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:665:32: note: (26) calling 'make_runtime_spec_schema_config_solaris_anet_element' from 'make_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:325:1: note: (27) entry to 'make_runtime_spec_schema_config_solaris_anet_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:330:8: note: (28) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:332:11: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:332:11: note: (30) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:333:8: note: (31) assuming 'calloc(1, 56)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:333:8: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:337:24: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:338:12: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:349:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:350:12: note: (36) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:352:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:354:16: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:361:24: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:362:12: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:373:24: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:374:12: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:385:24: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:386:12: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:397:24: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:398:12: note: (46) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:409:24: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:410:12: note: (48) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (49) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:665:32: note: (50) returning to 'make_runtime_spec_schema_config_solaris' from 'make_runtime_spec_schema_config_solaris_anet_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (51) 'make_runtime_spec_schema_config_solaris_anet_element(val, ctx, err)' leaks here; was allocated at (30) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:352:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: warning: leak of 'make_runtime_spec_schema_config_solaris_anet_element(val, ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:364:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:598:1: note: (1) entry to 'make_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:603:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:605:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:606:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:610:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:611:12: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:622:24: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:623:12: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:634:24: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:635:12: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:644:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:36: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:33: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:647:26: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:648:8: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:648:39: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:648:36: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:652:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:653:12: note: (20) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:656:20: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:660:16: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (23) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:662:27: note: (24) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:664:38: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:665:32: note: (26) calling 'make_runtime_spec_schema_config_solaris_anet_element' from 'make_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:325:1: note: (27) entry to 'make_runtime_spec_schema_config_solaris_anet_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:330:8: note: (28) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:332:11: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:332:11: note: (30) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:333:8: note: (31) assuming 'calloc(1, 56)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:333:8: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:337:24: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:338:12: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:349:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:350:12: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:361:24: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:362:12: note: (38) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:364:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:366:16: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:373:24: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:374:12: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:385:24: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:386:12: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:397:24: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:398:12: note: (46) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:409:24: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:410:12: note: (48) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (49) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:665:32: note: (50) returning to 'make_runtime_spec_schema_config_solaris' from 'make_runtime_spec_schema_config_solaris_anet_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (51) 'make_runtime_spec_schema_config_solaris_anet_element(val, ctx, err)' leaks here; was allocated at (30) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:364:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:410:12: warning: leak of 'make_runtime_spec_schema_config_solaris_anet_element(val, ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:598:1: note: (1) entry to 'make_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:603:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:605:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:606:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:610:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:611:12: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:622:24: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:623:12: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:634:24: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:635:12: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:644:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:36: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:33: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:647:26: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:648:8: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:648:39: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:648:36: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:652:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:653:12: note: (20) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:656:20: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:660:16: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (23) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:662:27: note: (24) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:664:38: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:665:32: note: (26) calling 'make_runtime_spec_schema_config_solaris_anet_element' from 'make_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:325:1: note: (27) entry to 'make_runtime_spec_schema_config_solaris_anet_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:330:8: note: (28) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:332:11: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:332:11: note: (30) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:333:8: note: (31) assuming 'calloc(1, 56)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:333:8: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:337:24: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:338:12: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:349:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:350:12: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:361:24: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:362:12: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:373:24: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:374:12: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:385:24: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:386:12: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:397:24: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:398:12: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:409:24: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:410:12: note: (46) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (47) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:665:32: note: (48) returning to 'make_runtime_spec_schema_config_solaris' from 'make_runtime_spec_schema_config_solaris_anet_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:410:12: note: (49) 'make_runtime_spec_schema_config_solaris_anet_element(val, ctx, err)' leaks here; was allocated at (30) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:410:12: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:598:1: note: (1) entry to 'make_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:603:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:605:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:606:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:610:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:611:12: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:622:24: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:623:12: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:634:24: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:635:12: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:644:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:36: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:645:33: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:647:26: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:648:8: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:648:39: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:648:36: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:652:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:653:12: note: (20) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:656:20: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:660:16: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (23) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:662:27: note: (24) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:664:38: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:665:32: note: (26) calling 'make_runtime_spec_schema_config_solaris_anet_element' from 'make_runtime_spec_schema_config_solaris' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:325:1: note: (27) entry to 'make_runtime_spec_schema_config_solaris_anet_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:330:8: note: (28) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:332:11: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:333:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:337:24: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:338:12: note: (32) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:340:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:341:29: note: (34) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:342:16: note: (35) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:342:16: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:349:24: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:350:12: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:361:24: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:362:12: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:373:24: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:374:12: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:385:24: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:386:12: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:397:24: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:398:12: note: (46) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:409:24: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:410:12: note: (48) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (49) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:665:32: note: (50) returning to 'make_runtime_spec_schema_config_solaris' from 'make_runtime_spec_schema_config_solaris_anet_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:410:12: note: (51) '' leaks here; was allocated at (34) <--[csmock-gcc-wrapper] make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/runtime_spec_schema_defs_zos.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_defs_zos.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_defs_zos.lo src/ocispec/runtime_spec_schema_defs_zos.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_defs_zos.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_defs_zos.Tpo -c src/ocispec/runtime_spec_schema_defs_zos.c -o src/ocispec/runtime_spec_schema_defs_zos.o make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/image_spec_schema_config_schema.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/image_spec_schema_config_schema.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/image_spec_schema_config_schema.lo src/ocispec/image_spec_schema_config_schema.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/image_spec_schema_config_schema.lo -MD -MP -MF src/ocispec/.deps/image_spec_schema_config_schema.Tpo -c src/ocispec/image_spec_schema_config_schema.c -o src/ocispec/image_spec_schema_config_schema.o /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_zos.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_zos.c:360: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_zos.c:366: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:491: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:497: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:501: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:504: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:818: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1024: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1030: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1036: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1042: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1499: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1505: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1511: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1517: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1523: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1529: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1536: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:9, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:8: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c: In function 'make_image_spec_schema_config_schema': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: warning: leak of 'make_image_spec_schema_config_schema_config(get_val(tree, "config", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:42:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1615:36: note: (1) entry to 'image_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1621:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1624:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1629:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1635:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1635:7: note: (6) calling 'make_image_spec_schema_config_schema' from 'image_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1051:1: note: (7) entry to 'make_image_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1056:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1058:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1059:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1063:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1064:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1075:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1076:12: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1087:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1088:12: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1099:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1100:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1111:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1112:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1123:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1124:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1135:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1159:19: note: (24) calling 'make_image_spec_schema_config_schema_config' from 'make_image_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:14:1: note: (25) entry to 'make_image_spec_schema_config_schema_config' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:19:8: note: (26) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:21:11: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:21:11: note: (28) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:22:8: note: (29) assuming 'calloc(1, 120)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:22:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:26:24: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:27:12: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:36:26: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:42:12: note: (34) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:45:20: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:49:16: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (37) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:123:12: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:134:24: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:135:12: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:152:24: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:153:12: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:164:24: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:165:12: note: (44) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:167:33: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1159:19: note: (46) returning to 'make_image_spec_schema_config_schema' from 'make_image_spec_schema_config_schema_config' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (47) 'make_image_spec_schema_config_schema_config(get_val(tree, "config", 3), ctx, err)' leaks here; was allocated at (28) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:42:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: warning: leak of 'make_image_spec_schema_config_schema_config(get_val(tree, "config", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:68:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1615:36: note: (1) entry to 'image_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1621:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1624:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1629:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1635:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1635:7: note: (6) calling 'make_image_spec_schema_config_schema' from 'image_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1051:1: note: (7) entry to 'make_image_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1056:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1058:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1059:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1063:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1064:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1075:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1076:12: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1087:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1088:12: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1099:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1100:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1111:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1112:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1123:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1124:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1135:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1159:19: note: (24) calling 'make_image_spec_schema_config_schema_config' from 'make_image_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:14:1: note: (25) entry to 'make_image_spec_schema_config_schema_config' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:19:8: note: (26) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:21:11: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:21:11: note: (28) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:22:8: note: (29) assuming 'calloc(1, 120)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:22:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:26:24: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:27:12: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:36:26: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:68:12: note: (34) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:71:20: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:75:16: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (37) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:123:12: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:134:24: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:135:12: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:152:24: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:153:12: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:164:24: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:165:12: note: (44) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:167:33: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1159:19: note: (46) returning to 'make_image_spec_schema_config_schema' from 'make_image_spec_schema_config_schema_config' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (47) 'make_image_spec_schema_config_schema_config(get_val(tree, "config", 3), ctx, err)' leaks here; was allocated at (28) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:68:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: warning: leak of 'make_image_spec_schema_config_schema_config(get_val(tree, "config", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:167:33: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1615:36: note: (1) entry to 'image_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1621:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1624:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1629:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1635:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1635:7: note: (6) calling 'make_image_spec_schema_config_schema' from 'image_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1051:1: note: (7) entry to 'make_image_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1056:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1058:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1059:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1063:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1064:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1075:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1076:12: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1087:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1088:12: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1099:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1100:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1111:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1112:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1123:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1124:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1135:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1159:19: note: (24) calling 'make_image_spec_schema_config_schema_config' from 'make_image_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:14:1: note: (25) entry to 'make_image_spec_schema_config_schema_config' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:19:8: note: (26) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:21:11: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:21:11: note: (28) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:22:8: note: (29) assuming 'calloc(1, 120)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:22:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:26:24: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:27:12: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:36:26: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:123:12: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:134:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:135:12: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:152:24: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:153:12: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:164:24: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:165:12: note: (40) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:167:33: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1159:19: note: (42) returning to 'make_image_spec_schema_config_schema' from 'make_image_spec_schema_config_schema_config' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (43) 'make_image_spec_schema_config_schema_config(get_val(tree, "config", 3), ctx, err)' leaks here; was allocated at (28) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:167:33: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:182:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1615:36: note: (1) entry to 'image_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1621:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1624:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1629:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1635:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1635:7: note: (6) calling 'make_image_spec_schema_config_schema' from 'image_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1051:1: note: (7) entry to 'make_image_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1056:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1058:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1059:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1063:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1064:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1075:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1076:12: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1087:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1088:12: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1099:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1100:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1111:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1112:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1123:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1124:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1135:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1159:19: note: (24) calling 'make_image_spec_schema_config_schema_config' from 'make_image_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:14:1: note: (25) entry to 'make_image_spec_schema_config_schema_config' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:19:8: note: (26) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:21:11: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:22:8: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:26:24: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:27:12: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:36:26: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:42:12: note: (32) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:45:20: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:48:24: note: (34) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:49:16: note: (35) assuming 'calloc(len + 1, 8)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:49:16: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (37) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:123:12: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:134:24: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:135:12: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:152:24: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:153:12: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:164:24: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:165:12: note: (44) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:167:33: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1159:19: note: (46) returning to 'make_image_spec_schema_config_schema' from 'make_image_spec_schema_config_schema_config' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:182:8: note: (47) '' leaks here; was allocated at (34) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: warning: leak of 'make_image_spec_schema_config_schema_history_element(val, ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:855:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1615:36: note: (1) entry to 'image_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1621:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1624:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1629:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1635:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1635:7: note: (6) calling 'make_image_spec_schema_config_schema' from 'image_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1051:1: note: (7) entry to 'make_image_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1056:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1058:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1059:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1063:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1064:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1075:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1076:12: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1087:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1088:12: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1099:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1100:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1111:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1112:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1123:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1124:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1135:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1160:8: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1160:32: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1160:29: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1162:19: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1163:8: note: (28) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1163:32: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1163:29: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1167:24: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1168:12: note: (32) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1171:20: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1175:16: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (35) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1177:27: note: (36) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1179:38: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1180:35: note: (38) calling 'make_image_spec_schema_config_schema_history_element' from 'make_image_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:840:1: note: (39) entry to 'make_image_spec_schema_config_schema_history_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:845:8: note: (40) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:847:11: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:847:11: note: (42) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:848:8: note: (43) assuming 'calloc(1, 40)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:848:8: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:852:24: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:853:12: note: (46) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:855:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:857:16: note: (48) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:864:24: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:865:12: note: (50) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:876:24: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:877:12: note: (52) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:888:24: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:889:12: note: (54) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:900:24: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:901:12: note: (56) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:903:32: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1180:35: note: (58) returning to 'make_image_spec_schema_config_schema' from 'make_image_spec_schema_config_schema_history_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (59) 'make_image_spec_schema_config_schema_history_element(val, ctx, err)' leaks here; was allocated at (42) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:855:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: warning: leak of 'make_image_spec_schema_config_schema_history_element(val, ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:867:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1615:36: note: (1) entry to 'image_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1621:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1624:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1629:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1635:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1635:7: note: (6) calling 'make_image_spec_schema_config_schema' from 'image_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1051:1: note: (7) entry to 'make_image_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1056:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1058:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1059:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1063:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1064:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1075:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1076:12: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1087:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1088:12: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1099:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1100:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1111:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1112:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1123:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1124:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1135:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1160:8: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1160:32: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1160:29: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1162:19: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1163:8: note: (28) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1163:32: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1163:29: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1167:24: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1168:12: note: (32) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1171:20: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1175:16: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (35) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1177:27: note: (36) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1179:38: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1180:35: note: (38) calling 'make_image_spec_schema_config_schema_history_element' from 'make_image_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:840:1: note: (39) entry to 'make_image_spec_schema_config_schema_history_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:845:8: note: (40) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:847:11: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:847:11: note: (42) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:848:8: note: (43) assuming 'calloc(1, 40)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:848:8: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:852:24: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:853:12: note: (46) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:864:24: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:865:12: note: (48) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:867:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:869:16: note: (50) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:876:24: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:877:12: note: (52) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:888:24: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:889:12: note: (54) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:900:24: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:901:12: note: (56) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:903:32: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1180:35: note: (58) returning to 'make_image_spec_schema_config_schema' from 'make_image_spec_schema_config_schema_history_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (59) 'make_image_spec_schema_config_schema_history_element(val, ctx, err)' leaks here; was allocated at (42) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:867:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: warning: leak of 'make_image_spec_schema_config_schema_history_element(val, ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:879:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1615:36: note: (1) entry to 'image_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1621:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1624:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1629:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1635:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1635:7: note: (6) calling 'make_image_spec_schema_config_schema' from 'image_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddirmake[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/runtime_spec_schema_config_vm.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_config_vm.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_config_vm.lo src/ocispec/runtime_spec_schema_config_vm.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_config_vm.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_config_vm.Tpo -c src/ocispec/runtime_spec_schema_config_vm.c -o src/ocispec/runtime_spec_schema_config_vm.o /build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1051:1: note: (7) entry to 'make_image_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1056:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1058:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1059:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1063:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1064:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1075:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1076:12: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1087:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1088:12: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1099:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1100:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1111:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1112:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1123:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1124:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1135:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1160:8: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1160:32: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1160:29: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1162:19: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1163:8: note: (28) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1163:32: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1163:29: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1167:24: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1168:12: note: (32) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1171:20: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1175:16: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (35) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1177:27: note: (36) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1179:38: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1180:35: note: (38) calling 'make_image_spec_schema_config_schema_history_element' from 'make_image_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:840:1: note: (39) entry to 'make_image_spec_schema_config_schema_history_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:845:8: note: (40) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:847:11: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:847:11: note: (42) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:848:8: note: (43) assuming 'calloc(1, 40)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:848:8: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:852:24: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:853:12: note: (46) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:864:24: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:865:12: note: (48) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:876:24: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:877:12: note: (50) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:879:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:881:16: note: (52) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:888:24: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:889:12: note: (54) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:900:24: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:901:12: note: (56) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:903:32: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1180:35: note: (58) returning to 'make_image_spec_schema_config_schema' from 'make_image_spec_schema_config_schema_history_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (59) 'make_image_spec_schema_config_schema_history_element(val, ctx, err)' leaks here; was allocated at (42) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:879:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: warning: leak of 'make_image_spec_schema_config_schema_history_element(val, ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:903:32: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1615:36: note: (1) entry to 'image_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1621:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1624:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1629:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1635:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1635:7: note: (6) calling 'make_image_spec_schema_config_schema' from 'image_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1051:1: note: (7) entry to 'make_image_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1056:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1058:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1059:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1063:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1064:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1075:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1076:12: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1087:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1088:12: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1099:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1100:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1111:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1112:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1123:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1124:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1135:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1160:8: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1160:32: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1160:29: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1162:19: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1163:8: note: (28) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1163:32: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1163:29: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1167:24: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1168:12: note: (32) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1171:20: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1175:16: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (35) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1177:27: note: (36) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1179:38: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1180:35: note: (38) calling 'make_image_spec_schema_config_schema_history_element' from 'make_image_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:840:1: note: (39) entry to 'make_image_spec_schema_config_schema_history_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:845:8: note: (40) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:847:11: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:847:11: note: (42) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:848:8: note: (43) assuming 'calloc(1, 40)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:848:8: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:852:24: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:853:12: note: (46) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:864:24: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:865:12: note: (48) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:876:24: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:877:12: note: (50) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:888:24: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:889:12: note: (52) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:900:24: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:901:12: note: (54) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:903:32: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1180:35: note: (56) returning to 'make_image_spec_schema_config_schema' from 'make_image_spec_schema_config_schema_history_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (57) 'make_image_spec_schema_config_schema_history_element(val, ctx, err)' leaks here; was allocated at (42) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:903:32: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:904:38: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1615:36: note: (1) entry to 'image_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1621:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1624:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1629:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1635:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1635:7: note: (6) calling 'make_image_spec_schema_config_schema' from 'image_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1051:1: note: (7) entry to 'make_image_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1056:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1058:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1059:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1063:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1064:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1075:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1076:12: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1087:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1088:12: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1099:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1100:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1111:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1112:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1123:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1124:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1135:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1160:8: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1160:32: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1160:29: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1162:19: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1163:8: note: (28) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1163:32: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1163:29: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1167:24: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1168:12: note: (32) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1171:20: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1175:16: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (35) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1177:27: note: (36) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1179:38: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1180:35: note: (38) calling 'make_image_spec_schema_config_schema_history_element' from 'make_image_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:840:1: note: (39) entry to 'make_image_spec_schema_config_schema_history_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:845:8: note: (40) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:847:11: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:848:8: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:852:24: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:853:12: note: (44) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:855:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:856:28: note: (46) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:857:16: note: (47) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:857:16: note: (48) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:864:24: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:865:12: note: (50) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:876:24: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:877:12: note: (52) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:888:24: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:889:12: note: (54) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:900:24: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:901:12: note: (56) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:903:32: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:1180:35: note: (58) returning to 'make_image_spec_schema_config_schema' from 'make_image_spec_schema_config_schema_history_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_spec_schema_config_schema.c:904:38: note: (59) '' leaks here; was allocated at (46) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:218: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:225: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:472: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:479: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:672: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:678: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:697: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:700: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:703: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:708: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:722: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:729: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:735: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:850: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:856: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:862: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:9, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:8: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c: In function 'make_runtime_spec_schema_config_vm': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: warning: leak of 'make_runtime_spec_schema_config_vm_hypervisor(get_val(tree, "hypervisor", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:685:1: note: (1) entry to 'make_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:690:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:692:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:693:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:695:23: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:695:23: note: (6) calling 'make_runtime_spec_schema_config_vm_hypervisor' from 'make_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:14:1: note: (7) entry to 'make_runtime_spec_schema_config_vm_hypervisor' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:21:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:21:11: note: (10) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:22:8: note: (11) assuming 'calloc(1, 32)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:22:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:26:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:27:12: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:31:16: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:38:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:62:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:69:13: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:695:23: note: (20) returning to 'make_runtime_spec_schema_config_vm' from 'make_runtime_spec_schema_config_vm_hypervisor' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (21) 'make_runtime_spec_schema_config_vm_hypervisor(get_val(tree, "hypervisor", 3), ctx, err)' leaks here; was allocated at (10) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:69:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:685:1: note: (1) entry to 'make_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:690:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:692:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:693:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:695:23: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:695:23: note: (6) calling 'make_runtime_spec_schema_config_vm_hypervisor' from 'make_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:14:1: note: (7) entry to 'make_runtime_spec_schema_config_vm_hypervisor' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:21:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:22:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:26:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:27:12: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:30:25: note: (14) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:31:16: note: (15) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:31:16: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:38:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:62:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:69:13: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:695:23: note: (20) returning to 'make_runtime_spec_schema_config_vm' from 'make_runtime_spec_schema_config_vm_hypervisor' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:69:8: note: (21) '' leaks here; was allocated at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c: In function 'clone_runtime_spec_schema_config_vm': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:214:12: warning: leak of 'clone_runtime_spec_schema_config_vm_hypervisor(*src.hypervisor)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:839:1: note: (1) entry to 'clone_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:844:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:846:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:846:8: note: (4) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:848:27: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:848:27: note: (6) calling 'clone_runtime_spec_schema_config_vm_hypervisor' from 'clone_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:207:1: note: (7) entry to 'clone_runtime_spec_schema_config_vm_hypervisor' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:211:11: note: (8) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:212:8: note: (9) assuming 'calloc(1, 32)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:212:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:214:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:214:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:220:12: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:220:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (15) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:848:27: note: (16) returning to 'clone_runtime_spec_schema_config_vm' from 'clone_runtime_spec_schema_config_vm_hypervisor' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:214:12: note: (17) 'clone_runtime_spec_schema_config_vm_hypervisor(*src.hypervisor)' leaks here; was allocated at (8) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:220:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:839:1: note: (1) entry to 'clone_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:844:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:846:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:846:8: note: (4) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:848:27: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:848:27: note: (6) calling 'clone_runtime_spec_schema_config_vm_hypervisor' from 'clone_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:207:1: note: (7) entry to 'clone_runtime_spec_schema_config_vm_hypervisor' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:212:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:214:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:214:8: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:216:21: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:216:21: note: (12) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:217:12: note: (13) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:217:12: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:220:12: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:220:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (17) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:848:27: note: (18) returning to 'clone_runtime_spec_schema_config_vm' from 'clone_runtime_spec_schema_config_vm_hypervisor' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:220:8: note: (19) '' leaks here; was allocated at (12) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:226:30: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:839:1: note: (1) entry to 'clone_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:844:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:846:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:846:8: note: (4) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:848:27: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:848:27: note: (6) calling 'clone_runtime_spec_schema_config_vm_hypervisor' from 'clone_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:207:1: note: (7) entry to 'clone_runtime_spec_schema_config_vm_hypervisor' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:212:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:214:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:214:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:220:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:220:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:222:34: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:223:27: note: (14) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:224:12: note: (15) assuming 'calloc(*src.parameters_len + 1, 8)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:224:12: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (17) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:848:27: note: (18) returning to 'clone_runtime_spec_schema_config_vm' from 'clone_runtime_spec_schema_config_vm_hypervisor' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:226:30: note: (19) '' leaks here; was allocated at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c: In function 'make_runtime_spec_schema_config_vm': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: warning: leak of 'make_runtime_spec_schema_config_vm_kernel(get_val(tree, "kernel", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:256:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:685:1: note: (1) entry to 'make_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:690:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:692:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:693:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:695:23: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:696:8: note: (6) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:696:36: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:696:33: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:698:19: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:698:19: note: (10) calling 'make_runtime_spec_schema_config_vm_kernel' from 'make_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:241:1: note: (11) entry to 'make_runtime_spec_schema_config_vm_kernel' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:246:8: note: (12) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:248:11: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:248:11: note: (14) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:249:8: note: (15) assuming 'calloc(1, 40)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:249:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:253:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:254:12: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:256:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:258:16: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:265:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:292:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:301:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:301:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:308:13: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:698:19: note: (26) returning to 'make_runtime_spec_schema_config_vm' from 'make_runtime_spec_schema_config_vm_kernel' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (27) 'make_runtime_spec_schema_config_vm_kernel(get_val(tree, "kernel", 3), ctx, err)' leaks here; was allocated at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:256:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:308:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:685:1: note: (1) entry to 'make_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:690:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:692:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:693:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:695:23: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:696:8: note: (6) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:696:36: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:696:33: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:698:19: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:698:19: note: (10) calling 'make_runtime_spec_schema_config_vm_kernel' from 'make_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:241:1: note: (11) entry to 'make_runtime_spec_schema_config_vm_kernel' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:246:8: note: (12) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:248:11: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:249:8: note: (1make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/runtime_spec_schema_config_linux.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_config_linux.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_config_linux.lo src/ocispec/runtime_spec_schema_config_linux.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_config_linux.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_config_linux.Tpo -c src/ocispec/runtime_spec_schema_config_linux.c -o src/ocispec/runtime_spec_schema_config_linux.o 4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:253:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:254:12: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:256:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:257:25: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:258:16: note: (19) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:258:16: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:265:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:292:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:301:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:301:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:308:13: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:698:19: note: (26) returning to 'make_runtime_spec_schema_config_vm' from 'make_runtime_spec_schema_config_vm_kernel' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:308:8: note: (27) '' leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c: In function 'clone_runtime_spec_schema_config_vm': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:468:12: warning: leak of 'clone_runtime_spec_schema_config_vm_kernel(*src.kernel)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:839:1: note: (1) entry to 'clone_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:844:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:846:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:846:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:852:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:852:8: note: (6) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:854:23: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:854:23: note: (8) calling 'clone_runtime_spec_schema_config_vm_kernel' from 'clone_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:461:1: note: (9) entry to 'clone_runtime_spec_schema_config_vm_kernel' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:465:11: note: (10) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:466:8: note: (11) assuming 'calloc(1, 40)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:466:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:468:12: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:468:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:474:12: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:474:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:490:12: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:490:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (19) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:854:23: note: (20) returning to 'clone_runtime_spec_schema_config_vm' from 'clone_runtime_spec_schema_config_vm_kernel' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:468:12: note: (21) 'clone_runtime_spec_schema_config_vm_kernel(*src.kernel)' leaks here; was allocated at (10) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:490:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:839:1: note: (1) entry to 'clone_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:844:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:846:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:846:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:852:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:852:8: note: (6) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:854:23: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:854:23: note: (8) calling 'clone_runtime_spec_schema_config_vm_kernel' from 'clone_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:461:1: note: (9) entry to 'clone_runtime_spec_schema_config_vm_kernel' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:466:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:468:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:468:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:470:21: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:470:21: note: (14) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:471:12: note: (15) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:471:12: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:474:12: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:474:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:490:12: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:490:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (21) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:854:23: note: (22) returning to 'clone_runtime_spec_schema_config_vm' from 'clone_runtime_spec_schema_config_vm_kernel' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:490:8: note: (23) '' leaks here; was allocated at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:668:12: warning: leak of 'clone_runtime_spec_schema_config_vm_image(*src.image)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:839:1: note: (1) entry to 'clone_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:844:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:846:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:846:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:852:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:852:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:858:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:858:8: note: (8) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:860:22: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:860:22: note: (10) calling 'clone_runtime_spec_schema_config_vm_image' from 'clone_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:661:1: note: (11) entry to 'clone_runtime_spec_schema_config_vm_image' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:665:11: note: (12) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:666:8: note: (13) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:666:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:668:12: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:668:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:674:12: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:674:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (19) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:860:22: note: (20) returning to 'clone_runtime_spec_schema_config_vm' from 'clone_runtime_spec_schema_config_vm_image' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:668:12: note: (21) 'clone_runtime_spec_schema_config_vm_image(*src.image)' leaks here; was allocated at (12) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:674:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:839:1: note: (1) entry to 'clone_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:844:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:846:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:846:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:852:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:852:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:858:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:858:8: note: (8) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:860:22: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:860:22: note: (10) calling 'clone_runtime_spec_schema_config_vm_image' from 'clone_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:661:1: note: (11) entry to 'clone_runtime_spec_schema_config_vm_image' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:666:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:668:12: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:668:8: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:670:21: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:670:21: note: (16) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:671:12: note: (17) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:671:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:674:12: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:674:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (21) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:860:22: note: (22) returning to 'clone_runtime_spec_schema_config_vm' from 'clone_runtime_spec_schema_config_vm_image' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:674:8: note: (23) '' leaks here; was allocated at (16) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:677:12: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:839:1: note: (1) entry to 'clone_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:844:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:846:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:846:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:852:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:852:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:858:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:858:8: note: (8) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:860:22: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:860:22: note: (10) calling 'clone_runtime_spec_schema_config_vm_image' from 'clone_runtime_spec_schema_config_vm' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:661:1: note: (11) entry to 'clone_runtime_spec_schema_config_vm_image' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:666:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:668:12: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:668:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:674:12: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:674:8: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:676:23: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:676:23: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:677:12: note: (19) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:677:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (21) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:860:22: note: (22) returning to 'clone_runtime_spec_schema_config_vm' from 'clone_runtime_spec_schema_config_vm_image' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:677:12: note: (23) '' leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:642: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1111: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1117: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1252: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1898: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2327: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2333: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2815: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2824: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3133: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3139: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3145: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3168: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3171: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3184: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3191: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3197: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3297: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3303: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3993: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c: In function 'make_runtime_spec_schema_config_linux_resources': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:47:13: warning: leak of 'make_runtime_spec_schema_config_linux_resources_pids(get_val(tree, "pids", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3310:1: note: (1) entry to 'make_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3315:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3317:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3318:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3322:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3408:22: note: (6) calling 'make_runtime_spec_schema_config_linux_resources' from 'make_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1964:1: note: (7) entry to 'make_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1969:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1971:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1972:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1976:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1977:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1994:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2014:17: note: (14) calling 'make_runtime_spec_schema_config_linux_resources_pids' from 'make_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:14:1: note: (15) entry to 'make_runtime_spec_schema_config_linux_resources_pids' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:19:8: note: (16) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:21:11: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:21:11: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:22:8: note: (19) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:22:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:26:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:27:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:47:13: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2014:17: note: (24) returning to 'make_runtime_spec_schema_config_linux_resources' from 'make_runtime_spec_schema_config_linux_resources_pids' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:47:13: note: (25) 'make_runtime_spec_schema_config_linux_resources_pids(get_val(tree, "pids", 3), ctx, err)' leaks here; was allocated at (18) <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:9, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:8: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: warning: leak of 'make_runtime_spec_schema_config_linux_resources_block_io(get_val(tree, "blockIO", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:214:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3310:1: note: (1) entry to 'make_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3315:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3317:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3318:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3322:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3408:22: note: (6) calling 'make_runtime_spec_schema_config_linux_resources' from 'make_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1964:1: note: (7) entry to 'make_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1969:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1971:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1972:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1976:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1977:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1994:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2015:8: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2015:30: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2015:27: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2017:21: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2017:21: note: (18) calling 'make_runtime_spec_schema_config_linux_resources_block_io' from 'make_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:157:1: note: (19) entry to 'make_runtime_spec_schema_config_linux_resources_block_io' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:162:8: note: (20) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:164:11: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:164:11: note: (22) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:165:8: note: (23) assuming 'calloc(1, 104)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:165:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:169:24: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:170:12: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:191:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:192:12: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:213:24: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:214:12: note: (30) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:217:20: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:221:16: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (33) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:223:27: note: (34) following 'false' branch (when 'i >= len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:235:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2017:21: note: (36) returning to 'make_runtime_spec_schema_config_linux_resources' from 'make_runtime_spec_schema_config_linux_resources_block_io' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (37) 'make_runtime_spec_schema_config_linux_resources_block_io(get_val(tree, "blockIO", 3), ctx, err)' leaks here; was allocated at (22) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:214:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: warning: leak of 'make_runtime_spec_schema_config_linux_resources_block_io(get_val(tree, "blockIO", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:236:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3310:1: note: (1) entry to 'make_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3315:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3317:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3318:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3322:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3408:22: note: (6) calling 'make_runtime_spec_schema_config_linux_resources' from 'make_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1964:1: note: (7) entry to 'make_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1969:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1971:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1972:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1976:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1977:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1994:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2015:8: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2015:30: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2015:27: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2017:21: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2017:21: note: (18) calling 'make_runtime_spec_schema_config_linux_resources_block_io' from 'make_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:157:1: note: (19) entry to 'make_runtime_spec_schema_config_linux_resources_block_io' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:162:8: note: (20) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:164:11: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:164:11: note: (22) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:165:8: note: (23) assuming 'calloc(1, 104)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:165:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:169:24: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:170:12: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:191:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:192:12: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:213:24: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:236:12: note: (30) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:239:20: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:243:16: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (33) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:245:27: note: (34) following 'false' branch (when 'i >= len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:257:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2017:21: note: (36) returning to 'make_runtime_spec_schema_config_linux_resources' from 'make_runtime_spec_schema_config_linux_resources_block_io' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (37) 'make_runtime_spec_schema_config_linux_resources_block_io(get_val(tree, "blockIO", 3), ctx, err)' leaks here; was allocated at (22) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:236:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:322:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3310:1: note: (1) entry to 'make_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3315:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3317:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3318:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3322:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3408:22: note: (6) calling 'make_runtime_spec_schema_config_linux_resources' from 'make_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1964:1: note: (7) entry to 'make_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1969:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1971:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1972:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1976:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1977:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1994:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2015:8: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2015:30: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2015:27: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2017:21: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2017:21: note: (18) calling 'make_runtime_spec_schema_config_linux_resources_block_io' from 'make_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:157:1: note: (19) entry to 'make_runtime_spec_schema_config_linux_resources_block_io' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:162:8: note: (20) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:164:11: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:165:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:169:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:170:12: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:191:24: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:192:12: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:213:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:214:12: note: (28) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:217:20: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:220:45: note: (30) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:221:16: note: (31) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:221:16: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (33) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:223:27: note: (34) following 'false' branch (when 'i >= len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:235:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2017:21: note: (36) returning to 'make_runtime_spec_schema_config_linux_resources' from 'make_runtime_spec_schema_config_linux_resources_block_io' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:322:8: note: (37) '' leaks here; was allocated at (30) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:322:13: warning: leak of 'make_runtime_spec_schema_config_linux_resources_block_io(get_val(tree, "blockIO", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3310:1: note: (1) entry to 'make_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3315:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3317:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3318:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3322:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3408:22: note: (6) calling 'make_runtime_spec_schema_config_linux_resources' from 'make_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1964:1: note: (7) entry to 'make_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1969:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1971:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1972:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1976:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1977:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1994:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2015:8: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2015:30: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2015:27: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2017:21: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2017:21: note: (18) calling 'make_runtime_spec_schema_config_linux_resources_block_io' from 'make_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:157:1: note: (19) entry to 'make_runtime_spec_schema_config_linux_resources_block_io' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:162:8: note: (20) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:164:11: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:164:11: note: (22) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:165:8: note: (23) assuming 'calloc(1, 104)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:165:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:169:24: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:170:12: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:191:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:192:12: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:213:24: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2017:21: note: (30) returning to 'make_runtime_spec_schema_config_linux_resources' from 'make_runtime_spec_schema_config_linux_resources_block_io' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:322:13: note: (31) 'make_runtime_spec_schema_config_linux_resources_block_io(get_val(tree, "blockIO", 3), ctx, err)' leaks here; was allocated at (22) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c: In function 'clone_runtime_spec_schema_config_linux_resources': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:633:22: warning: leak of 'clone_runtime_spec_schema_config_linux_resources_block_io(*src.block_io)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3981:1: note: (1) entry to 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3986:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4042:26: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4042:26: note: (14) calling 'clone_runtime_spec_schema_config_linux_resources' from 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2318:1: note: (15) entry to 'clone_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2323:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2325:20: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2326:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2328:12: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2328:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2341:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2341:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2347:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2347:8: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2349:25: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2349:25: note: (26) calling 'clone_runtime_spec_schema_config_linux_resources_block_io' from 'clone_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:626:1: note: (27) entry to 'clone_runtime_spec_schema_config_linux_resources_block_io' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:630:11: note: (28) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:631:8: note: (29) assuming 'calloc(1, 104)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:631:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:633:22: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:637:8: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:650:12: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:650:8: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:663:12: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:663:8: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:676:12: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:676:8: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:689:12: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:689:8: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (41) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2349:25: note: (42) returning to 'clone_runtime_spec_schema_config_linux_resources' from 'clone_runtime_spec_schema_config_linux_resources_block_io' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:633:22: note: (43) 'clone_runtime_spec_schema_config_linux_resources_block_io(*src.block_io)' leaks here; was allocated at (28) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:689:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3981:1: note: (1) entry to 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3986:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4042:26: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4042:26: note: (14) calling 'clone_runtime_spec_schema_config_linux_resources' from 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2318:1: note: (15) entry to 'clone_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2323:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2325:20: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2326:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2328:12: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2328:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2341:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2341:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2347:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2347:8: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2349:25: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2349:25: note: (26) calling 'clone_runtime_spec_schema_config_linux_resources_block_io' from 'clone_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:626:1: note: (27) entry to 'clone_runtime_spec_schema_config_linux_resources_block_io' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:631:8: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:633:22: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:637:8: note: (30) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:639:48: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:640:41: note: (32) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:641:12: note: (33) assuming 'calloc(*src.throttle_read_bps_device_len + 1, 8)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:641:12: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (35) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:643:30: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:650:12: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:650:8: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:663:12: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:663:8: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:676:12: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:676:8: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:689:12: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:689:8: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (45) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2349:25: note: (46) returning to 'clone_runtime_spec_schema_config_linux_resources' from 'clone_runtime_spec_schema_config_linux_resources_block_io' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:689:8: note: (47) '' leaks here; was allocated at (32) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1107:12: warning: leak of 'clone_runtime_spec_schema_config_linux_resources_cpu(*src.cpu)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3981:1: note: (1) entry to 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3986:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4042:26: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4042:26: note: (14) calling 'clone_runtime_spec_schema_config_linux_resources' from 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2318:1: note: (15) entry to 'clone_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2323:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2325:20: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2326:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2328:12: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2328:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2341:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2341:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2347:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2347:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2353:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2353:8: note: (26) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2355:20: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2355:20: note: (28) calling 'clone_runtime_spec_schema_config_linux_resources_cpu' from 'clone_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1100:1: note: (29) entry to 'clone_runtime_spec_schema_config_linux_resources_cpu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1104:11: note: (30) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1105:8: note: (31) assuming 'calloc(1, 88)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1105:8: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1107:12: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1107:8: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1113:12: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1113:8: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1119:22: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2355:20: note: (38) returning to 'clone_runtime_spec_schema_config_linux_resources' from 'clone_runtime_spec_schema_config_linux_resources_cpu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1107:12: note: (39) 'clone_runtime_spec_schema_config_linux_resources_cpu(*src.cpu)' leaks here; was allocated at (30) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1132:23: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3981:1: note: (1) entry to 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3986:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4042:26: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4042:26: note: (14) calling 'clone_runtime_spec_schema_config_linux_resources' from 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2318:1: note: (15) entry to 'clone_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2323:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2325:20: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2326:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2328:12: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2328:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2341:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2341:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2347:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2347:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2353:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2353:8: note: (26) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2355:20: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2355:20: note: (28) calling 'clone_runtime_spec_schema_config_linux_resources_cpu' from 'clone_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1100:1: note: (29) entry to 'clone_runtime_spec_schema_config_linux_resources_cpu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1105:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1107:12: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1107:8: note: (32) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1109:21: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1109:21: note: (34) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1110:12: note: (35) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1110:12: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1113:12: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1113:8: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1119:22: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2355:20: note: (40) returning to 'clone_runtime_spec_schema_config_linux_resources' from 'clone_runtime_spec_schema_config_linux_resources_cpu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1132:23: note: (41) '' leaks here; was allocated at (34) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1891:24: warning: leak of 'clone_runtime_spec_schema_config_linux_resources_network(*src.network)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3981:1: note: (1) entry to 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3986:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4042:26: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4042:26: note: (14) calling 'clone_runtime_spec_schema_config_linux_resources' from 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2318:1: note: (15) entry to 'clone_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2323:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2325:20: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2326:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2328:12: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2328:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2341:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2341:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2347:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2347:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2353:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2353:8: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2359:12: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2359:8: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2372:12: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2372:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2378:12: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2378:8: note: (32) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2380:24: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2380:24: note: (34) calling 'clone_runtime_spec_schema_config_linux_resources_network' from 'clone_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1884:1: note: (35) entry to 'clone_runtime_spec_schema_config_linux_resources_network' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1888:11: note: (36) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1889:8: note: (37) assuming 'calloc(1, 40)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1889:8: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1891:24: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1893:8: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (41) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2380:24: note: (42) returning to 'clone_runtime_spec_schema_config_linux_resources' from 'clone_runtime_spec_schema_config_linux_resources_network' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1891:24: note: (43) 'clone_runtime_spec_schema_config_linux_resources_network(*src.network)' leaks here; was allocated at (36) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1899:30: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3981:1: note: (1) entry to 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3986:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4042:26: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4042:26: note: (14) calling 'clone_runtime_spec_schema_config_linux_resources' from 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2318:1: note: (15) entry to 'clone_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2323:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2325:20: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2326:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2328:12: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2328:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2341:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2341:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2347:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2347:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2353:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2353:8: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2359:12: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2359:8: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2372:12: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2372:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2378:12: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2378:8: note: (32) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2380:24: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2380:24: note: (34) calling 'clone_runtime_spec_schema_config_linux_resources_network' from 'clone_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1884:1: note: (35) entry to 'clone_runtime_spec_schema_config_linux_resources_network' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1889:8: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1891:24: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1893:8: note: (38) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1895:34: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1896:27: note: (40) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1897:12: note: (41) assuming 'calloc(*src.priorities_len + 1, 8)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1897:12: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (43) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1899:30: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (45) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2380:24: note: (46) returning to 'clone_runtime_spec_schema_config_linux_resources' from 'clone_runtime_spec_schema_config_linux_resources_network' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1899:30: note: (47) '' leaks here; was allocated at (40) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c: In function 'clone_runtime_spec_schema_config_linux': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2325:20: warning: leak of 'clone_runtime_spec_schema_config_linux_resources(*src.resources)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3981:1: note: (1) entry to 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3986:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4042:26: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4042:26: note: (14) calling 'clone_runtime_spec_schema_config_linux_resources' from 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2318:1: note: (15) entry to 'clone_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2322:11: note: (16) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2323:8: note: (17) assuming 'calloc(1, 96)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2323:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2325:20: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2326:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2328:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2328:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2341:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2341:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2347:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2347:8: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2353:12: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2353:8: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2359:12: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2359:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2372:12: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2372:8: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2378:12: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2378:8: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2384:12: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2384:8: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (37) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4042:26: note: (38) returning to 'clone_runtime_spec_schema_config_linux' from 'clone_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2325:20: note: (39) 'clone_runtime_spec_schema_config_linux_resources(*src.resources)' leaks here; was allocated at (16) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2384:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3981:1: note: (1) entry to 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3986:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4042:26: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4042:26: note: (14) calling 'clone_runtime_spec_schema_config_linux_resources' from 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2318:1: note: (15) entry to 'clone_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2323:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2325:20: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2326:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2328:12: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2328:8: note: (20) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2330:31: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2331:24: note: (22) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2332:12: note: (23) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2332:12: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (25) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2334:30: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2341:12: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2341:8: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2347:12: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2347:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2353:12: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2353:8: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2359:12: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2359:8: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2372:12: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2372:8: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2378:12: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2378:8: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2384:12: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2384:8: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (41) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4042:26: note: (42) returning to 'clone_runtime_spec_schema_config_linux' from 'clone_runtime_spec_schema_config_linux_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2384:8: note: (43) '' leaks here; was allocated at (22) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2811:12: warning: leak of 'clone_runtime_spec_schema_config_linux_seccomp(*src.seccomp)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3981:1: note: (1) entry to 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3986:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4046:12: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4046:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4052:12: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4052:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4058:12: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4058:8: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4060:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4060:24: note: (20) calling 'clone_runtime_spec_schema_config_linux_seccomp' from 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2804:1: note: (21) entry to 'clone_runtime_spec_schema_config_linux_seccomp' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2808:11: note: (22) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2809:8: note: (23) assuming 'calloc(1, 96)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2809:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2811:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2811:8: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2817:33: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2819:8: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2835:12: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2835:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2841:12: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2841:8: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2847:12: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2847:8: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2863:12: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2863:8: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (37) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4060:24: note: (38) returning to 'clone_runtime_spec_schema_config_linux' from 'clone_runtime_spec_schema_config_linux_seccomp' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2811:12: note: (39) 'clone_runtime_spec_schema_config_linux_seccomp(*src.seccomp)' leaks here; was allocated at (22) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2863:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3981:1: note: (1) entry to 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3986:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4046:12: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4046:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4052:12: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4052:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4058:12: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4058:8: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4060:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4060:24: note: (20) calling 'clone_runtime_spec_schema_config_linux_seccomp' from 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2804:1: note: (21) entry to 'clone_runtime_spec_schema_config_linux_seccomp' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2809:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2811:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2811:8: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2813:31: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2813:31: note: (26) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2814:12: note: (27) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2814:12: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2817:33: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2819:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2835:12: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2835:8: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2841:12: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2841:8: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2847:12: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2847:8: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2863:12: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2863:8: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (39) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4060:24: note: (40) returning to 'clone_runtime_spec_schema_config_linux' from 'clone_runtime_spec_schema_config_linux_seccomp' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2863:8: note: (41) '' leaks here; was allocated at (26) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3129:12: warning: leak of 'clone_runtime_spec_schema_config_linux_intel_rdt(*src.intel_rdt)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3981:1: note: (1) entry to 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3986:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4046:12: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4046:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4052:12: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4052:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4058:12: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4058:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4064:19: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4065:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4067:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4067:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4083:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4083:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4099:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4099:8: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4105:12: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4105:8: note: (28) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4107:26: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4107:26: note: (30) calling 'clone_runtime_spec_schema_config_linux_intel_rdt' from 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3122:1: note: (31) entry to 'clone_runtime_spec_schema_config_linux_intel_rdt' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3126:11: note: (32) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3127:8: note: (33) assuming 'calloc(1, 48)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3127:8: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3129:12: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3129:8: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3135:12: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3135:8: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3141:12: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3141:8: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3147:26: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4107:26: note: (42) returning to 'clone_runtime_spec_schema_config_linux' from 'clone_runtime_spec_schema_config_linux_intel_rdt' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3129:12: note: (43) 'clone_runtime_spec_schema_config_linux_intel_rdt(*src.intel_rdt)' leaks here; was allocated at (32) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3150:29: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3981:1: note: (1) entry to 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3986:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4046:12: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4046:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4052:12: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4052:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4058:12: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4058:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4064:19: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4065:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4067:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4067:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4083:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4083:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4099:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4099:8: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4105:12: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4105:8: note: (28) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4107:26: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4107:26: note: (30) calling 'clone_runtime_spec_schema_config_linux_intel_rdt' from 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3122:1: note: (31) entry to 'clone_runtime_spec_schema_config_linux_intel_rdt' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3127:8: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3129:12: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3129:8: note: (34) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3131:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3131:24: note: (36) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3132:12: note: (37) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3132:12: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3135:12: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3135:8: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3141:12: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3141:8: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3147:26: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4107:26: note: (44) returning to 'clone_runtime_spec_schema_config_linux' from 'clone_runtime_spec_schema_config_linux_intel_rdt' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3150:29: note: (45) '' leaks here; was allocated at (36) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3293:12: warning: leak of 'clone_runtime_spec_schema_config_linux_time_offsets(*src.time_offsets)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3981:1: note: (1) entry to 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3986:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3988:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4001:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4014:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4027:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4040:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4046:12: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4046:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4052:12: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4052:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4058:12: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4058:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4064:19: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4065:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4067:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4067:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4083:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4083:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4099:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4099:8: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4105:12: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4105:8: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4111:12: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4111:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4117:12: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4117:8: note: (32) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4119:29: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4119:29: note: (34) calling 'clone_runtime_spec_schema_config_linux_time_offsets' from 'clone_runtime_spec_schema_config_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3286:1: note: (35) entry to 'clone_runtime_spec_schema_config_linux_time_offsets' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3290:11: note: (36) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3291:8: note: (37) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3291:8: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3293:12: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3293:8: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3299:12: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3299:8: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (43) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4119:29: note: (44) returning to 'clone_runtime_spec_schema_config_linux' from 'clone_runtime_spec_schema_config_linux_time_offsets' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3293:12: note: (45) 'clone_runtime_spec_schema_config_linux_time_offsets(*src.time_offsets)' leaks here; was allocated at (36) <--[csmock-gcc-wrapper] make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/runtime_spec_schema_config_schema.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_config_schema.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_config_schema.lo src/ocispec/runtime_spec_schema_config_schema.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_config_schema.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_config_schema.Tpo -c src/ocispec/runtime_spec_schema_config_schema.c -o src/ocispec/runtime_spec_schema_config_schema.o /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:486: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:735: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1233: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1686: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1939: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2327: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2338: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2512: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3123: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3655: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3661: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3665: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3670: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3676: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3683: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:9, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:8: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c: In function 'make_runtime_spec_schema_config_schema': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: warning: leak of 'make_runtime_spec_schema_config_schema_hooks(get_val(tree, "hooks", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:27:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3776:38: note: (1) entry to 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3782:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3785:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3790:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (6) calling 'make_runtime_spec_schema_config_schema' from 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3228:1: note: (7) entry to 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3233:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3235:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3236:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3240:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3241:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (14) calling 'make_runtime_spec_schema_config_schema_hooks' from 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:14:1: note: (15) entry to 'make_runtime_spec_schema_config_schema_hooks' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:19:8: note: (16) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:21:11: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:21:11: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:22:8: note: (19) assuming 'calloc(1, 104)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:22:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:26:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:27:12: note: (22) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:30:20: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:34:16: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (25) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:36:27: note: (26) following 'false' branch (when 'i >= len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:48:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (28) returning to 'make_runtime_spec_schema_config_schema' from 'make_runtime_spec_schema_config_schema_hooks' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (29) 'make_runtime_spec_schema_config_schema_hooks(get_val(tree, "hooks", 3), ctx, err)' leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:27:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: warning: leak of 'make_runtime_spec_schema_config_schema_hooks(get_val(tree, "hooks", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:49:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3776:38: note: (1) entry to 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3782:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3785:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3790:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (6) calling 'make_runtime_spec_schema_config_schema' from 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3228:1: note: (7) entry to 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3233:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3235:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3236:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3240:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3241:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (14) calling 'make_runtime_spec_schema_config_schema_hooks' from 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:14:1: note: (15) entry to 'make_runtime_spec_schema_config_schema_hooks' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:19:8: note: (16) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:21:11: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:21:11: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:22:8: note: (19) assuming 'calloc(1, 104)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:22:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:26:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:49:12: note: (22) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:52:20: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:56:16: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (25) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:58:27: note: (26) following 'false' branch (when 'i >= len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:70:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (28) returning to 'make_runtime_spec_schema_config_schema' from 'make_runtime_spec_schema_config_schema_hooks' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (29) 'make_runtime_spec_schema_config_schema_hooks(get_val(tree, "hooks", 3), ctx, err)' leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:49:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: warning: leak of 'make_runtime_spec_schema_config_schema_hooks(get_val(tree, "hooks", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:71:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3776:38: note: (1) entry to 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3782:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3785:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3790:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (6) calling 'make_runtime_spec_schema_config_schema' from 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3228:1: note: (7) entry to 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3233:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3235:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3236:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3240:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3241:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (14) calling 'make_runtime_spec_schema_config_schema_hooks' from 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:14:1: note: (15) entry to 'make_runtime_spec_schema_config_schema_hooks' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:19:8: note: (16) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:21:11: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:21:11: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:22:8: note: (19) assuming 'calloc(1, 104)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:22:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:26:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:71:12: note: (22) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:74:20: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:78:16: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (25) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:80:27: note: (26) following 'false' branch (when 'i >= len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:92:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (28) returning to 'make_runtime_spec_schema_config_schema' from 'make_runtime_spec_schema_config_schema_hooks' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (29) 'make_runtime_spec_schema_config_schema_hooks(get_val(tree, "hooks", 3), ctx, err)' leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:71:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:157:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3776:38: note: (1) entry to 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3782:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3785:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3790:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (6) calling 'make_runtime_spec_schema_config_schema' from 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3228:1: note: (7) entry to 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3233:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3235:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3236:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3240:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3241:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (14) calling 'make_runtime_spec_schema_config_schema_hooks' from 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:14:1: note: (15) entry to 'make_runtime_spec_schema_config_schema_hooks' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:19:8: note: (16) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:21:11: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:22:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:26:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:27:12: note: (20) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:30:20: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:33:29: note: (22) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:34:16: note: (23) assuming 'calloc(len + 1, 8)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:34:16: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (25) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:36:27: note: (26) following 'false' branch (when 'i >= len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:48:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (28) returning to 'make_runtime_spec_schema_config_schema' from 'make_runtime_spec_schema_config_schema_hooks' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:157:8: note: (29) '' leaks here; was allocated at (22) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:157:13: warning: leak of 'make_runtime_spec_schema_config_schema_hooks(get_val(tree, "hooks", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3776:38: note: (1) entry to 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3782:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3785:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3790:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (6) calling 'make_runtime_spec_schema_config_schema' from 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3228:1: note: (7) entry to 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3233:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3235:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3236:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3240:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3241:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (14) calling 'make_runtime_spec_schema_config_schema_hooks' from 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:14:1: note: (15) entry to 'make_runtime_spec_schema_config_schema_hooks' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:19:8: note: (16) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:21:11: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:21:11: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:22:8: note: (19) assuming 'calloc(1, 104)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:22:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:26:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (22) returning to 'make_runtime_spec_schema_config_schema' from 'make_runtime_spec_schema_config_schema_hooks' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:157:13: note: (23) 'make_runtime_spec_schema_config_schema_hooks(get_val(tree, "hooks", 3), ctx, err)' leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: warning: leak of 'make_runtime_spec_schema_config_schema_root(get_val(tree, "root", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:579:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3776:38: note: (1) entry to 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3782:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3785:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3790:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (6) calling 'make_runtime_spec_schema_config_schema' from 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3228:1: note: (7) entry to 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3233:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3235:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3236:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3240:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3241:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:8: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:31: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:28: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3255:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3256:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3273:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3274:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3285:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3286:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3297:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3317:17: note: (24) calling 'make_runtime_spec_schema_config_schema_root' from 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:564:1: note: (25) entry to 'make_runtime_spec_schema_config_schema_root' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:569:8: note: (26) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:571:11: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:571:11: note: (28) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:572:8: note: (29) assuming 'calloc(1, 32)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:572:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:576:24: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:577:12: note: (32) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:579:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:581:16: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:588:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:589:12: note: (36) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:591:29: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:605:8: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:612:13: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3317:17: note: (40) returning to 'make_runtime_spec_schema_config_schema' from 'make_runtime_spec_schema_config_schema_root' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (41) 'make_runtime_spec_schema_config_schema_root(get_val(tree, "root", 3), ctx, err)' leaks here; was allocated at (28) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:579:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:612:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3776:38: note: (1) entry to 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3782:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3785:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3790:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (6) calling 'make_runtime_spec_schema_config_schema' from 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3228:1: note: (7) entry to 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3233:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3235:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3236:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3240:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3241:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:8: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:31: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:28: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3255:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3256:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3273:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3274:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3285:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3286:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3297:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3317:17: note: (24) calling 'make_runtime_spec_schema_config_schema_root' from 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:564:1: note: (25) entry to 'make_runtime_spec_schema_config_schema_root' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:569:8: note: (26) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:571:11: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:572:8: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:576:24: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:577:12: note: (30) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:579:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:580:25: note: (32) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:581:16: note: (33) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:581:16: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:588:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:589:12: note: (36) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:591:29: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:605:8: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:612:13: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3317:17: note: (40) returning to 'make_runtime_spec_schema_config_schema' from 'make_runtime_spec_schema_config_schema_root' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:612:8: note: (41) '' leaks here; was allocated at (32) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c: In function 'make_runtime_spec_schema_config_schema_process': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:799:13: warning: leak of 'make_runtime_spec_schema_config_schema_process_console_size(get_val(tree, "consoleSize", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3776:38: note: (1) entry to 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3782:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3785:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3790:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (6) calling 'make_runtime_spec_schema_config_schema' from 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3228:1: note: (7) entry to 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3233:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3235:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3236:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3240:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3241:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:8: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:31: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:28: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3255:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3256:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3273:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3274:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3285:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3286:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3297:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:8: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:30: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:27: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3320:20: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3320:20: note: (28) calling 'make_runtime_spec_schema_config_schema_process' from 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2519:1: note: (29) entry to 'make_runtime_spec_schema_config_schema_process' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2524:8: note: (30) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2526:11: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2527:8: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2531:24: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2558:12: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2567:25: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2567:25: note: (36) calling 'make_runtime_spec_schema_config_schema_process_console_size' from 'make_runtime_spec_schema_config_schema_process' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:744:1: note: (37) entry to 'make_runtime_spec_schema_config_schema_process_console_size' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:749:8: note: (38) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:751:11: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:751:11: note: (40) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:752:8: note: (41) assuming 'calloc(1, 32)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:752:8: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:756:24: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:757:12: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:778:24: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:779:12: note: (46) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:799:13: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2567:25: note: (48) returning to 'make_runtime_spec_schema_config_schema_process' from 'make_runtime_spec_schema_config_schema_process_console_size' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:799:13: note: (49) 'make_runtime_spec_schema_config_schema_process_console_size(get_val(tree, "consoleSize", 3), ctx, err)' leaks here; was allocated at (40) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: warning: leak of 'make_runtime_spec_schema_config_schema_process_user(get_val(tree, "user", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1003:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3776:38: note: (1) entry to 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3782:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3785:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3790:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (6) calling 'make_runtime_spec_schema_config_schema' from 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3228:1: note: (7) entry to 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3233:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3235:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3236:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3240:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3241:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:8: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:31: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:28: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3255:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3256:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3273:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3274:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3285:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3286:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3297:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:8: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:30: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:27: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3320:20: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3320:20: note: (28) calling 'make_runtime_spec_schema_config_schema_process' from 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2519:1: note: (29) entry to 'make_runtime_spec_schema_config_schema_process' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2524:8: note: (30) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2526:11: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2527:8: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2531:24: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2558:12: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2567:25: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2568:8: note: (36) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2568:38: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2568:35: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2572:24: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2573:12: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2584:24: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2611:12: note: (42) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2613:29: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2627:17: note: (44) calling 'make_runtime_spec_schema_config_schema_process_user' from 'make_runtime_spec_schema_config_schema_process' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:924:1: note: (45) entry to 'make_runtime_spec_schema_config_schema_process_user' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:929:8: note: (46) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:931:11: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:931:11: note: (48) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:932:8: note: (49) assuming 'calloc(1, 56)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:932:8: note: (50) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:936:24: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:937:12: note: (52) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:958:24: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:959:12: note: (54) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:980:24: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:981:12: note: (56) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1002:24: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1003:12: note: (58) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1006:20: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1010:16: note: (60) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (61) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1038:12: note: (62) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1048:13: note: (63) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2627:17: note: (64) returning to 'make_runtime_spec_schema_config_schema_process' from 'make_runtime_spec_schema_config_schema_process_user' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (65) 'make_runtime_spec_schema_config_schema_process_user(get_val(tree, "user", 3), ctx, err)' leaks here; was allocated at (48) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1003:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1048:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3776:38: note: (1) entry to 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3782:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3785:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3790:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (6) calling 'make_runtime_spec_schema_config_schema' from 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3228:1: note: (7) entry to 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3233:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3235:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3236:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3240:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3241:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:8: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:31: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:28: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3255:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3256:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3273:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3274:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3285:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3286:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3297:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:8: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:30: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:27: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3320:20: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3320:20: note: (28) calling 'make_runtime_spec_schema_config_schema_process' from 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2519:1: note: (29) entry to 'make_runtime_spec_schema_config_schema_process' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2524:8: note: (30) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2526:11: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2527:8: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2531:24: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2558:12: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2567:25: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2568:8: note: (36) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2568:38: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2568:35: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2572:24: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2573:12: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2584:24: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2611:12: note: (42) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2613:29: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2627:17: note: (44) calling 'make_runtime_spec_schema_config_schema_process_user' from 'make_runtime_spec_schema_config_schema_process' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:924:1: note: (45) entry to 'make_runtime_spec_schema_config_schema_process_user' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:929:8: note: (46) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:931:11: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:932:8: note: (48) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:936:24: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:937:12: note: (50) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:958:24: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:959:12: note: (52) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:980:24: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:981:12: note: (54) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1002:24: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1003:12: note: (56) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1006:20: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1009:36: note: (58) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1010:16: note: (59) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1010:16: note: (60) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (61) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1038:12: note: (62) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1048:13: note: (63) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2627:17: note: (64) returning to 'make_runtime_spec_schema_config_schema_process' from 'make_runtime_spec_schema_config_schema_process_user' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1048:8: note: (65) '' leaks here; was allocated at (58) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1048:13: warning: leak of 'make_runtime_spec_schema_config_schema_process_user(get_val(tree, "user", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3776:38: note: (1) entry to 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3782:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3785:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3790:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (6) calling 'make_runtime_spec_schema_config_schema' from 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3228:1: note: (7) entry to 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3233:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3235:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3236:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3240:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3241:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:8: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:31: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:28: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3255:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3256:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3273:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3274:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3285:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3286:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3297:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:8: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:30: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:27: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3320:20: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3320:20: note: (28) calling 'make_runtime_spec_schema_config_schema_process' from 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2519:1: note: (29) entry to 'make_runtime_spec_schema_config_schema_process' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2524:8: note: (30) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2526:11: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2527:8: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2531:24: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2558:12: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2567:25: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2568:8: note: (36) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2568:38: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2568:35: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2572:24: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2573:12: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2584:24: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2611:12: note: (42) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2613:29: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2627:17: note: (44) calling 'make_runtime_spec_schema_config_schema_process_user' from 'make_runtime_spec_schema_config_schema_process' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:924:1: note: (45) entry to 'make_runtime_spec_schema_config_schema_process_user' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:929:8: note: (46) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:931:11: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:931:11: note: (48) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:932:8: note: (49) assuming 'calloc(1, 56)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:932:8: note: (50) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:936:24: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:937:12: note: (52) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:958:24: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:959:12: note: (54) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:980:24: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:981:12: note: (56) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1002:24: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1038:12: note: (58) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1048:13: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2627:17: note: (60) returning to 'make_runtime_spec_schema_config_schema_process' from 'make_runtime_spec_schema_config_schema_process_user' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1048:13: note: (61) 'make_runtime_spec_schema_config_schema_process_user(get_val(tree, "user", 3), ctx, err)' leaks here; was allocated at (48) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: warning: leak of 'make_runtime_spec_schema_config_schema_process_capabilities(get_val(tree, "capabilities", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1263:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3776:38: note: (1) entry to 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3782:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3785:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3790:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (6) calling 'make_runtime_spec_schema_config_schema' from 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3228:1: note: (7) entry to 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3233:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3235:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3236:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3240:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3241:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:8: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:31: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:28: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3255:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3256:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3273:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3274:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3285:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3286:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3297:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:8: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:30: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:27: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3320:20: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3320:20: note: (28) calling 'make_runtime_spec_schema_config_schema_process' from 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2519:1: note: (29) entry to 'make_runtime_spec_schema_config_schema_process' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2524:8: note: (30) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2526:11: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2527:8: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2531:24: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2558:12: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2567:25: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2568:8: note: (36) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2568:38: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2568:35: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2572:24: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2573:12: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2584:24: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2611:12: note: (42) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2613:29: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2628:8: note: (44) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2628:30: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2628:27: note: (46) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2630:25: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2630:25: note: (48) calling 'make_runtime_spec_schema_config_schema_process_capabilities' from 'make_runtime_spec_schema_config_schema_process' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1250:1: note: (49) entry to 'make_runtime_spec_schema_config_schema_process_capabilities' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1255:8: note: (50) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1257:11: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1257:11: note: (52) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1258:8: note: (53) assuming 'calloc(1, 88)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1258:8: note: (54) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1262:24: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1263:12: note: (56) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1266:20: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1270:16: note: (58) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (59) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2630:25: note: (60) returning to 'make_runtime_spec_schema_config_schema_process' from 'make_runtime_spec_schema_config_schema_process_capabilities' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (61) 'make_runtime_spec_schema_config_schema_process_capabilities(get_val(tree, "capabilities", 3), ctx, err)' leaks here; was allocated at (52) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1263:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: warning: leak of 'make_runtime_spec_schema_config_schema_process_capabilities(get_val(tree, "capabilities", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1289:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3776:38: note: (1) entry to 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3782:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3785:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3790:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (6) calling 'make_runtime_spec_schema_config_schema' from 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3228:1: note: (7) entry to 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3233:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3235:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3236:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3240:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3241:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:8: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:31: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:28: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3255:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3256:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3273:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3274:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3285:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3286:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3297:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:8: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:30: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:27: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3320:20: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3320:20: note: (28) calling 'make_runtime_spec_schema_config_schema_process' from 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2519:1: note: (29) entry to 'make_runtime_spec_schema_config_schema_process' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2524:8: note: (30) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2526:11: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2527:8: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2531:24: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2558:12: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2567:25: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2568:8: note: (36) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2568:38: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2568:35: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2572:24: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2573:12: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2584:24: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2611:12: note: (42) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2613:29: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2628:8: note: (44) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2628:30: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2628:27: note: (46) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2630:25: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2630:25: note: (48) calling 'make_runtime_spec_schema_config_schema_process_capabilities' from 'make_runtime_spec_schema_config_schema_process' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1250:1: note: (49) entry to 'make_runtime_spec_schema_config_schema_process_capabilities' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1255:8: note: (50) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1257:11: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1257:11: note: (52) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1258:8: note: (53) assuming 'calloc(1, 88)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1258:8: note: (54) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1262:24: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1289:12: note: (56) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1292:20: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1296:16: note: (58) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (59) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2630:25: note: (60) returning to 'make_runtime_spec_schema_config_schema_process' from 'make_runtime_spec_schema_config_schema_process_capabilities' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (61) 'make_runtime_spec_schema_config_schema_process_capabilities(get_val(tree, "capabilities", 3), ctx, err)' leaks here; was allocated at (52) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1289:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1391:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3776:38: note: (1) entry to 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3782:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3785:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3790:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (6) calling 'make_runtime_spec_schema_config_schema' from 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3228:1: note: (7) entry to 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3233:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3235:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3236:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3240:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3241:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:8: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:31: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:28: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3255:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3256:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3273:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3274:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3285:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3286:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3297:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:8: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:30: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:27: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3320:20: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3320:20: note: (28) calling 'make_runtime_spec_schema_config_schema_process' from 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2519:1: note: (29) entry to 'make_runtime_spec_schema_config_schema_process' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2524:8: note: (30) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2526:11: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2527:8: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2531:24: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2558:12: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2567:25: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2568:8: note: (36) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2568:38: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2568:35: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2572:24: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2573:12: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2584:24: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2611:12: note: (42) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2613:29: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2628:8: note: (44) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2628:30: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2628:27: note: (46) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2630:25: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2630:25: note: (48) calling 'make_runtime_spec_schema_config_schema_process_capabilities' from 'make_runtime_spec_schema_config_schema_process' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1250:1: note: (49) entry to 'make_runtime_spec_schema_config_schema_process_capabilities' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1255:8: note: (50) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1257:11: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1258:8: note: (52) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1262:24: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1263:12: note: (54) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1266:20: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1269:29: note: (56) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1270:16: note: (57) assuming 'calloc(len + 1, 8)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1270:16: note: (58) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (59) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2630:25: note: (60) returning to 'make_runtime_spec_schema_config_schema_process' from 'make_runtime_spec_schema_config_schema_process_capabilities' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1391:8: note: (61) '' leaks here; was allocated at (56) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1391:13: warning: leak of 'make_runtime_spec_schema_config_schema_process_capabilities(get_val(tree, "capabilities", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3776:38: note: (1) entry to 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3782:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3785:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3790:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3796:7: note: (6) calling 'make_runtime_spec_schema_config_schema' from 'runtime_spec_schema_config_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3228:1: note: (7) entry to 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3233:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3235:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3236:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3240:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3241:12: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3250:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:8: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:31: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3251:28: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3255:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3256:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3273:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3274:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3285:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3286:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3297:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:8: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:30: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3318:27: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3320:20: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3320:20: note: (28) calling 'make_runtime_spec_schema_config_schema_process' from 'make_runtime_spec_schema_config_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2519:1: note: (29) entry to 'make_runtime_spec_schema_config_schema_process' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2524:8: note: (30) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2526:11: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2527:8: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2531:24: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/runtime_spec_schema_config_windows.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_config_windows.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_config_windows.lo src/ocispec/runtime_spec_schema_config_windows.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_config_windows.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_config_windows.Tpo -c src/ocispec/runtime_spec_schema_config_windows.c -o src/ocispec/runtime_spec_schema_config_windows.o build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2558:12: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2567:25: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2568:8: note: (36) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2568:38: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2568:35: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2572:24: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2573:12: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2584:24: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2611:12: note: (42) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2613:29: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2628:8: note: (44) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2628:30: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2628:27: note: (46) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2630:25: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2630:25: note: (48) calling 'make_runtime_spec_schema_config_schema_process_capabilities' from 'make_runtime_spec_schema_config_schema_process' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1250:1: note: (49) entry to 'make_runtime_spec_schema_config_schema_process_capabilities' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1255:8: note: (50) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1257:11: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1257:11: note: (52) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1258:8: note: (53) assuming 'calloc(1, 88)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1258:8: note: (54) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1262:24: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2630:25: note: (56) returning to 'make_runtime_spec_schema_config_schema_process' from 'make_runtime_spec_schema_config_schema_process_capabilities' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1391:13: note: (57) 'make_runtime_spec_schema_config_schema_process_capabilities(get_val(tree, "capabilities", 3), ctx, err)' leaks here; was allocated at (52) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:603: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:606: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:609: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:622: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:629: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:635: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:750: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:756: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:762: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1094: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1325: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1709: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c: In function 'make_runtime_spec_schema_config_windows_resources': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:47:13: warning: leak of 'make_runtime_spec_schema_config_windows_resources_memory(get_val(tree, "memory", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1332:1: note: (1) entry to 'make_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1337:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1339:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1340:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1344:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1390:22: note: (6) calling 'make_runtime_spec_schema_config_windows_resources' from 'make_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:591:1: note: (7) entry to 'make_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:596:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:598:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:599:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:601:19: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:601:19: note: (12) calling 'make_runtime_spec_schema_config_windows_resources_memory' from 'make_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:14:1: note: (13) entry to 'make_runtime_spec_schema_config_windows_resources_memory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:19:8: note: (14) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:21:11: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:21:11: note: (16) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:22:8: note: (17) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:22:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:26:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:27:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:47:13: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:601:19: note: (22) returning to 'make_runtime_spec_schema_config_windows_resources' from 'make_runtime_spec_schema_config_windows_resources_memory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:47:13: note: (23) 'make_runtime_spec_schema_config_windows_resources_memory(get_val(tree, "memory", 3), ctx, err)' leaks here; was allocated at (16) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:234:13: warning: leak of 'make_runtime_spec_schema_config_windows_resources_cpu(get_val(tree, "cpu", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1332:1: note: (1) entry to 'make_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1337:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1339:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1340:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1344:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1390:22: note: (6) calling 'make_runtime_spec_schema_config_windows_resources' from 'make_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:591:1: note: (7) entry to 'make_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:596:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:598:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:599:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:601:19: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:32: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:29: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:604:16: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:604:16: note: (16) calling 'make_runtime_spec_schema_config_windows_resources_cpu' from 'make_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:157:1: note: (17) entry to 'make_runtime_spec_schema_config_windows_resources_cpu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:162:8: note: (18) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:164:11: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:164:11: note: (20) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:165:8: note: (21) assuming 'calloc(1, 32)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:165:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:169:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:170:12: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:191:24: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:192:12: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:213:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:214:12: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:234:13: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:604:16: note: (30) returning to 'make_runtime_spec_schema_config_windows_resources' from 'make_runtime_spec_schema_config_windows_resources_cpu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:234:13: note: (31) 'make_runtime_spec_schema_config_windows_resources_cpu(get_val(tree, "cpu", 3), ctx, err)' leaks here; was allocated at (20) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c: In function 'make_runtime_spec_schema_config_windows_resources_cpu': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:282:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1332:1: note: (1) entry to 'make_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1337:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1339:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1340:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1344:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1390:22: note: (6) calling 'make_runtime_spec_schema_config_windows_resources' from 'make_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:591:1: note: (7) entry to 'make_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:596:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:598:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:599:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:601:19: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:32: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:29: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:604:16: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:604:16: note: (16) calling 'make_runtime_spec_schema_config_windows_resources_cpu' from 'make_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:157:1: note: (17) entry to 'make_runtime_spec_schema_config_windows_resources_cpu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:162:8: note: (18) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:164:11: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:165:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:169:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:170:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:191:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:192:12: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:213:24: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:214:12: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:234:13: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:234:8: note: (28) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:238:16: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:241:12: note: (30) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:243:20: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:243:20: note: (32) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:244:16: note: (33) assuming 'resi' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:244:16: note: (34) following 'false' branch (when 'resi' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:247:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:249:16: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:254:37: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:255:16: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:262:9: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:262:23: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:279:27: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:282:12: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (43) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:282:12: note: (44) 'resi' leaks here; was allocated at (32) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:282:12: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1332:1: note: (1) entry to 'make_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1337:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1339:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1340:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1344:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1390:22: note: (6) calling 'make_runtime_spec_schema_config_windows_resources' from 'make_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:591:1: note: (7) entry to 'make_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:596:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:598:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:599:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:601:19: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:32: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:29: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:604:16: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:604:16: note: (16) calling 'make_runtime_spec_schema_config_windows_resources_cpu' from 'make_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:157:1: note: (17) entry to 'make_runtime_spec_schema_config_windows_resources_cpu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:162:8: note: (18) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:164:11: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:165:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:169:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:170:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:191:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:192:12: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:213:24: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:214:12: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:234:13: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:234:8: note: (28) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:238:16: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:241:12: note: (30) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:243:20: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:244:16: note: (32) following 'false' branch (when 'resi' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:247:24: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:248:35: note: (34) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:249:16: note: (35) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:249:16: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:254:37: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:255:16: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:262:9: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:262:23: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:279:27: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:282:12: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (43) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:282:12: note: (44) '' leaks here; was allocated at (34) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c: In function 'make_runtime_spec_schema_config_windows_resources': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:451:13: warning: leak of 'make_runtime_spec_schema_config_windows_resources_storage(get_val(tree, "storage", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1332:1: note: (1) entry to 'make_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1337:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1339:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1340:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1344:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1390:22: note: (6) calling 'make_runtime_spec_schema_config_windows_resources' from 'make_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:591:1: note: (7) entry to 'make_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:596:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:598:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:599:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:601:19: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:32: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:29: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:604:16: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:8: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:29: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:26: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:607:20: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:607:20: note: (20) calling 'make_runtime_spec_schema_config_windows_resources_storage' from 'make_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:374:1: note: (21) entry to 'make_runtime_spec_schema_config_windows_resources_storage' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:379:8: note: (22) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:381:11: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:381:11: note: (24) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:382:8: note: (25) assuming 'calloc(1, 40)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:382:8: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:386:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:387:12: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:408:24: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:409:12: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:430:24: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:431:12: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:451:13: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:607:20: note: (34) returning to 'make_runtime_spec_schema_config_windows_resources' from 'make_runtime_spec_schema_config_windows_resources_storage' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:451:13: note: (35) 'make_runtime_spec_schema_config_windows_resources_storage(get_val(tree, "storage", 3), ctx, err)' leaks here; was allocated at (24) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c: In function 'make_runtime_spec_schema_config_windows_resources_storage': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:499:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1332:1: note: (1) entry to 'make_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1337:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1339:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1340:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1344:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1390:22: note: (6) calling 'make_runtime_spec_schema_config_windows_resources' from 'make_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:591:1: note: (7) entry to 'make_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:596:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:598:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:599:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:601:19: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:32: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:29: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:604:16: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:8: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:29: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:26: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:607:20: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:607:20: note: (20) calling 'make_runtime_spec_schema_config_windows_resources_storage' from 'make_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:374:1: note: (21) entry to 'make_runtime_spec_schema_config_windows_resources_storage' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:379:8: note: (22) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:381:11: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:382:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:386:24: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:387:12: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:408:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:409:12: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:430:24: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:431:12: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:451:13: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:451:8: note: (32) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:455:16: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:458:12: note: (34) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:460:20: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:460:20: note: (36) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:461:16: note: (37) assuming 'resi' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:461:16: note: (38) following 'false' branch (when 'resi' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:464:24: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:466:16: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:471:37: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:472:16: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:479:9: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:479:23: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:496:27: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:499:12: note: (46) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (47) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:499:12: note: (48) 'resi' leaks here; was allocated at (36) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:499:12: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1332:1: note: (1) entry to 'make_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1337:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1339:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1340:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1344:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1390:22: note: (6) calling 'make_runtime_spec_schema_config_windows_resources' from 'make_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:591:1: note: (7) entry to 'make_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:596:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:598:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:599:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:601:19: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:8: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:32: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:29: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:604:16: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:8: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:29: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:26: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:607:20: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:607:20: note: (20) calling 'make_runtime_spec_schema_config_windows_resources_storage' from 'make_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:374:1: note: (21) entry to 'make_runtime_spec_schema_config_windows_resources_storage' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:379:8: note: (22) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:381:11: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:382:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:386:24: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:387:12: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:408:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:409:12: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:430:24: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:431:12: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:451:13: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:451:8: note: (32) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:455:16: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:458:12: note: (34) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:460:20: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:461:16: note: (36) following 'false' branch (when 'resi' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:464:24: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:465:35: note: (38) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:466:16: note: (39) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:466:16: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:471:37: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:472:16: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:479:9: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:479:23: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:496:27: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:499:12: note: (46) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (47) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:499:12: note: (48) '' leaks here; was allocated at (38) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c: In function 'make_runtime_spec_schema_config_windows': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:32: warning: leak of 'make_runtime_spec_schema_config_windows_resources(get_val(tree, "resources", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1332:1: note: (1) entry to 'make_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1337:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1339:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1340:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1344:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1390:22: note: (6) calling 'make_runtime_spec_schema_config_windows_resources' from 'make_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:591:1: note: (7) entry to 'make_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:596:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:598:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:598:11: note: (10) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:599:8: note: (11) assuming 'calloc(1, 32)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:599:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:601:19: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:8: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:32: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:29: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:604:16: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:8: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:29: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:26: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:607:20: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:607:20: note: (22) calling 'make_runtime_spec_schema_config_windows_resources_storage' from 'make_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:374:1: note: (23) entry to 'make_runtime_spec_schema_config_windows_resources_storage' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:379:8: note: (24) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:381:11: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:382:8: note: (26) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:607:20: note: (28) returning to 'make_runtime_spec_schema_config_windows_resources' from 'make_runtime_spec_schema_config_windows_resources_storage' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:608:8: note: (29) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:608:33: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:608:30: note: (31) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:611:13: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1390:22: note: (33) returning to 'make_runtime_spec_schema_config_windows' from 'make_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:32: note: (34) 'make_runtime_spec_schema_config_windows_resources(get_val(tree, "resources", 3), ctx, err)' leaks here; was allocated at (10) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c: In function 'clone_runtime_spec_schema_config_windows': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:746:12: warning: leak of 'clone_runtime_spec_schema_config_windows_resources(*src.resources)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1697:1: note: (1) entry to 'clone_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1702:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:8: note: (8) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1735:26: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1735:26: note: (10) calling 'clone_runtime_spec_schema_config_windows_resources' from 'clone_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:739:1: note: (11) entry to 'clone_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:743:11: note: (12) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:744:8: note: (13) assuming 'calloc(1, 32)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:744:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/runtime_spec_schema_defs.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_defs.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_defs.lo src/ocispec/runtime_spec_schema_defs.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_defs.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_defs.Tpo -c src/ocispec/runtime_spec_schema_defs.c -o src/ocispec/runtime_spec_schema_defs.o BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:746:12: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:746:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:752:12: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:752:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:758:12: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:758:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (21) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1735:26: note: (22) returning to 'clone_runtime_spec_schema_config_windows' from 'clone_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:746:12: note: (23) 'clone_runtime_spec_schema_config_windows_resources(*src.resources)' leaks here; was allocated at (12) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:758:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1697:1: note: (1) entry to 'clone_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1702:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:8: note: (8) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1735:26: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1735:26: note: (10) calling 'clone_runtime_spec_schema_config_windows_resources' from 'clone_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:739:1: note: (11) entry to 'clone_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:744:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:746:12: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:746:8: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:748:23: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:748:23: note: (16) calling 'clone_runtime_spec_schema_config_windows_resources_memory' from 'clone_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:143:1: note: (17) entry to 'clone_runtime_spec_schema_config_windows_resources_memory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:147:11: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:148:8: note: (19) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:148:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:150:21: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:748:23: note: (22) returning to 'clone_runtime_spec_schema_config_windows_resources' from 'clone_runtime_spec_schema_config_windows_resources_memory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:749:12: note: (23) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:752:12: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:752:8: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:758:12: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:758:8: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (28) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1735:26: note: (29) returning to 'clone_runtime_spec_schema_config_windows' from 'clone_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:758:8: note: (30) '' leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:761:12: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1697:1: note: (1) entry to 'clone_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1702:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:8: note: (8) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1735:26: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1735:26: note: (10) calling 'clone_runtime_spec_schema_config_windows_resources' from 'clone_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:739:1: note: (11) entry to 'clone_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:744:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:746:12: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:746:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:752:12: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:752:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:758:12: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:758:8: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:760:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:760:24: note: (20) calling 'clone_runtime_spec_schema_config_windows_resources_storage' from 'clone_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:573:1: note: (21) entry to 'clone_runtime_spec_schema_config_windows_resources_storage' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:577:11: note: (22) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:578:8: note: (23) assuming 'calloc(1, 40)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:578:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:580:20: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:760:24: note: (26) returning to 'clone_runtime_spec_schema_config_windows_resources' from 'clone_runtime_spec_schema_config_windows_resources_storage' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:761:12: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (28) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1735:26: note: (29) returning to 'clone_runtime_spec_schema_config_windows' from 'clone_runtime_spec_schema_config_windows_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:761:12: note: (30) '' leaks here; was allocated at (22) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1089:12: warning: leak of 'clone_runtime_spec_schema_config_windows_network(*src.network)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1697:1: note: (1) entry to 'clone_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1702:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1739:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1739:8: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1741:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1741:24: note: (12) calling 'clone_runtime_spec_schema_config_windows_network' from 'clone_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1082:1: note: (13) entry to 'clone_runtime_spec_schema_config_windows_network' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1086:11: note: (14) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1087:8: note: (15) assuming 'calloc(1, 72)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1087:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1089:12: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1089:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1105:43: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1107:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1123:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1123:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1129:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1129:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (25) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1741:24: note: (26) returning to 'clone_runtime_spec_schema_config_windows' from 'clone_runtime_spec_schema_config_windows_network' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1089:12: note: (27) 'clone_runtime_spec_schema_config_windows_network(*src.network)' leaks here; was allocated at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1129:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1697:1: note: (1) entry to 'clone_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1702:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1739:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1739:8: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1741:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1741:24: note: (12) calling 'clone_runtime_spec_schema_config_windows_network' from 'clone_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1082:1: note: (13) entry to 'clone_runtime_spec_schema_config_windows_network' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1087:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1089:12: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1089:8: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1091:37: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1092:30: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1093:12: note: (19) assuming 'calloc(*src.endpoint_list_len + 1, 8)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1093:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (21) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1107:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1123:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1123:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1129:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1129:8: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1741:24: note: (28) returning to 'clone_runtime_spec_schema_config_windows' from 'clone_runtime_spec_schema_config_windows_network' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1129:8: note: (29) '' leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1321:12: warning: leak of 'clone_runtime_spec_schema_config_windows_hyperv(*src.hyperv)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1697:1: note: (1) entry to 'clone_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1702:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1739:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1739:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1745:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1745:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1751:25: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1755:8: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1757:23: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1757:23: note: (16) calling 'clone_runtime_spec_schema_config_windows_hyperv' from 'clone_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1314:1: note: (17) entry to 'clone_runtime_spec_schema_config_windows_hyperv' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1318:11: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1319:8: note: (19) assuming 'calloc(1, 16)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1319:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1321:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1321:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (23) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1757:23: note: (24) returning to 'clone_runtime_spec_schema_config_windows' from 'clone_runtime_spec_schema_config_windows_hyperv' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1321:12: note: (25) 'clone_runtime_spec_schema_config_windows_hyperv(*src.hyperv)' leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1324:12: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1697:1: note: (1) entry to 'clone_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1702:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1739:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1739:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1745:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1745:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1751:25: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1755:8: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1757:23: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1757:23: note: (16) calling 'clone_runtime_spec_schema_config_windows_hyperv' from 'clone_runtime_spec_schema_config_windows' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1314:1: note: (17) entry to 'clone_runtime_spec_schema_config_windows_hyperv' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1319:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1321:12: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1321:8: note: (20) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1323:32: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1323:32: note: (22) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1324:12: note: (23) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1324:12: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (25) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1757:23: note: (26) returning to 'clone_runtime_spec_schema_config_windows' from 'clone_runtime_spec_schema_config_windows_hyperv' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1324:12: note: (27) '' leaks here; was allocated at (22) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:319: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:326: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:957: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:963: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:970: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c: In function 'make_runtime_spec_schema_defs_mount': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:437:13: warning: leak of 'make_runtime_spec_schema_defs_id_mapping(val, ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:577:1: note: (1) entry to 'make_runtime_spec_schema_defs_mount' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:582:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:584:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:585:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:589:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:590:12: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:601:24: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:602:12: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:613:24: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:640:12: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:651:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:652:12: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:655:20: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:659:16: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (15) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:661:27: note: (16) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:663:38: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:664:40: note: (18) calling 'make_runtime_spec_schema_defs_id_mapping' from 'make_runtime_spec_schema_defs_mount' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:360:1: note: (19) entry to 'make_runtime_spec_schema_defs_id_mapping' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:365:8: note: (20) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:367:11: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:367:11: note: (22) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:368:8: note: (23) assuming 'calloc(1, 32)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:368:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:372:24: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:373:12: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:394:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:395:12: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:416:24: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:417:12: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:437:13: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:664:40: note: (32) returning to 'make_runtime_spec_schema_defs_mount' from 'make_runtime_spec_schema_defs_id_mapping' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:437:13: note: (33) 'make_runtime_spec_schema_defs_id_mapping(val, ctx, err)' leaks here; was allocated at (22) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:437:13: warning: leak of 'make_runtime_spec_schema_defs_id_mapping(val, ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:577:1: note: (1) entry to 'make_runtime_spec_schema_defs_mount' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:582:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:584:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:585:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:589:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:590:12: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:601:24: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:602:12: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:613:24: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:640:12: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:651:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:674:12: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:677:20: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:681:16: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (15) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:683:27: note: (16) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:685:38: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:686:40: note: (18) calling 'make_runtime_spec_schema_defs_id_mapping' from 'make_runtime_spec_schema_defs_mount' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:360:1: note: (19) entry to 'make_runtime_spec_schema_defs_id_mapping' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:365:8: note: (20) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:367:11: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:367:11: note: (22) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:368:8: note: (23) assuming 'calloc(1, 32)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:368:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:372:24: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:373:12: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:394:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:395:12: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:416:24: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:417:12: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:437:13: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:686:40: note: (32) returning to 'make_runtime_spec_schema_defs_mount' from 'make_runtime_spec_schema_defs_id_mapping' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:437:13: note: (33) 'make_runtime_spec_schema_defs_id_mapping(val, ctx, err)' leaks here; was allocated at (22) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c: In function 'make_runtime_spec_schema_defs_id_mapping': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:485:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:577:1: note: (1) entry to 'make_runtime_spec_schema_defs_mount' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:582:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:584:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:585:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:589:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:590:12: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:601:24: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:602:12: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:613:24: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:640:12: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:651:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:652:12: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:655:20: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:659:16: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (15) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:661:27: note: (16) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:663:38: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:664:40: note: (18) calling 'make_runtime_spec_schema_defs_id_mapping' from 'make_runtime_spec_schema_defs_mount' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:360:1: note: (19) entry to 'make_runtime_spec_schema_defs_id_mapping' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:365:8: note: (20) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:367:11: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:368:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:372:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:373:12: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:394:24: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:395:12: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:416:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:417:12: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:437:13: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:437:8: note: (30) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:441:16: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:444:12: note: (32) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:446:20: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:446:20: note: (34) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:447:16: note: (35) assuming 'resi' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:447:16: note: (36) following 'false' branch (when 'resi' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:450:24: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:452:16: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:457:37: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:458:16: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:465:9: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:465:23: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:482:27: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:485:12: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (45) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:485:12: note: (46) 'resi' leaks here; was allocated at (34) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:485:12: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:577:1: note: (1) entry to 'make_runtime_spec_schema_defs_mount' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:582:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:584:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:585:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:589:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:590:12: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:601:24: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:602:12: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:613:24: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:640:12: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:651:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:652:12: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:655:20: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:659:16: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (15) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:661:27: note: (16) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:663:38: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:664:40: note: (18) calling 'make_runtime_spec_schema_defs_id_mapping' from 'make_runtime_spec_schema_defs_mount' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:360:1: note: (19) entry to 'make_runtime_spec_schema_defs_id_mapping' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:365:8: note: (20) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:367:11: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:368:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:372:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:373:12: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:394:24: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:395:12: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:416:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:417:12: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:437:13: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:437:8: note: (30) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:441:16: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:444:12: note: (32) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:446:20: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:447:16: note: (34) following 'false' branch (when 'resi' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:450:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:451:35: note: (36) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:452:16: note: (37) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:452:16: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:457:37: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:458:16: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:465:9: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:465:23: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:482:27: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:485:12: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (45) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs.c:485:12: note: (46) '' leaks here; was allocated at (36) <--[csmock-gcc-wrapper] make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/runtime_spec_schema_defs_linux.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_defs_linux.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_defs_linux.lo src/ocispec/runtime_spec_schema_defs_linux.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_defs_linux.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_defs_linux.Tpo -c src/ocispec/runtime_spec_schema_defs_linux.c -o src/ocispec/runtime_spec_schema_defs_linux.o /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:212: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:219: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:484: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:798: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1181: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1187: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2119: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2129: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2309: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2663: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2669: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:9, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:8: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c: In function 'make_runtime_spec_schema_defs_linux_syscall': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: warning: leak of 'make_runtime_spec_schema_defs_linux_syscall_arg(val, ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:316:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:491:1: note: (1) entry to 'make_runtime_spec_schema_defs_linux_syscall' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:496:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:498:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:499:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:503:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:530:12: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:541:24: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:542:12: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:563:24: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:564:12: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:567:20: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:571:16: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (13) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:573:27: note: (14) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:575:38: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:576:32: note: (16) calling 'make_runtime_spec_schema_defs_linux_syscall_arg' from 'make_runtime_spec_schema_defs_linux_syscall' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:235:1: note: (17) entry to 'make_runtime_spec_schema_defs_linux_syscall_arg' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:240:8: note: (18) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:242:11: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:242:11: note: (20) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:243:8: note: (21) assuming 'calloc(1, 48)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:243:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:247:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:248:12: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:269:24: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:270:12: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:291:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:292:12: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:313:24: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:314:12: note: (30) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:316:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:318:16: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:323:12: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:323:8: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:330:13: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:576:32: note: (36) returning to 'make_runtime_spec_schema_defs_linux_syscall' from 'make_runtime_spec_schema_defs_linux_syscall_arg' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (37) 'make_runtime_spec_schema_defs_linux_syscall_arg(val, ctx, err)' leaks here; was allocated at (20) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:316:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:330:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:491:1: note: (1) entry to 'make_runtime_spec_schema_defs_linux_syscall' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:496:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:498:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:499:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:503:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:530:12: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:541:24: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:542:12: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:563:24: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:564:12: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:567:20: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:571:16: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (13) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:573:27: note: (14) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:575:38: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:576:32: note: (16) calling 'make_runtime_spec_schema_defs_linux_syscall_arg' from 'make_runtime_spec_schema_defs_linux_syscall' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:235:1: note: (17) entry to 'make_runtime_spec_schema_defs_linux_syscall_arg' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:240:8: note: (18) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:242:11: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:243:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:247:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:248:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:269:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:270:12: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:291:24: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:292:12: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:313:24: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:314:12: note: (28) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:316:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:317:23: note: (30) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:318:16: note: (31) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:318:16: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:323:12: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:323:8: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:330:13: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:576:32: note: (36) returning to 'make_runtime_spec_schema_defs_linux_syscall' from 'make_runtime_spec_schema_defs_linux_syscall_arg' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:330:8: note: (37) '' leaks here; was allocated at (30) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c: In function 'make_runtime_spec_schema_defs_linux_syscall_arg': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:379:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:240:8: note: (1) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:242:11: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:243:8: note: (3) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:247:24: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:314:12: note: (5) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:316:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:318:16: note: (7) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:323:12: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:323:8: note: (9) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:330:13: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:330:8: note: (11) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:334:16: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:337:12: note: (13) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:339:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:339:20: note: (15) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:340:16: note: (16) assuming 'resi' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:340:16: note: (17) following 'false' branch (when 'resi' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:343:24: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:345:16: note: (19) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:350:37: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:351:16: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:358:9: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:358:23: note: (23) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:360:39: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:360:16: note: (25) following 'true' branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:361:20: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:361:17: note: (27) following 'true' branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:362:20: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:362:17: note: (29) following 'true' branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:363:20: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:363:17: note: (31) following 'true' branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:364:20: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:364:20: note: (33) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:366:35: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:358:23: note: (35) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:376:27: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:379:12: note: (37) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (38) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:379:12: note: (39) 'resi' leaks here; was allocated at (15) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c: In function 'clone_runtime_spec_schema_defs_linux_syscall': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:474:21: warning: leak of 'clone_runtime_spec_schema_defs_linux_syscall_arg(*)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:786:1: note: (1) entry to 'clone_runtime_spec_schema_defs_linux_syscall' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:791:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:793:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:793:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:809:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:809:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:815:25: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:817:8: note: (8) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:819:28: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:821:12: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (11) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:823:30: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:825:81: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:825:28: note: (14) calling 'clone_runtime_spec_schema_defs_linux_syscall_arg' from 'clone_runtime_spec_schema_defs_linux_syscall' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:467:1: note: (15) entry to 'clone_runtime_spec_schema_defs_linux_syscall_arg' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:471:11: note: (16) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:472:8: note: (17) assuming 'calloc(1, 48)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:472:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:474:21: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:480:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (21) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:825:28: note: (22) returning to 'clone_runtime_spec_schema_defs_linux_syscall' from 'clone_runtime_spec_schema_defs_linux_syscall_arg' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:474:21: note: (23) 'clone_runtime_spec_schema_defs_linux_syscall_arg(*)' leaks here; was allocated at (16) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:483:12: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:786:1: note: (1) entry to 'clone_runtime_spec_schema_defs_linux_syscall' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:791:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:793:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:793:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:809:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:809:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:815:25: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:817:8: note: (8) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:819:28: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:821:12: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (11) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:823:30: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:825:81: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:825:28: note: (14) calling 'clone_runtime_spec_schema_defs_linux_syscall_arg' from 'clone_runtime_spec_schema_defs_linux_syscall' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:467:1: note: (15) entry to 'clone_runtime_spec_schema_defs_linux_syscall_arg' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:472:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:474:21: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:480:8: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:482:19: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:482:19: note: (20) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:483:12: note: (21) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:483:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (23) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:825:28: note: (24) returning to 'clone_runtime_spec_schema_defs_linux_syscall' from 'clone_runtime_spec_schema_defs_linux_syscall_arg' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:483:12: note: (25) '' leaks here; was allocated at (20) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c: In function 'make_runtime_spec_schema_defs_linux_block_io_device': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1306:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1209:8: note: (1) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1211:11: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1212:8: note: (3) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1216:24: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1239:12: note: (5) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1259:13: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1259:8: note: (7) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1263:16: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1266:12: note: (9) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1268:20: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1268:20: note: (11) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1269:16: note: (12) assuming 'resi' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1269:16: note: (13) following 'false' branch (when 'resi' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1272:24: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1274:16: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1279:37: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1280:16: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1287:9: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1287:23: note: (19) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1289:39: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1289:16: note: (21) following 'true' branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1290:20: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1290:17: note: (23) following 'true' branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1291:20: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1291:20: note: (25) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1293:35: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1287:23: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1303:27: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1306:12: note: (29) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (30) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1306:12: note: (31) 'resi' leaks here; was allocated at (11) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c: In function 'make_runtime_spec_schema_defs_linux_block_io_device_weight': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1532:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1389:8: note: (1) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1391:11: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1392:8: note: (3) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1396:24: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1463:12: note: (5) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1483:13: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1483:8: note: (7) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1487:16: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1490:12: note: (9) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1492:20: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1492:20: note: (11) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1493:16: note: (12) assuming 'resi' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1493:16: note: (13) following 'false' branch (when 'resi' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1496:24: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1498:16: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1503:37: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1504:16: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1511:9: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1511:23: note: (19) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1513:39: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1513:16: note: (21) following 'true' branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1514:20: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1514:17: note: (23) following 'true' branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1515:20: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1515:17: note: (25) following 'true' branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1516:20: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1516:17: note: (27) following 'true' branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1517:20: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1517:20: note: (29) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1519:35: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1511:23: note: (31) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1529:27: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1532:12: note: (33) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (34) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1532:12: note: (35) 'resi' leaks here; was allocated at (11) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c: In function 'make_runtime_spec_schema_defs_linux_block_io_device_throttle': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1763:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1643:8: note: (1) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1645:11: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1646:8: note: (3) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1650:24: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1695:12: note: (5) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1715:13: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1715:8: note: (7) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1719:16: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1722:12: note: (9) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1724:20: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1724:20: note: (11) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1725:16: note: (12) assuming 'resi' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1725:16: note: (13) following 'false' branch (when 'resi' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1728:24: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1730:16: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1735:37: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1736:16: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1743:9: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1743:23: note: (19) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1745:39: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1745:16: note: (21) following 'true' branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1746:20: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1746:17: note: (23) following 'true' branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1747:20: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1747:17: note: (25) following 'true' branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1748:20: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1748:20: note: (27) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1750:35: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1743:23: note: (29) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1760:27: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1763:12: note: (31) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (32) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1763:12: note: (33) 'resi' leaks here; was allocated at (11) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c: In function 'make_runtime_spec_schema_defs_linux_network_interface_priority': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2234:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2141:8: note: (1) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2143:11: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2144:8: note: (3) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2148:24: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2149:12: note: (5) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2151:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2153:16: note: (7) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2160:24: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2161:12: note: (9) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2180:12: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2180:8: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2187:13: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2187:8: note: (13) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2191:16: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2194:12: note: (15) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2196:20: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2196:20: note: (17) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2197:16: note: (18) assuming 'resi' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2197:16: note: (19) following 'false' branch (when 'resi' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2200:24: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2202:16: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2207:37: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2208:16: note: (23) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2215:9: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2215:23: note: (25) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2217:39: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2217:16: note: (27) following 'true' branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2218:20: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2218:17: note: (29) following 'true' branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2219:20: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2219:20: note: (31) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2221:35: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2234:12: note: (33) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (34) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2234:12: note: (35) 'resi' leaks here; was allocated at (17) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c: In function 'make_runtime_spec_schema_defs_linux_rdma': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2420:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2323:8: note: (1) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2325:11: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2326:8: note: (3) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2330:24: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2353:12: note: (5) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2373:13: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2373:8: note: (7) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2377:16: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2380:12: note: (9) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2382:20: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2382:20: note: (11) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2383:16: note: (12) assuming 'resi' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2383:16: note: (13) following 'false' branch (when 'resi' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2386:24: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2388:16: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2393:37: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2394:16: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2401:9: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2401:23: note: (19) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2403:39: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2403:16: note: (21) following 'true' branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2404:20: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2404:17: note: (23) following 'true' branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2405:20: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2405:20: note: (25) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2407:35: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2401:23: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2417:27: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2420:12: note: (29) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (30) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2420:12: note: (31) 'resi' leaks here; was allocated at (11) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c: In function 'make_runtime_spec_schema_defs_linux_namespace_reference': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2586:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2503:8: note: (1) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2505:11: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2506:8: note: (3) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2510:24: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2511:12: note: (5) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2513:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2515:16: note: (7) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2522:24: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2523:12: note: (9) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2532:12: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2532:8: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2539:13: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2539:8: note: (13) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2543:16: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2546:12: note: (15) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2548:20: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2548:20: note: (17) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2549:16: note: (18) assuming 'resi' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2549:16: note: (19) following 'false' branch (when 'resi' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2552:24: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2554:16: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2559:37: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2560:16: note: (23) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2567:9: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2567:23: note: (25) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2569:39: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2569:16: note: (27) following 'true' branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2570:20: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2570:17: note: (29) following 'true' branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2571:20: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2571:20: note: (31) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2573:35: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2586:12: note: (33) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (34) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2586:12: note: (35) 'resi' leaks here; was allocated at (17) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c: In function 'make_runtime_spec_schema_defs_linux_time_offsets': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2778:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2681:8: note: (1) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2683:11: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2684:8: note: (3) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2688:24: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2711:12: note: (5) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2731:13: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2731:8: note: (7) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2735:16: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2738:12: note: (9) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2740:20: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2740:20: note: (11) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_lmake[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/runtime_spec_schema_defs_vm.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_defs_vm.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_defs_vm.lo src/ocispec/runtime_spec_schema_defs_vm.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_defs_vm.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_defs_vm.Tpo -c src/ocispec/runtime_spec_schema_defs_vm.c -o src/ocispec/runtime_spec_schema_defs_vm.o make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/runtime_spec_schema_defs_windows.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_defs_windows.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_defs_windows.lo src/ocispec/runtime_spec_schema_defs_windows.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_defs_windows.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_defs_windows.Tpo -c src/ocispec/runtime_spec_schema_defs_windows.c -o src/ocispec/runtime_spec_schema_defs_windows.o make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/runtime_spec_schema_state_schema.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_state_schema.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_state_schema.lo src/ocispec/runtime_spec_schema_state_schema.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_state_schema.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_state_schema.Tpo -c src/ocispec/runtime_spec_schema_state_schema.c -o src/ocispec/runtime_spec_schema_state_schema.o make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/image_manifest_items_image_manifest_items_schema.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/image_manifest_items_image_manifest_items_schema.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/image_manifest_items_image_manifest_items_schema.lo src/ocispec/image_manifest_items_image_manifest_items_schema.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/image_manifest_items_image_manifest_items_schema.lo -MD -MP -MF src/ocispec/.deps/image_manifest_items_image_manifest_items_schema.Tpo -c src/ocispec/image_manifest_items_image_manifest_items_schema.c -o src/ocispec/image_manifest_items_image_manifest_items_schema.o make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/runtime_spec_schema_features_schema.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_features_schema.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_features_schema.lo src/ocispec/runtime_spec_schema_features_schema.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_features_schema.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_features_schema.Tpo -c src/ocispec/runtime_spec_schema_features_schema.c -o src/ocispec/runtime_spec_schema_features_schema.o make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/basic_test_double_array_item.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_double_array_item.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/basic_test_double_array_item.lo src/ocispec/basic_test_double_array_item.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_double_array_item.lo -MD -MP -MF src/ocispec/.deps/basic_test_double_array_item.Tpo -c src/ocispec/basic_test_double_array_item.c -o src/ocispec/basic_test_double_array_item.o inux.c:2741:16: note: (12) assuming 'resi' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2741:16: note: (13) following 'false' branch (when 'resi' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2744:24: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2746:16: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2751:37: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2752:16: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2759:9: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2759:23: note: (19) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2761:39: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2761:16: note: (21) following 'true' branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2762:20: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2762:17: note: (23) following 'true' branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2763:20: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2763:20: note: (25) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2765:35: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2759:23: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2775:27: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2778:12: note: (29) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (30) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2778:12: note: (31) 'resi' leaks here; was allocated at (11) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c: In function 'make_runtime_spec_schema_defs_windows_device': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:185: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:191: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:108:12: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:19:8: note: (1) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:21:11: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:22:8: note: (3) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:26:24: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:27:12: note: (5) following 'true' branch... <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:9, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:8: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:31:16: note: (7) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:38:24: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:39:12: note: (9) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:41:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:43:16: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:48:12: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:48:8: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:54:12: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:54:8: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:61:13: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:61:8: note: (17) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:65:16: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:68:12: note: (19) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:70:20: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:71:16: note: (21) following 'false' branch (when 'resi' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:74:24: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:75:35: note: (23) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:76:16: note: (24) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:76:16: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:81:37: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:82:16: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:89:9: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:108:12: note: (29) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (30) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:108:12: note: (31) '' leaks here; was allocated at (23) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:108:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:19:8: note: (1) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:21:11: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:22:8: note: (3) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:26:24: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:27:12: note: (5) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:31:16: note: (7) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:38:24: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:39:12: note: (9) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:41:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:43:16: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:48:12: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:48:8: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:54:12: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:54:8: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:61:13: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:61:8: note: (17) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:65:16: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:68:12: note: (19) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:70:20: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:70:20: note: (21) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:71:16: note: (22) assuming 'resi' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:71:16: note: (23) following 'false' branch (when 'resi' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:74:24: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:76:16: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:81:37: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:82:16: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:89:9: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:108:12: note: (29) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (30) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:108:12: note: (31) 'resi' leaks here; was allocated at (21) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_state_schema.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_state_schema.c:316: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_state_schema.c:322: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_state_schema.c:328: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_state_schema.c:336: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_state_schema.c:340: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:256: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:263: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:318: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:431: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:437: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:444: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:9, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:8: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c: In function 'runtime_spec_schema_features_schema_parse_data': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: warning: leak of 'make_runtime_spec_schema_features_schema(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:539:40: note: (1) entry to 'runtime_spec_schema_features_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:545:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:548:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:553:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:559:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:559:7: note: (6) calling 'make_runtime_spec_schema_features_schema' from 'runtime_spec_schema_features_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:14:1: note: (7) entry to 'make_runtime_spec_schema_features_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:21:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:21:11: note: (10) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:22:8: note: (11) assuming 'calloc(1, 88)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:22:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:26:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:27:12: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:31:16: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:38:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:39:12: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:41:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:43:16: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:50:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:103:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:120:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:147:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:153:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:153:8: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:160:13: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:559:7: note: (28) returning to 'runtime_spec_schema_features_schema_parse_data' from 'make_runtime_spec_schema_features_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (29) 'make_runtime_spec_schema_features_schema(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' leaks here; was allocated at (10) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:160:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:539:40: note: (1) entry to 'runtime_spec_schema_features_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:545:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:548:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:553:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:559:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:559:7: note: (6) calling 'make_runtime_spec_schema_features_schema' from 'runtime_spec_schema_features_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:14:1: note: (7) entry to 'make_runtime_spec_schema_features_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:21:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:22:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:26:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:27:12: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:30:36: note: (14) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:31:16: note: (15) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:31:16: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:38:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:39:12: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:41:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:43:16: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:50:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:103:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:120:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:147:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:153:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:153:8: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:160:13: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:559:7: note: (28) returning to 'runtime_spec_schema_features_schema_parse_data' from 'make_runtime_spec_schema_features_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:160:8: note: (29) '' leaks here; was allocated at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c: In function 'make_runtime_spec_schema_features_schema': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:212:12: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:539:40: note: (1) entry to 'runtime_spec_schema_features_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:545:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:548:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:553:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:559:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:559:7: note: (6) calling 'make_runtime_spec_schema_features_schema' from 'runtime_spec_schema_features_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:14:1: note: (7) entry to 'make_runtime_spec_schema_features_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:21:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:22:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:26:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:27:12: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:31:16: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:38:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:39:12: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:41:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:43:16: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:50:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:103:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:120:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:147:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:153:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:153:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:160:13: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:160:8: note: (26) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:164:16: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:167:12: note: (28) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:169:20: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:170:16: note: (30) following 'false' branch (when 'resi' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:173:24: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:174:35: note: (32) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:175:16: note: (33) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:175:16: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:180:37: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:181:16: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:188:9: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:212:12: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (39) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:212:12: note: (40) '' leaks here; was allocated at (32) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:212:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:539:40: note: (1) entry to 'runtime_spec_schema_features_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:545:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:548:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:553:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:559:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:559:7: note: (6) calling 'make_runtime_spec_schema_features_schema' from 'runtime_spec_schema_features_schema_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:14:1: note: (7) entry to 'make_runtime_spec_schema_features_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:21:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:22:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:26:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:27:12: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:31:16: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:38:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:39:12: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:41:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:43:16: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:50:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:103:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:120:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:147:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:153:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:153:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:160:13: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:160:8: note: (26) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:164:16: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:167:12: note: (28) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:169:20: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:169:20: note: (30) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:170:16: note: (31) assuming 'resi' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:170:16: note: (32) following 'false' branch (when 'resi' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:173:24: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:175:16: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:180:37: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:181:16: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:188:9: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:212:12: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (39) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:212:12: note: (40) 'resi' leaks here; was allocated at (30) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:214: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:9, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:8: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c: In function 'basic_test_double_array_item_parse_data': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: warning: leak of 'make_basic_test_double_array_item(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:63:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:263:33: note: (1) entry to 'basic_test_double_array_item_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:269:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:272:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:277:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:283:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:283:7: note: (6) calling 'make_basic_test_double_array_item' from 'basic_test_double_array_item_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:14:1: note: (7) entry to 'make_basic_test_double_array_item' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:21:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:21:11: note: (10) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:22:8: note: (11) assuming 'calloc(1, 32)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:22:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:26:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:27:12: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:38:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:39:12: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:60:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:61:12: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:63:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:283:7: note: (20) returning to 'basic_test_double_array_item_parse_data' from 'make_basic_test_double_array_item' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (21) 'make_basic_test_double_array_item(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' leaks here; was allocated at (10) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:63:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c: In function 'basic_test_double_array_item_parse_file_stream': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: warning: leak of 'basic_test_double_array_item_parse_data(fread_file(stream, & filesize), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:63:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:243:1: note: (1) entry to 'basic_test_double_array_item_parse_file_stream' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:248:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:251:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:253:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:258:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:258:7: note: (6) calling 'basic_test_double_array_item_parse_data' from 'basic_test_double_array_item_parse_file_stream' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:263:33: note: (7) entry to 'basic_test_double_array_item_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:269:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:272:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:277:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:283:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:283:7: note: (12) calling 'make_basic_test_double_array_item' from 'basic_test_double_array_item_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:14:1: note: (13) entry to 'make_basic_test_double_array_item' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:19:8: note: (14) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:21:11: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:21:11: note: (16) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:22:8: note: (17) assuming 'calloc(1, 32)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:22:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:26:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:27:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:38:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:39:12: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:60:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:61:12: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:63:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:283:7: note: (26) returning to 'basic_test_double_array_item_parse_data' from 'make_basic_test_double_array_item' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:265:84: note: (27) inlined call to 'yajl_tree_free_function' from 'basic_test_double_array_item_parse_data' <--[csmock-gcc-wrapper] In function 'yajl_tree_free_function', inlined from 'basic_test_double_array_item_parse_data' at src/ocispec/basic_test_double_array_item.c:265:84: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:41:8: note: (28) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:261:1: note: in expansion of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:261:36: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c: In function 'basic_test_double_array_item_parse_file_stream': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:258:7: note: (30) returning to 'basic_test_double_array_item_parse_file_stream' from 'basic_test_double_array_item_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (31) 'basic_test_double_array_item_parse_data(fread_file(stream, & filesize), ctx, err)' leaks here; was allocated at (16) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:63:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c: In function 'basic_test_double_array_item_parse_data': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:78:13: warning: leak of 'make_basic_test_double_array_item(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:263:33: note: (1) entry to 'basic_test_double_array_item_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:269:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:272:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:277:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:283:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:283:7: note: (6) calling 'make_basic_test_double_array_item' from 'basic_test_double_array_item_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:14:1: note: (7) entry to 'make_basic_test_double_array_item' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:21:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:21:11: note: (10) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:22:8: note: (11) assuming 'calloc(1, 32)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:22:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:26:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:27:12: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:38:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:39:12: note: (16) following 'falmake[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/runtime_spec_schema_features_linux.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_features_linux.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_features_linux.lo src/ocispec/runtime_spec_schema_features_linux.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_features_linux.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_features_linux.Tpo -c src/ocispec/runtime_spec_schema_features_linux.c -o src/ocispec/runtime_spec_schema_features_linux.o make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/basic_test_double_array.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_double_array.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/basic_test_double_array.lo src/ocispec/basic_test_double_array.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_double_array.lo -MD -MP -MF src/ocispec/.deps/basic_test_double_array.Tpo -c src/ocispec/basic_test_double_array.c -o src/ocispec/basic_test_double_array.o se' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:60:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:61:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:68:19: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:69:16: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:78:13: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:283:7: note: (22) returning to 'basic_test_double_array_item_parse_data' from 'make_basic_test_double_array_item' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array_item.c:78:13: note: (23) 'make_basic_test_double_array_item(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' leaks here; was allocated at (10) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:766: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1422: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1435: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1442: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1448: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1533: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1886: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:9, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:8: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c: In function 'make_runtime_spec_schema_features_linux': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: warning: leak of 'make_runtime_spec_schema_features_linux_cgroup(get_val(tree, "cgroup", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:29:23: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1540:1: note: (1) entry to 'make_runtime_spec_schema_features_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1545:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1547:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1548:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1552:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1602:19: note: (6) calling 'make_runtime_spec_schema_features_linux_cgroup' from 'make_runtime_spec_schema_features_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:14:1: note: (7) entry to 'make_runtime_spec_schema_features_linux_cgroup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:21:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:21:11: note: (10) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:22:8: note: (11) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:22:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:26:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:27:12: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:29:23: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:46:12: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:48:23: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:65:12: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:67:28: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:84:12: note: (20) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:86:33: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:103:12: note: (22) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:105:25: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1602:19: note: (24) returning to 'make_runtime_spec_schema_features_linux' from 'make_runtime_spec_schema_features_linux_cgroup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (25) 'make_runtime_spec_schema_features_linux_cgroup(get_val(tree, "cgroup", 3), ctx, err)' leaks here; was allocated at (10) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:29:23: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: warning: leak of 'make_runtime_spec_schema_features_linux_cgroup(get_val(tree, "cgroup", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:48:23: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1540:1: note: (1) entry to 'make_runtime_spec_schema_features_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1545:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1547:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1548:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1552:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1602:19: note: (6) calling 'make_runtime_spec_schema_features_linux_cgroup' from 'make_runtime_spec_schema_features_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:14:1: note: (7) entry to 'make_runtime_spec_schema_features_linux_cgroup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:21:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:21:11: note: (10) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:22:8: note: (11) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:22:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:26:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:27:12: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:34:19: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:35:16: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:45:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:46:12: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:48:23: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:65:12: note: (20) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:67:28: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:84:12: note: (22) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:86:33: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:103:12: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:105:25: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1602:19: note: (26) returning to 'make_runtime_spec_schema_features_linux' from 'make_runtime_spec_schema_features_linux_cgroup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (27) 'make_runtime_spec_schema_features_linux_cgroup(get_val(tree, "cgroup", 3), ctx, err)' leaks here; was allocated at (10) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:48:23: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: warning: leak of 'make_runtime_spec_schema_features_linux_cgroup(get_val(tree, "cgroup", 3), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:67:28: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1540:1: note: (1) entry to 'make_runtime_spec_schema_features_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1545:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1547:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1548:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1552:24: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1602:19: note: (6) calling 'make_runtime_spec_schema_features_linux_cgroup' from 'make_runtime_spec_schema_features_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:14:1: note: (7) entry to 'make_runtime_spec_schema_features_linux_cgroup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:21:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:21:11: note: (10) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:22:8: note: (11) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:22:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:26:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:27:12: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:34:19: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:35:16: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:45:24: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:46:12: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:53:19: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:54:16: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:64:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:65:12: note: (22) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:67:28: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:84:12: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:86:33: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:103:12: note: (26) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:105:25: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1602:19: note: (28) returning to 'make_runtime_spec_schema_features_linux' from 'make_runtime_spec_schema_features_linux_cgroup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (29) 'make_runtime_spec_schema_features_linux_cgroup(get_val(tree, "cgroup", 3), ctx, err)' leaks here; was allocated at (10) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:67:28: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c: In function 'clone_runtime_spec_schema_features_linux': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:759:23: warning: leak of 'clone_runtime_spec_schema_features_linux_seccomp(*src.seccomp)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1874:1: note: (1) entry to 'clone_runtime_spec_schema_features_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1879:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1881:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1881:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1897:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1897:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1913:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1913:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1919:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1919:8: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1921:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1921:24: note: (12) calling 'clone_runtime_spec_schema_features_linux_seccomp' from 'clone_runtime_spec_schema_features_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:752:1: note: (13) entry to 'clone_runtime_spec_schema_features_linux_seccomp' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:756:11: note: (14) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:757:8: note: (15) assuming 'calloc(1, 104)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:757:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:759:23: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:761:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:777:12: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:777:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:793:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:793:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:809:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:809:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:825:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:825:8: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1921:24: note: (28) returning to 'clone_runtime_spec_schema_features_linux' from 'clone_runtime_spec_schema_features_linux_seccomp' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:759:23: note: (29) 'clone_runtime_spec_schema_features_linux_seccomp(*src.seccomp)' leaks here; was allocated at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:825:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1874:1: note: (1) entry to 'clone_runtime_spec_schema_features_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1879:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1881:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1881:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1897:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1897:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1913:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1913:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1919:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1919:8: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1921:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1921:24: note: (12) calling 'clone_runtime_spec_schema_features_linux_seccomp' from 'clone_runtime_spec_schema_features_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:752:1: note: (13) entry to 'clone_runtime_spec_schema_features_linux_seccomp' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:757:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:759:23: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:761:8: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:763:31: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:764:24: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:765:12: note: (19) assuming 'calloc(*src.actions_len + 1, 8)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:765:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (21) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:777:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:793:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:793:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:809:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:809:8: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:825:12: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:825:8: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (29) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1921:24: note: (30) returning to 'clone_runtime_spec_schema_features_linux' from 'clone_runtime_spec_schema_features_linux_seccomp' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:825:8: note: (31) '' leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1529:12: warning: leak of 'clone_runtime_spec_schema_features_linux_mount_extensions(*src.mount_extensions)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1874:1: note: (1) entry to 'clone_runtime_spec_schema_features_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1879:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1881:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1881:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1897:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1897:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1913:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1913:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1919:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1919:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1925:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1925:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1931:12: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1931:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1937:12: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1937:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1943:12: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1943:8: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1945:33: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1945:33: note: (20) calling 'clone_runtime_spec_schema_features_linux_mount_extensions' from 'clone_runtime_spec_schema_features_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1522:1: note: (21) entry to 'clone_runtime_spec_schema_features_linux_mount_extensions' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1526:11: note: (22) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1527:8: note: (23) assuming 'calloc(1, 16)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1527:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1529:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1529:8: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1945:33: note: (28) returning to 'clone_runtime_spec_schema_features_linux' from 'clone_runtime_spec_schema_features_linux_mount_extensions' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1529:12: note: (29) 'clone_runtime_spec_schema_features_linux_mount_extensions(*src.mount_extensions)' leaks here; was allocated at (22) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1532:12: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1874:1: note: (1) entry to 'clone_runtime_spec_schema_features_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1879:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1881:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1881:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1897:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1897:8: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1913:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1913:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1919:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1919:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1925:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1925:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1931:12: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1931:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1937:12: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1937:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1943:12: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1943:8: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1945:33: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1945:33: note: (20) calling 'clone_runtime_spec_schema_features_linux_mount_extensions' from 'clone_runtime_spec_schema_features_linux' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1522:1: note: (21) entry to 'clone_runtime_spec_schema_features_linux_mount_extensions' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1527:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1529:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1529:8: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1531:22: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1531:22: note: (26) calling 'clone_runtime_spec_schema_features_linux_mount_extensions_idmap' from 'clone_runtime_spec_schema_features_linux_mount_extensions' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1396:1: note: (27) entry to 'clone_runtime_spec_schema_features_linux_mount_extensions_idmap' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1400:11: note: (28) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1401:8: note: (29) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1401:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1403:23: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1531:22: note: (32) returning to 'clone_runtime_spec_schema_features_linux_mount_extensions' from 'clone_runtime_spec_schema_features_linux_mount_extensions_idmap' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1532:12: note: (33) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (34) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1945:33: note: (35) returning to 'clone_runtime_spec_schema_features_linux' from 'clone_runtime_spec_schema_features_linux_mount_extensions' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1532:12: note: (36) '' leaks here; was allocated at (28) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:9, <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:122: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:675: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:8: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c: In function 'make_basic_test_double_array': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: warning: leak of 'make_basic_test_double_array_objectarrays_element(*, ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:29:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:794:28: note: (1) entry to 'basic_test_double_array_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:800:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:803:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:808:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (6) calling 'make_basic_test_double_array' from 'basic_test_double_array_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:129:1: note: (7) entry to 'make_basic_test_double_array' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:134:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:141:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:262:12: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:265:20: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:269:16: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:271:43: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:272:16: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (17) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:274:27: note: (18) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:276:38: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:279:20: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:281:27: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:282:31: note: (22) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:284:103: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:284:47: note: (24) calling 'make_basic_test_double_array_objectarrays_element' from 'make_basic_test_double_array' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:14:1: note: (25) entry to 'make_basic_test_double_array_objectarrays_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:19:8: note: (26) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:21:11: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:21:11: note: (28) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:22:8: note: (29) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:22:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:26:24: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:27:12: note: (32) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:29:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:46:12: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (35) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:284:47: note: (36) returning to 'make_basic_test_double_array' from 'make_basic_test_double_array_objectarrays_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (37) 'make_basic_test_double_array_objectarrays_element(*, ctx, err)' leaks here; was allocated at (28) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:29:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:46:12: warning: leak of 'make_basic_test_double_array_objectarrays_element(*, ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:794:28: note: (1) entry to 'basic_test_double_array_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:800:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:803:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:808:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (6) calling 'make_basic_test_double_array' from 'basic_test_double_array_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:129:1: note: (7) entry to 'make_basic_test_double_array' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:134:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:141:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:262:12: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:265:20: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:269:16: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:271:43: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:272:16: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (17) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:274:27: note: (18) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:276:38: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:279:20: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:281:27: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:282:31: note: (22) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:284:103: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:284:47: note: (24) calling 'make_basic_test_double_array_objectarrays_element' from 'make_basic_test_double_array' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:14:1: note: (25) entry to 'make_basic_test_double_array_objectarrays_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:19:8: note: (26) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:21:11: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:21:11: note: (28) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:22:8: note: (29) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:22:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:26:24: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:27:12: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:34:19: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:35:16: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:45:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:46:12: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (37) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:284:47: note: (38) returning to 'make_basic_test_double_array' from 'make_basic_test_double_array_objectarrays_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:46:12: note: (39) 'make_basic_test_double_array_objectarrays_element(*, ctx, err)' leaks here; was allocated at (28) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: warning: leak of 'make_basic_test_double_array_objectarrays_element(*, ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:48:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:794:28: note: (1) entry to 'basic_test_double_array_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:800:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:803:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:808:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (6) calling 'make_basic_test_double_array' from 'basic_test_double_array_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:129:1: note: (7) entry to 'make_basic_test_double_array' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:134:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:141:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:262:12: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:265:20: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:269:16: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:271:43: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:272:16: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (17) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:274:27: note: (18) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:276:38: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:279:20: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:281:27: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:282:31: note: (22) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:284:103: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:284:47: note: (24) calling 'make_basic_test_double_array_objectarrays_element' from 'make_basic_test_double_array' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:14:1: note: (25) entry to 'make_basic_test_double_array_objectarrays_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:19:8: note: (26) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:21:11: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:21:11: note: (28) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:22:8: note: (29) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:22:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:26:24: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:27:12: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:34:19: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:35:16: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:45:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:46:12: note: (36) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:48:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:50:16: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (39) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:284:47: note: (40) returning to 'make_basic_test_double_array' from 'make_basic_test_double_array_objectarrays_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (41) 'make_basic_test_double_array_objectarrays_element(*, ctx, err)' leaks here; was allocated at (28) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:48:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:50:16: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:794:28: note: (1) entry to 'basic_test_double_array_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:800:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:803:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:808:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (6) calling 'make_basic_test_double_array' from 'basic_test_double_array_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:129:1: note: (7) entry to 'make_basic_test_double_array' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/basic_test_top_array_int.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_top_array_int.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/basic_test_top_array_int.lo src/ocispec/basic_test_top_array_int.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_top_array_int.lo -MD -MP -MF src/ocispec/.deps/basic_test_top_array_int.Tpo -c src/ocispec/basic_test_top_array_int.c -o src/ocispec/basic_test_top_array_int.o make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/basic_test_top_array_string.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_top_array_string.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/basic_test_top_array_string.lo src/ocispec/basic_test_top_array_string.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_top_array_string.lo -MD -MP -MF src/ocispec/.deps/basic_test_top_array_string.Tpo -c src/ocispec/basic_test_top_array_string.c -o src/ocispec/basic_test_top_array_string.o make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo tests/test-2.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT tests/test-2.o -MD -MP -MF $depbase.Tpo -c -o tests/test-2.o tests/test-2.c &&\ mv -f $depbase.Tpo $depbase.Po make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo tests/test-1.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT tests/test-1.o -MD -MP -MF $depbase.Tpo -c -o tests/test-1.o tests/test-1.c &&\ mv -f $depbase.Tpo $depbase.Po make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo tests/test-3.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT tests/test-3.o -MD -MP -MF $depbase.Tpo -c -o tests/test-3.o tests/test-3.c &&\ mv -f $depbase.Tpo $depbase.Po make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/read-file.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/read-file.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/read-file.lo src/ocispec/read-file.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/read-file.lo -MD -MP -MF src/ocispec/.deps/read-file.Tpo -c src/ocispec/read-file.c -o src/ocispec/read-file.o make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo tests/test-5.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT tests/test-5.o -MD -MP -MF $depbase.Tpo -c -o tests/test-5.o tests/test-5.c &&\ mv -f $depbase.Tpo $depbase.Po make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo tests/test-4.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT tests/test-4.o -MD -MP -MF $depbase.Tpo -c -o tests/test-4.o tests/test-4.c &&\ mv -f $depbase.Tpo $depbase.Po make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo tests/test-6.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT tests/test-6.o -MD -MP -MF $depbase.Tpo -c -o tests/test-6.o tests/test-6.c &&\ mv -f $depbase.Tpo $depbase.Po make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo tests/test-7.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT tests/test-7.o -MD -MP -MF $depbase.Tpo -c -o tests/test-7.o tests/test-7.c &&\ mv -f $depbase.Tpo $depbase.Po make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/basic_test_top_double_array_string.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_top_double_array_string.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/basic_test_top_double_array_string.lo src/ocispec/basic_test_top_double_array_string.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_top_double_array_string.lo -MD -MP -MF src/ocispec/.deps/basic_test_top_double_array_string.Tpo -c src/ocispec/basic_test_top_double_array_string.c -o src/ocispec/basic_test_top_double_array_string.o -build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:134:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:141:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:262:12: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:265:20: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:269:16: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:271:43: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:272:16: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (17) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:274:27: note: (18) following 'true' branch (when 'i < len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:276:38: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:279:20: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:281:27: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:282:31: note: (22) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:284:103: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:284:47: note: (24) calling 'make_basic_test_double_array_objectarrays_element' from 'make_basic_test_double_array' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:14:1: note: (25) entry to 'make_basic_test_double_array_objectarrays_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:19:8: note: (26) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:21:11: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:22:8: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:26:24: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:27:12: note: (30) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:29:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:46:12: note: (32) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:150:49: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:48:25: note: in expansion of macro 'YAJL_GET_STRING' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:49:27: note: (34) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:50:16: note: (35) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:50:16: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (37) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:284:47: note: (38) returning to 'make_basic_test_double_array' from 'make_basic_test_double_array_objectarrays_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:50:16: note: (39) '' leaks here; was allocated at (34) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c: In function 'basic_test_double_array_parse_data': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: warning: leak of 'make_basic_test_double_array(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:142:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:794:28: note: (1) entry to 'basic_test_double_array_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:800:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:803:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:808:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (6) calling 'make_basic_test_double_array' from 'basic_test_double_array_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:129:1: note: (7) entry to 'make_basic_test_double_array' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:134:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (10) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (11) assuming 'calloc(1, 128)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:141:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:142:12: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:145:20: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:149:16: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:151:40: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:152:16: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (19) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:154:27: note: (20) following 'false' branch (when 'i >= len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:179:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (22) returning to 'basic_test_double_array_parse_data' from 'make_basic_test_double_array' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (23) 'make_basic_test_double_array(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' leaks here; was allocated at (10) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:142:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: warning: leak of 'make_basic_test_double_array(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:180:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:794:28: note: (1) entry to 'basic_test_double_array_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:800:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:803:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:808:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (6) calling 'make_basic_test_double_array' from 'basic_test_double_array_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:129:1: note: (7) entry to 'make_basic_test_double_array' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:134:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (10) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (11) assuming 'calloc(1, 128)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:141:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:180:12: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:183:20: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:187:16: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:189:40: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:190:16: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (19) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:192:27: note: (20) following 'false' branch (when 'i >= len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:226:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (22) returning to 'basic_test_double_array_parse_data' from 'make_basic_test_double_array' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (23) 'make_basic_test_double_array(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' leaks here; was allocated at (10) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:180:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:328:8: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:794:28: note: (1) entry to 'basic_test_double_array_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:800:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:803:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:808:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (6) calling 'make_basic_test_double_array' from 'basic_test_double_array_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:129:1: note: (7) entry to 'make_basic_test_double_array' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:134:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:141:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:142:12: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:145:20: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:148:30: note: (14) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:149:16: note: (15) assuming 'calloc(len + 1, 8)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:149:16: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:151:40: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:152:16: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (19) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:154:27: note: (20) following 'false' branch (when 'i >= len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:179:24: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (22) returning to 'basic_test_double_array_parse_data' from 'make_basic_test_double_array' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:328:8: note: (23) '' leaks here; was allocated at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:328:13: warning: leak of 'make_basic_test_double_array(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:794:28: note: (1) entry to 'basic_test_double_array_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:800:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:803:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:808:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (6) calling 'make_basic_test_double_array' from 'basic_test_double_array_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:129:1: note: (7) entry to 'make_basic_test_double_array' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:134:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (10) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (11) assuming 'calloc(1, 128)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:141:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (14) returning to 'basic_test_double_array_parse_data' from 'make_basic_test_double_array' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:328:13: note: (15) 'make_basic_test_double_array(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' leaks here; was allocated at (10) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c: In function 'free_basic_test_double_array': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:395:53: warning: dereference of NULL '*ptr.strarrays_item_lens + i * 8' [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:794:28: note: (1) entry to 'basic_test_double_array_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:800:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:803:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:808:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (6) calling 'make_basic_test_double_array' from 'basic_test_double_array_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:129:1: note: (7) entry to 'make_basic_test_double_array' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:134:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:141:24: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:142:12: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:145:20: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:149:16: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:151:40: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:151:40: note: (16) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:152:16: note: (17) assuming '' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:152:16: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:131:75: note: (19) inlined call to 'free_basic_test_double_array_function' from 'make_basic_test_double_array' <--[csmock-gcc-wrapper] In function 'free_basic_test_double_array_function', inlined from 'make_basic_test_double_array' at src/ocispec/basic_test_double_array.c:131:75: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:127:53: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:127:53: note: (21) calling 'free_basic_test_double_array' from 'make_basic_test_double_array' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c: In function 'free_basic_test_double_array': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:385:1: note: (22) entry to 'free_basic_test_double_array' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:387:8: note: (23) following 'false' branch (when 'ptr' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:389:12: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:389:8: note: (25) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (26) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:392:23: note: (27) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (28) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_double_array.c:395:53: note: (29) dereference of NULL '*ptr.strarrays_item_lens + i * 8' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:31: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c: In function 'basic_test_top_array_int_container_parse_data': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:20:15: warning: leak of 'make_basic_test_top_array_int_container(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:153:39: note: (1) entry to 'basic_test_top_array_int_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:159:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:162:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:167:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (6) calling 'make_basic_test_top_array_int_container' from 'basic_test_top_array_int_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:15:2: note: (7) entry to 'make_basic_test_top_array_int_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:20:9: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:22:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:24:8: note: (10) following 'false' branch (when 'alen != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:26:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:26:11: note: (12) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:27:8: note: (13) assuming 'calloc(1, 16)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:27:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:29:18: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:30:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:32:14: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (18) returning to 'basic_test_top_array_int_container_parse_data' from 'make_basic_test_top_array_int_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:20:15: note: (19) 'make_basic_test_top_array_int_container(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' leaks here; was allocated at (12) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:35:19: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:153:39: note: (1) entry to 'basic_test_top_array_int_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:159:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:162:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:167:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (6) calling 'make_basic_test_top_array_int_container' from 'basic_test_top_array_int_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:15:2: note: (7) entry to 'make_basic_test_top_array_int_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:20:9: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:22:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:24:8: note: (10) following 'false' branch (when 'alen != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:26:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:27:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:29:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:29:18: note: (14) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:30:8: note: (15) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:30:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:32:14: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (18) returning to 'basic_test_top_array_int_container_parse_data' from 'make_basic_test_top_array_int_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:35:19: note: (19) '' leaks here; was allocated at (14) <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:8: <--[csmock-gcc-wrapper] In function 'yajl_tree_free_function', inlined from 'basic_test_top_array_int_container_parse_data' at src/ocispec/basic_test_top_array_int.c:155:90: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:151:36: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c: In function 'basic_test_top_array_int_container_parse_file_stream': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:133:1: note: (1) entry to 'basic_test_top_array_int_container_parse_file_stream' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:138:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:141:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:143:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:148:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:148:7: note: (6) calling 'basic_test_top_array_int_container_parse_data' from 'basic_test_top_array_int_container_parse_file_stream' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:153:39: note: (7) entry to 'basic_test_top_array_int_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:159:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:162:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:167:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (12) calling 'make_basic_test_top_array_int_container' from 'basic_test_top_array_int_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:15:2: note: (13) entry to 'make_basic_test_top_array_int_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:20:9: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:22:10: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:24:8: note: (16) following 'false' branch (when 'alen != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:26:11: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:27:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:29:18: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:29:18: note: (20) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:30:8: note: (21) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:30:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:32:14: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (24) returning to 'basic_test_top_array_int_container_parse_data' from 'make_basic_test_top_array_int_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:155:90: note: (25) inlined call to 'yajl_tree_free_function' from 'basic_test_top_array_int_container_parse_data' <--[csmock-gcc-wrapper] In function 'yajl_tree_free_function', inlined from 'basic_test_top_array_int_container_parse_data' at src/ocispec/basic_test_top_array_int.c:155:90: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:41:8: note: (26) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:151:1: note: in expansion of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:151:36: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c: In function 'basic_test_top_array_int_container_parse_file_stream': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:148:7: note: (28) returning to 'basic_test_top_array_int_container_parse_file_stream' from 'basic_test_top_array_int_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:155:90: note: (29) inlined call to 'yajl_tree_free_function' from 'basic_test_top_array_int_container_parse_data' <--[csmock-gcc-wrapper] In function 'yajl_tree_free_function', inlined from 'basic_test_top_array_int_container_parse_data' at src/ocispec/basic_test_top_array_int.c:155:90: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:151:36: note: (30) '' leaks here; was allocated at (20) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c: In function 'basic_test_top_array_int_container_parse_file_stream': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:159:18: warning: leak of 'basic_test_top_array_int_container_parse_data(fread_file(stream, & filesize), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:133:1: note: (1) entry to 'basic_test_top_array_int_container_parse_file_stream' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:138:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:141:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:143:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:148:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:148:7: note: (6) calling 'basic_test_top_array_int_container_parse_data' from 'basic_test_top_array_int_container_parse_file_stream' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:153:39: note: (7) entry to 'basic_test_top_array_int_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:159:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:162:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:167:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (12) calling 'make_basic_test_top_array_int_container' from 'basic_test_top_array_int_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:15:2: note: (13) entry to 'make_basic_test_top_array_int_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:20:9: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:22:10: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:24:8: note: (16) following 'false' branch (when 'alen != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:26:11: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:26:11: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:27:8: note: (19) assuming 'calloc(1, 16)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:27:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:29:18: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:30:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:32:14: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (24) returning to 'basic_test_top_array_int_container_parse_data' from 'make_basic_test_top_array_int_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:155:90: note: (25) inlined call to 'yajl_tree_free_function' from 'basic_test_top_array_int_container_parse_data' <--[csmock-gcc-wrapper] In function 'yajl_tree_free_function', inlined from 'basic_test_top_array_int_container_parse_data' at src/ocispec/basic_test_top_array_int.c:155:90: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:41:8: note: (26) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:151:1: note: in expansion of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:151:36: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c: In function 'basic_test_top_array_int_container_parse_file_stream': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:148:7: note: (28) returning to 'basic_test_top_array_int_container_parse_file_stream' from 'basic_test_top_array_int_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_int.c:159:18: note: (29) 'basic_test_top_array_int_container_parse_data(fread_file(stream, & filesize), ctx, err)' leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c: In function 'basic_test_top_array_string_container_parse_file_stream': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:31: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:152:18: warning: leak of 'basic_test_top_array_string_container_parse_data(fread_file(stream, & filesize), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:126:1: note: (1) entry to 'basic_test_top_array_string_container_parse_file_stream' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:131:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:134:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:136:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:141:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:141:7: note: (6) calling 'basic_test_top_array_string_container_parse_data' from 'basic_test_top_array_string_container_parse_file_stream' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:146:42: note: (7) entry to 'basic_test_top_array_string_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:152:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:155:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:160:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:166:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:166:7: note: (12) calling 'make_basic_test_top_array_string_container' from 'basic_test_top_array_string_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:15:2: note: (13) entry to 'make_basic_test_top_array_string_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:20:9: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:22:10: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:24:8: note: (16) following 'false' branch (when 'alen != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:26:11: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:26:11: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:27:8: note: (19) assuming 'calloc(1, 16)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:27:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:29:18: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:30:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:32:14: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:35:19: note: (24) following 'true' branch (when 'i < alen')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:37:55: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:39:12: note: (26) following 'false' branch (when 'work' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:35:28: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:35:19: note: (28) following 'true' branch (when 'i < alen')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:37:55: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:43:16: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:35:28: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:166:7: note: (32) returning to 'basic_test_top_array_string_container_parse_data' from 'make_basic_test_top_array_string_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:148:93: note: (33) inlined call to 'yajl_tree_free_function' from 'basic_test_top_array_string_container_parse_data' <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:8: <--[csmock-gcc-wrapper] In function 'yajl_tree_free_function', inlined from 'basic_test_top_array_string_container_parse_data' at src/ocispec/basic_test_top_array_string.c:148:93: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:41:8: note: (34) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:144:1: note: in expansion of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:144:36: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c: In function 'basic_test_top_array_string_container_parse_file_stream': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:141:7: note: (36) returning to 'basic_test_top_array_string_container_parse_file_stream' from 'basic_test_top_array_string_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_array_string.c:152:18: note: (37) 'basic_test_top_array_string_container_parse_data(fread_file(stream, & filesize), ctx, err)' leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/tests/test-1.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/tests/test-3.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/tests/test-4.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/tests/test-6.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/tests/test-7.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:31: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:35: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c: In function 'free_basic_test_top_double_array_string_container.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:74:42: warning: dereference of NULL '*ptr.subitem_lens + i * 8' [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:173:49: note: (1) entry to 'basic_test_top_double_array_string_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:179:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:182:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:187:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:193:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:193:7: note: (6) calling 'make_basic_test_top_double_array_string_container' from 'basic_test_top_double_array_string_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:15:2: note: (7) entry to 'make_basic_test_top_double_array_string_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:20:9: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:22:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:24:8: note: (10) following 'false' branch (when 'alen != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:26:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:27:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:29:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:30:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:32:14: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:33:25: note: (16) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:34:8: note: (17) assuming '' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:34:8: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (19) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:17:117: note: (20) inlined call to 'free_basic_test_top_double_array_string_container_function' from 'make_basic_test_top_double_array_string_container' <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:8: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:13:74: note: (21) inlined call to 'free_basic_test_top_double_array_string_container' from 'free_basic_test_top_double_array_string_container_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] In function 'free_basic_test_top_double_array_string_container', inlined from 'free_basic_test_top_double_array_string_container_function' at src/ocispec/basic_test_top_double_array_string.c:13:1, inlined from 'make_basic_test_top_double_array_string_container' at src/ocispec/basic_test_top_double_array_string.c:17:117: cc1: note: (22) calling 'free_basic_test_top_double_array_string_container.part.0' from 'make_basic_test_top_double_array_string_container' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c: In function 'free_basic_test_top_double_array_string_container.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:64:6: note: (23) entry to 'free_basic_test_top_double_array_string_container.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:71:19: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (25) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:74:42: note: (26) dereference of NULL '*ptr.subitem_lens + i * 8' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:76:13: warning: dereference of NULL '* + j * 8' [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:173:49: note: (1) entry to 'basic_test_top_double_array_string_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:179:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:182:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:187:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:193:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:193:7: note: (6) calling 'make_basic_test_top_double_array_string_container' from 'basic_test_top_double_array_string_container_parse_damake[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/basic_test_top_double_array_int.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_top_double_array_int.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/basic_test_top_double_array_int.lo src/ocispec/basic_test_top_double_array_int.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_top_double_array_int.lo -MD -MP -MF src/ocispec/.deps/basic_test_top_double_array_int.Tpo -c src/ocispec/basic_test_top_double_array_int.c -o src/ocispec/basic_test_top_double_array_int.o make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/basic_test_top_double_array_obj.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_top_double_array_obj.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/basic_test_top_double_array_obj.lo src/ocispec/basic_test_top_double_array_obj.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_top_double_array_obj.lo -MD -MP -MF src/ocispec/.deps/basic_test_top_double_array_obj.Tpo -c src/ocispec/basic_test_top_double_array_obj.c -o src/ocispec/basic_test_top_double_array_obj.o ta' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:15:2: note: (7) entry to 'make_basic_test_top_double_array_string_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:20:9: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:22:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:24:8: note: (10) following 'false' branch (when 'alen != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:26:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:27:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:29:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:30:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:32:14: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:34:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (17) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:37:19: note: (18) following 'true' branch (when 'i < alen')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:39:55: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:40:25: note: (20) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:41:12: note: (21) assuming '' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:41:12: note: (22) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (23) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:17:117: note: (24) inlined call to 'free_basic_test_top_double_array_string_container_function' from 'make_basic_test_top_double_array_string_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:13:74: note: (25) inlined call to 'free_basic_test_top_double_array_string_container' from 'free_basic_test_top_double_array_string_container_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] In function 'free_basic_test_top_double_array_string_container', inlined from 'free_basic_test_top_double_array_string_container_function' at src/ocispec/basic_test_top_double_array_string.c:13:1, inlined from 'make_basic_test_top_double_array_string_container' at src/ocispec/basic_test_top_double_array_string.c:17:117: cc1: note: (26) calling 'free_basic_test_top_double_array_string_container.part.0' from 'make_basic_test_top_double_array_string_container' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c: In function 'free_basic_test_top_double_array_string_container.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:64:6: note: (27) entry to 'free_basic_test_top_double_array_string_container.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:71:19: note: (28) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (29) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:74:23: note: (30) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:76:22: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:76:13: note: (32) dereference of NULL '* + j * 8' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c: In function 'basic_test_top_double_array_string_container_parse_file_stream': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:179:18: warning: leak of 'basic_test_top_double_array_string_container_parse_data(fread_file(stream, & filesize), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:153:1: note: (1) entry to 'basic_test_top_double_array_string_container_parse_file_stream' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:158:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:161:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:163:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:168:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:168:7: note: (6) calling 'basic_test_top_double_array_string_container_parse_data' from 'basic_test_top_double_array_string_container_parse_file_stream' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:173:49: note: (7) entry to 'basic_test_top_double_array_string_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:179:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:182:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:187:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:193:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:193:7: note: (12) calling 'make_basic_test_top_double_array_string_container' from 'basic_test_top_double_array_string_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:15:2: note: (13) entry to 'make_basic_test_top_double_array_string_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:20:9: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:22:10: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:24:8: note: (16) following 'false' branch (when 'alen != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:26:11: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:26:11: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:27:8: note: (19) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:27:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:29:18: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:30:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:32:14: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:34:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (25) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:37:19: note: (26) following 'true' branch (when 'i < alen')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:39:55: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:41:12: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:44:19: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:45:23: note: (30) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:47:32: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:48:16: note: (32) following 'false' branch (when 'val' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:55:30: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:45:23: note: (34) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:47:32: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:48:16: note: (36) following 'false' branch (when 'val' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:55:30: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:45:23: note: (38) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:47:32: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:52:20: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:55:30: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:37:19: note: (42) following 'false' branch (when 'i >= alen')... <--[csmock-gcc-wrapper] cc1: note: (43) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:193:7: note: (44) returning to 'basic_test_top_double_array_string_container_parse_data' from 'make_basic_test_top_double_array_string_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:175:100: note: (45) inlined call to 'yajl_tree_free_function' from 'basic_test_top_double_array_string_container_parse_data' <--[csmock-gcc-wrapper] In function 'yajl_tree_free_function', inlined from 'basic_test_top_double_array_string_container_parse_data' at src/ocispec/basic_test_top_double_array_string.c:175:100: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:41:8: note: (46) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:171:1: note: in expansion of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:171:36: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c: In function 'basic_test_top_double_array_string_container_parse_file_stream': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:168:7: note: (48) returning to 'basic_test_top_double_array_string_container_parse_file_stream' from 'basic_test_top_double_array_string_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_string.c:179:18: note: (49) 'basic_test_top_double_array_string_container_parse_data(fread_file(stream, & filesize), ctx, err)' leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:31: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:35: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c: In function 'basic_test_top_double_array_int_container_parse_data': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:20:15: warning: leak of 'make_basic_test_top_double_array_int_container(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:176:46: note: (1) entry to 'basic_test_top_double_array_int_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:182:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:185:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:190:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (6) calling 'make_basic_test_top_double_array_int_container' from 'basic_test_top_double_array_int_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:15:2: note: (7) entry to 'make_basic_test_top_double_array_int_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:20:9: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:22:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:24:8: note: (10) following 'false' branch (when 'alen != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:26:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:26:11: note: (12) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:27:8: note: (13) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:27:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:29:18: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:30:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:32:14: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:34:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (19) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:37:19: note: (20) following 'false' branch (when 'i >= alen')... <--[csmock-gcc-wrapper] cc1: note: (21) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (22) returning to 'basic_test_top_double_array_int_container_parse_data' from 'make_basic_test_top_double_array_int_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:20:15: note: (23) 'make_basic_test_top_double_array_int_container(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' leaks here; was allocated at (12) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:37:19: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:176:46: note: (1) entry to 'basic_test_top_double_array_int_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:182:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:185:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:190:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (6) calling 'make_basic_test_top_double_array_int_container' from 'basic_test_top_double_array_int_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:15:2: note: (7) entry to 'make_basic_test_top_double_array_int_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:20:9: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:22:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:24:8: note: (10) following 'false' branch (when 'alen != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:26:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:27:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:29:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:29:18: note: (14) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:30:8: note: (15) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:30:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:32:14: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:34:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (19) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:37:19: note: (20) following 'false' branch (when 'i >= alen')... <--[csmock-gcc-wrapper] cc1: note: (21) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (22) returning to 'basic_test_top_double_array_int_container_parse_data' from 'make_basic_test_top_double_array_int_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:37:19: note: (23) '' leaks here; was allocated at (14) <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:8: <--[csmock-gcc-wrapper] In function 'yajl_tree_free_function', inlined from 'basic_test_top_double_array_int_container_parse_data' at src/ocispec/basic_test_top_double_array_int.c:178:97: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:174:36: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c: In function 'basic_test_top_double_array_int_container_parse_file_stream': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:156:1: note: (1) entry to 'basic_test_top_double_array_int_container_parse_file_stream' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:161:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:164:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:166:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:171:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:171:7: note: (6) calling 'basic_test_top_double_array_int_container_parse_data' from 'basic_test_top_double_array_int_container_parse_file_stream' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:176:46: note: (7) entry to 'basic_test_top_double_array_int_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:182:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:185:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:190:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (12) calling 'make_basic_test_top_double_array_int_container' from 'basic_test_top_double_array_int_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:15:2: note: (13) entry to 'make_basic_test_top_double_array_int_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:20:9: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:22:10: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:24:8: note: (16) following 'false' branch (when 'alen != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:26:11: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:27:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:29:18: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:29:18: note: (20) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:30:8: note: (21) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:30:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:32:14: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:34:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (25) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:37:19: note: (26) following 'false' branch (when 'i >= alen')... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (28) returning to 'basic_test_top_double_array_int_container_parse_data' from 'make_basic_test_top_double_array_int_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:178:97: note: (29) inlined call to 'yajl_tree_free_function' from 'basic_test_top_double_array_int_container_parse_data' <--[csmock-gcc-wrapper] In function 'yajl_tree_free_function', inlined from 'basic_test_top_double_array_int_container_parse_data' at src/ocispec/basic_test_top_double_array_int.c:178:97: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:41:8: note: (30) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:174:1: note: in expansion of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:174:36: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c: In function 'basic_test_top_double_array_int_container_parse_file_stream': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:171:7: note: (32) returning to 'basic_test_top_double_array_int_container_parse_file_stream' from 'basic_test_top_double_array_int_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:178:97: note: (33) inlined call to 'yajl_tree_free_function' from 'basic_test_top_double_array_int_container_parse_data' <--[csmock-gcc-wrapper] In function 'yajl_tree_free_function', inlined from 'basic_test_top_double_array_int_container_parse_data' at src/ocispec/basic_test_top_double_array_int.c:178:97: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:174:36: note: (34) '' leaks here; was allocated at (20) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c: In function 'basic_test_top_double_array_int_container_parse_file_stream': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:182:18: warning: leak of 'basic_test_top_double_array_int_container_parse_data(fread_file(stream, & filesize), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:156:1: note: (1) entry to 'basic_test_top_double_array_int_container_parse_file_stream' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:161:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:164:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:166:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:171:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:171:7: note: (6) calling 'basic_test_top_double_array_int_container_parse_data' from 'basic_test_top_double_array_int_container_parse_file_stream' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:176:46: note: (7) entry to 'basic_test_top_double_array_int_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:182:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:185:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:190:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (12) calling 'make_basic_test_top_double_array_int_container' from 'basic_test_top_double_array_int_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:15:2: note: (13) entry to 'make_basic_test_top_double_array_int_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:20:9: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:22:10: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:24:8: note: (16) following 'false' branch (when 'alen != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:26:11: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:26:11: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:27:8: note: (19) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:27:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:29:18: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:30:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:32:14: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:34:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (25) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:37:19: note: (26) following 'false' branch (when 'i >= alen')... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (28) returning to 'basic_test_top_double_array_int_container_parse_data' from 'make_basic_test_top_double_array_int_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:178:97: note: (29) inlined call to 'yajl_tree_free_function' from 'basic_test_top_double_array_int_container_parse_data' <--[csmock-gcc-wrapper] In function 'yajl_tree_free_function', inlined from 'basic_test_top_double_array_int_container_parse_data' at src/ocispec/basic_test_top_double_array_int.c:178:97: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:41:8: note: (30) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:174:1: note: in expansion of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:174:36: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c: In function 'basic_test_top_double_array_int_container_parse_file_stream': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:171:7: note: (32) returning to 'basic_test_top_double_array_int_container_parse_file_stream' from 'basic_test_top_double_array_int_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_int.c:182:18: note: (33) 'basic_test_top_double_array_int_container_parse_data(fread_file(stream, & filesize), ctx, err)' leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:158: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:182: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:186: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:9, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:8: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c: In function 'make_basic_test_top_double_array_obj_container': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: warning: leak of 'make_basic_test_top_double_array_obj_element(*, ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:29:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:319:46: note: (1) entry to 'basic_test_top_double_array_obj_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:325:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:328:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:333:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:339:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:339:7: note: (6) calling 'make_basic_test_top_double_array_obj_container' from 'basic_test_top_double_array_obj_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:166:2: note: (7) entry to 'make_basic_test_top_double_array_obj_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:171:9: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:173:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:175:8: note: (10) following 'false' branch (when 'alen != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:177:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:178:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:180:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:181:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:183:14: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:185:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (17) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:188:19: note: (18) following 'true' branch (when 'i < alen')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:190:55: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:193:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:195:19: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:196:23: note: (22) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:198:84: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:198:34: note: (24) calling 'make_basic_test_top_double_array_obj_element' from 'make_basic_test_top_double_array_obj_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:14:1: note: (25) entry to 'make_basic_test_top_double_array_obj_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:19:8: note: (26) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:21:11: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:21:11: note: (28) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:22:8: note: (29) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:22:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:26:24: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:27:12: note: (32) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:29:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:46:12: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:67:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:68:12: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (37) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:198:34: note: (38) returning to 'make_basic_test_top_double_array_obj_container' from 'make_basic_test_top_double_array_obj_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:156:49: note: (39) 'make_basic_test_top_double_array_obj_element(*, ctx, err)' leaks here; was allocated at (28) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:29:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:68:12: warning: leak of 'make_basic_test_top_double_array_obj_element(*, ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:319:46: note: (1) entry to 'basic_test_top_double_array_obj_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:325:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:328:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:333:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:339:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:339:7: note: (6) calling 'make_basic_test_top_double_array_obj_container' from 'basic_test_top_double_array_obj_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:166:2: note: (7) entry to 'make_basic_test_top_double_array_obj_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:171:9: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:173:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:175:8: note: (10) following 'false' branch (when 'alen != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:177:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:178:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:180:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:181:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:183:14: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:185:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (17) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:188:19: note: (18) following 'true' branch (when 'i < alen')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:190:55: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:193:12: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:195:19: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:196:23: note: (22) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:198:84: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:198:34: note: (24) calling 'make_basic_test_top_double_array_obj_element' from 'make_basic_test_top_double_array_obj_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:14:1: note: (25) entry to 'make_basic_test_top_double_array_obj_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:19:8: note: (26) following 'false' branch (when 'tree' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:21:11: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:21:11: note: (28) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:22:8: note: (29) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:22:8: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:26:24: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:27:12: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:34:19: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:35:16: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:45:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:46:12: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:67:24: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:68:12: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (39) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:198:34: note: (40) returning to 'make_basic_test_top_double_array_obj_container' from 'make_basic_test_top_double_array_obj_element' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:68:12: note: (41) 'make_basic_test_top_double_array_obj_element(*, ctx, err)' leaks here; was allocated at (28) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c: In function 'free_basic_test_top_double_array_obj_container.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:220:44: warning: dereference of NULL '*ptr.subitem_lens + i * 8' [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:319:46: note: (1) entry to 'basic_test_top_double_array_obj_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:325:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:328:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:333:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:339:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:339:7: note: (6) calling 'make_basic_test_top_double_array_obj_container' from 'basic_test_top_double_array_obj_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:166:2: note: (7) entry to 'make_basic_test_top_double_array_obj_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:171:9: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:173:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:175:8: note: (10) following 'false' branch (when 'alen != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:177:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:178:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:180:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:181:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:183:14: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:184:25: note: (16) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:185:8: note: (17) assuming '' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:185:8: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (19) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:168:111: note: (20) inlined call to 'free_basic_test_top_double_array_obj_container_function' from 'make_basic_test_top_double_array_obj_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:164:71: note: (21) inlined call to 'free_basic_test_top_double_array_obj_container' from 'free_basic_test_top_double_array_obj_container_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] In function 'free_basic_test_top_double_array_obj_container', inlined from 'free_basic_test_top_double_array_obj_container_function' at src/ocispec/basic_test_top_double_array_obj.c:164:1, inlined from 'make_basic_test_top_double_array_obj_container' at src/ocispec/basic_test_top_double_array_obj.c:168:111: cc1: note: (22) calling 'free_basic_test_top_double_array_obj_container.part.0' from 'make_basic_test_top_double_array_obj_container' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c: In function 'free_basic_test_top_double_array_obj_container.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:210:6: note: (23) entry to 'free_basic_test_top_double_array_obj_container.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:217:19: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (25) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:220:44: note: (26) dereference of NULL '*ptr.subitem_lens + i * 8' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:222:15: warning: dereference of NULL '* + j * 8' [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:319:46: note: (1) entry to 'basic_test_top_double_array_obj_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:325:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:328:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:333:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:339:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:339:7: note: (6) calling 'make_basic_test_top_double_array_obj_container' from 'basic_test_top_double_array_obj_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:166:2: note: (7) entry to 'make_basic_test_top_double_array_obj_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:171:9: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:173:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:175:8: note: (10) following 'false' branch (when 'alen != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-bmake[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/basic_test_top_double_array_refobj.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_top_double_array_refobj.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/basic_test_top_double_array_refobj.lo src/ocispec/basic_test_top_double_array_refobj.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_top_double_array_refobj.lo -MD -MP -MF src/ocispec/.deps/basic_test_top_double_array_refobj.Tpo -c src/ocispec/basic_test_top_double_array_refobj.c -o src/ocispec/basic_test_top_double_array_refobj.o make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo src/ocispec/json_common.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/json_common.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/json_common.lo src/ocispec/json_common.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/json_common.lo -MD -MP -MF src/ocispec/.deps/json_common.Tpo -c src/ocispec/json_common.c -o src/ocispec/json_common.o make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo tests/test-8.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT tests/test-8.o -MD -MP -MF $depbase.Tpo -c -o tests/test-8.o tests/test-8.c &&\ mv -f $depbase.Tpo $depbase.Po make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo tests/test-9.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT tests/test-9.o -MD -MP -MF $depbase.Tpo -c -o tests/test-9.o tests/test-9.c &&\ mv -f $depbase.Tpo $depbase.Po make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo tests/test-10.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT tests/test-10.o -MD -MP -MF $depbase.Tpo -c -o tests/test-10.o tests/test-10.c &&\ mv -f $depbase.Tpo $depbase.Po make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' depbase=`echo tests/test-11.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT tests/test-11.o -MD -MP -MF $depbase.Tpo -c -o tests/test-11.o tests/test-11.c &&\ mv -f $depbase.Tpo $depbase.Po make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /bin/sh ./libtool --tag=CC --mode=link gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o libocispec.la src/ocispec/image_spec_schema_config_schema.lo src/ocispec/image_spec_schema_content_descriptor.lo src/ocispec/image_spec_schema_defs.lo src/ocispec/image_spec_schema_defs_descriptor.lo src/ocispec/image_spec_schema_image_index_schema.lo src/ocispec/image_spec_schema_image_layout_schema.lo src/ocispec/image_spec_schema_image_manifest_schema.lo src/ocispec/runtime_spec_schema_config_linux.lo src/ocispec/runtime_spec_schema_config_zos.lo src/ocispec/runtime_spec_schema_config_schema.lo src/ocispec/runtime_spec_schema_config_solaris.lo src/ocispec/runtime_spec_schema_config_vm.lo src/ocispec/runtime_spec_schema_config_windows.lo src/ocispec/runtime_spec_schema_defs.lo src/ocispec/runtime_spec_schema_defs_linux.lo src/ocispec/runtime_spec_schema_defs_zos.lo src/ocispec/runtime_spec_schema_defs_vm.lo src/ocispec/runtime_spec_schema_defs_windows.lo src/ocispec/runtime_spec_schema_state_schema.lo src/ocispec/runtime_spec_schema_features_linux.lo src/ocispec/runtime_spec_schema_features_schema.lo src/ocispec/image_manifest_items_image_manifest_items_schema.lo src/ocispec/basic_test_double_array_item.lo src/ocispec/basic_test_double_array.lo src/ocispec/basic_test_top_array_int.lo src/ocispec/basic_test_top_array_string.lo src/ocispec/basic_test_top_double_array_int.lo src/ocispec/basic_test_top_double_array_obj.lo src/ocispec/basic_test_top_double_array_refobj.lo src/ocispec/basic_test_top_double_array_string.lo src/ocispec/read-file.lo src/ocispec/json_common.lo -lyajl libtool: link: ar cr .libs/libocispec.a src/ocispec/image_spec_schema_config_schema.o src/ocispec/image_spec_schema_content_descriptor.o src/ocispec/image_spec_schema_defs.o src/ocispec/image_spec_schema_defs_descriptor.o src/ocispec/image_spec_schema_image_index_schema.o src/ocispec/image_spec_schema_image_layout_schema.o src/ocispec/image_spec_schema_image_manifest_schema.o src/ocispec/runtime_spec_schema_config_linux.o src/ocispec/runtime_spec_schema_config_zos.o src/ocispec/runtime_spec_schema_config_schema.o src/ocispec/runtime_spec_schema_config_solaris.o src/ocispec/runtime_spec_schema_config_vm.o src/ocispec/runtime_spec_schema_config_windows.o src/ocispec/runtime_spec_schema_defs.o src/ocispec/runtime_spec_schema_defs_linux.o src/ocispec/runtime_spec_schema_defs_zos.o src/ocispec/runtime_spec_schema_defs_vm.o src/ocispec/runtime_spec_schema_defs_windows.o src/ocispec/runtime_spec_schema_state_schema.o src/ocispec/runtime_spec_schema_features_linux.o src/ocispec/runtime_spec_schema_features_schema.o src/ocispec/image_manifest_items_image_manifest_items_schema.o src/ocispec/basic_test_double_array_item.o src/ocispec/basic_test_double_array.o src/ocispec/basic_test_top_array_int.o src/ocispec/basic_test_top_array_string.o src/ocispec/basic_test_top_double_array_int.o src/ocispec/basic_test_top_double_array_obj.o src/ocispec/basic_test_top_double_array_refobj.o src/ocispec/basic_test_top_double_array_string.o src/ocispec/read-file.o src/ocispec/json_common.o libtool: link: ranlib .libs/libocispec.a libtool: link: ( cd ".libs" && rm -f "libocispec.la" && ln -s "../libocispec.la" "libocispec.la" ) make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /bin/sh ./libtool --tag=CC --mode=link gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-5 tests/test-5.o libocispec.la -lyajl -lyajl libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-5 tests/test-5.o ./.libs/libocispec.a -lyajl make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /bin/sh ./libtool --tag=CC --mode=link gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-6 tests/test-6.o libocispec.la -lyajl -lyajl libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-6 tests/test-6.o ./.libs/libocispec.a -lyajl make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /bin/sh ./libtool --tag=CC --mode=link gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-4 tests/test-4.o libocispec.la -lyajl -lyajl libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-4 tests/test-4.o ./.libs/libocispec.a -lyajl make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /bin/sh ./libtool --tag=CC --mode=link gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-7 tests/test-7.o libocispec.la -lyajl -lyajl libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-7 tests/test-7.o ./.libs/libocispec.a -lyajl make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /bin/sh ./libtool --tag=CC --mode=link gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-3 tests/test-3.o libocispec.la -lyajl -lyajl libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-3 tests/test-3.o ./.libs/libocispec.a -lyajl make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /bin/sh ./libtool --tag=CC --mode=link gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-8 tests/test-8.o libocispec.la -lyajl -lyajl libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-8 tests/test-8.o ./.libs/libocispec.a -lyajl make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /bin/sh ./libtool --mode=link libocispec.la -o libocispec.a libtool: link: ar cr libocispec.a libtool: link: ranlib libocispec.a make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /bin/sh ./libtool --tag=CC --mode=link gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-9 tests/test-9.o libocispec.la -lyajl -lyajl libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-9 tests/test-9.o ./.libs/libocispec.a -lyajl make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /bin/sh ./libtool --tag=CC --mode=link gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-11 tests/test-11.o libocispec.la -lyajl -lyajl libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-11 tests/test-11.o ./.libs/libocispec.a -lyajl make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /bin/sh ./libtool --tag=CC --mode=link gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-10 tests/test-10.o libocispec.la -lyajl -lyajl libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-10 tests/test-10.o ./.libs/libocispec.a -lyajl make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /bin/sh ./libtool --tag=CC --mode=link gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-2 tests/test-2.o libocispec.la -lyajl -lyajl libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-2 tests/test-2.o ./.libs/libocispec.a -lyajl make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /bin/sh ./libtool --tag=CC --mode=link gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o src/ocispec/validate src/ocispec/validate.o libocispec.la -lyajl -lyajl libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o src/ocispec/validate src/ocispec/validate.o ./.libs/libocispec.a -lyajl make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /bin/sh ./libtool --tag=CC --mode=link gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-1 tests/test-1.o libocispec.la -lyajl -lyajl libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-1 tests/test-1.o ./.libs/libocispec.a -lyajl make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-cgroup-cgroupfs.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup-cgroupfs.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup-cgroupfs.o `test -f 'src/libcrun/cgroup-cgroupfs.c' || echo './'`src/libcrun/cgroup-cgroupfs.c mv -f src/libcrun/.deps/libcrun_testing_a-cgroup-cgroupfs.Tpo src/libcrun/.deps/libcrun_testing_a-cgroup-cgroupfs.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-cgroup.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup.o `test -f 'src/libcrun/cgroup.c' || echo './'`src/libcrun/cgroup.c mv -f src/libcrun/.deps/libcrun_testing_a-cgroup.Tpo src/libcrun/.deps/libcrun_testing_a-cgroup.Po uild/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:177:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:178:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:180:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:181:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:183:14: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:185:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (17) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:188:19: note: (18) following 'true' branch (when 'i < alen')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:190:55: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:192:25: note: (20) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:193:12: note: (21) assuming '' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:193:12: note: (22) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (23) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:168:111: note: (24) inlined call to 'free_basic_test_top_double_array_obj_container_function' from 'make_basic_test_top_double_array_obj_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:164:71: note: (25) inlined call to 'free_basic_test_top_double_array_obj_container' from 'free_basic_test_top_double_array_obj_container_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] In function 'free_basic_test_top_double_array_obj_container', inlined from 'free_basic_test_top_double_array_obj_container_function' at src/ocispec/basic_test_top_double_array_obj.c:164:1, inlined from 'make_basic_test_top_double_array_obj_container' at src/ocispec/basic_test_top_double_array_obj.c:168:111: cc1: note: (26) calling 'free_basic_test_top_double_array_obj_container.part.0' from 'make_basic_test_top_double_array_obj_container' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c: In function 'free_basic_test_top_double_array_obj_container.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:210:6: note: (27) entry to 'free_basic_test_top_double_array_obj_container.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:217:19: note: (28) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (29) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:220:25: note: (30) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:222:64: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_obj.c:222:15: note: (32) dereference of NULL '* + j * 8' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:31: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:35: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: In function 'basic_test_top_double_array_refobj_container_parse_data': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:20:15: warning: leak of 'make_basic_test_top_double_array_refobj_container(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:168:49: note: (1) entry to 'basic_test_top_double_array_refobj_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:174:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:177:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:182:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (6) calling 'make_basic_test_top_double_array_refobj_container' from 'basic_test_top_double_array_refobj_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:15:2: note: (7) entry to 'make_basic_test_top_double_array_refobj_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:20:9: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:22:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:24:8: note: (10) following 'false' branch (when 'alen != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:26:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:26:11: note: (12) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:27:8: note: (13) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:27:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:29:18: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:30:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:32:14: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:34:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (19) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:37:19: note: (20) following 'false' branch (when 'i >= alen')... <--[csmock-gcc-wrapper] cc1: note: (21) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (22) returning to 'basic_test_top_double_array_refobj_container_parse_data' from 'make_basic_test_top_double_array_refobj_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:20:15: note: (23) 'make_basic_test_top_double_array_refobj_container(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' leaks here; was allocated at (12) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: In function 'basic_test_top_double_array_refobj_container_parse_file_stream': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:20:15: warning: leak of 'basic_test_top_double_array_refobj_container_parse_data(fread_file(stream, & filesize), ctx, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:148:1: note: (1) entry to 'basic_test_top_double_array_refobj_container_parse_file_stream' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:153:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:156:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:158:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:163:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:163:7: note: (6) calling 'basic_test_top_double_array_refobj_container_parse_data' from 'basic_test_top_double_array_refobj_container_parse_file_stream' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:168:49: note: (7) entry to 'basic_test_top_double_array_refobj_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:174:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:177:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:182:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (12) calling 'make_basic_test_top_double_array_refobj_container' from 'basic_test_top_double_array_refobj_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:15:2: note: (13) entry to 'make_basic_test_top_double_array_refobj_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:20:9: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:22:10: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:24:8: note: (16) following 'false' branch (when 'alen != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:26:11: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:26:11: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:27:8: note: (19) assuming 'calloc(1, 24)' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:27:8: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:29:18: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:30:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:32:14: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:34:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (25) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:37:19: note: (26) following 'false' branch (when 'i >= alen')... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (28) returning to 'basic_test_top_double_array_refobj_container_parse_data' from 'make_basic_test_top_double_array_refobj_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:170:100: note: (29) inlined call to 'yajl_tree_free_function' from 'basic_test_top_double_array_refobj_container_parse_data' <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:8: <--[csmock-gcc-wrapper] In function 'yajl_tree_free_function', inlined from 'basic_test_top_double_array_refobj_container_parse_data' at src/ocispec/basic_test_top_double_array_refobj.c:170:100: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:41:8: note: (30) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:166:1: note: in expansion of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:166:36: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: In function 'basic_test_top_double_array_refobj_container_parse_file_stream': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:163:7: note: (32) returning to 'basic_test_top_double_array_refobj_container_parse_file_stream' from 'basic_test_top_double_array_refobj_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:20:15: note: (33) 'basic_test_top_double_array_refobj_container_parse_data(fread_file(stream, & filesize), ctx, err)' leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: In function 'basic_test_top_double_array_refobj_container_parse_data': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:37:19: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:168:49: note: (1) entry to 'basic_test_top_double_array_refobj_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:174:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:177:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:182:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (6) calling 'make_basic_test_top_double_array_refobj_container' from 'basic_test_top_double_array_refobj_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:15:2: note: (7) entry to 'make_basic_test_top_double_array_refobj_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:20:9: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:22:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:24:8: note: (10) following 'false' branch (when 'alen != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:26:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:27:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:29:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:29:18: note: (14) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:30:8: note: (15) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:30:8: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:32:14: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:34:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (19) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:37:19: note: (20) following 'false' branch (when 'i >= alen')... <--[csmock-gcc-wrapper] cc1: note: (21) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (22) returning to 'basic_test_top_double_array_refobj_container_parse_data' from 'make_basic_test_top_double_array_refobj_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:37:19: note: (23) '' leaks here; was allocated at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: In function 'free_basic_test_top_double_array_refobj_container.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:69:44: warning: dereference of NULL '*ptr.subitem_lens + i * 8' [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:168:49: note: (1) entry to 'basic_test_top_double_array_refobj_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:174:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:177:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:182:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (6) calling 'make_basic_test_top_double_array_refobj_container' from 'basic_test_top_double_array_refobj_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:15:2: note: (7) entry to 'make_basic_test_top_double_array_refobj_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:20:9: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:22:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:24:8: note: (10) following 'false' branch (when 'alen != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:26:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:27:8: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:29:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:30:8: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:32:14: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:33:25: note: (16) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:34:8: note: (17) assuming '' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:34:8: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (19) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:17:117: note: (20) inlined call to 'free_basic_test_top_double_array_refobj_container_function' from 'make_basic_test_top_double_array_refobj_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:13:74: note: (21) inlined call to 'free_basic_test_top_double_array_refobj_container' from 'free_basic_test_top_double_array_refobj_container_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] In function 'free_basic_test_top_double_array_refobj_container', inlined from 'free_basic_test_top_double_array_refobj_container_function' at src/ocispec/basic_test_top_double_array_refobj.c:13:1, inlined from 'make_basic_test_top_double_array_refobj_container' at src/ocispec/basic_test_top_double_array_refobj.c:17:117: cc1: note: (22) calling 'free_basic_test_top_double_array_refobj_container.part.0' from 'make_basic_test_top_double_array_refobj_container' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: In function 'free_basic_test_top_double_array_refobj_container.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:59:6: note: (23) entry to 'free_basic_test_top_double_array_refobj_container.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:66:19: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (25) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:69:44: note: (26) dereference of NULL '*ptr.subitem_lens + i * 8' <--[csmock-gcc-wrapper] In function 'yajl_tree_free_function', inlined from 'basic_test_top_double_array_refobj_container_parse_data' at src/ocispec/basic_test_top_double_array_refobj.c:170:100: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:166:36: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: In function 'basic_test_top_double_array_refobj_container_parse_file_stream': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:148:1: note: (1) entry to 'basic_test_top_double_array_refobj_container_parse_file_stream' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:153:8: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:156:10: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:158:8: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:163:7: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:163:7: note: (6) calling 'basic_test_top_double_array_refobj_container_parse_data' from 'basic_test_top_double_array_refobj_container_parse_file_stream' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:168:49: note: (7) entry to 'basic_test_top_double_array_refobj_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:174:8: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:177:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:182:8: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (12) calling 'make_basic_test_top_double_array_refobj_container' from 'basic_test_top_double_array_refobj_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:15:2: note: (13) entry to 'make_basic_test_top_double_array_refobj_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:20:9: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:22:10: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:24:8: note: (16) following 'false' branch (when 'alen != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:26:11: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:27:8: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:29:18: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:29:18: note: (20) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:30:8: note: (21) assuming '' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:30:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:32:14: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:34:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (25) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:37:19: note: (26) following 'false' branch (when 'i >= alen')... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (28) returning to 'basic_test_top_double_array_refobj_container_parse_data' from 'make_basic_test_top_double_array_refobj_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:170:100: note: (29) inlined call to 'yajl_tree_free_function' from 'basic_test_top_double_array_refobj_container_parse_data' <--[csmock-gcc-wrapper] In function 'yajl_tree_free_function', inlined from 'basic_test_top_double_array_refobj_container_parse_data' at src/ocispec/basic_test_top_double_array_refobj.c:170:100: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:41:8: note: (30) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:166:1: note: in expansion of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:166:36: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: In function 'basic_test_top_double_array_refobj_container_parse_file_stream': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:163:7: note: (32) returning to 'basic_test_top_double_array_refobj_container_parse_file_stream' from 'basic_test_top_double_array_refobj_container_parse_data' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:170:100: note: (33) inlined call to 'yajl_tree_free_function' from 'basic_test_top_double_array_refobj_container_parse_data' <--[csmock-gcc-wrapper] In function 'yajl_tree_free_function', inlined from 'basic_test_top_double_array_refobj_container_parse_data' at src/ocispec/basic_test_top_double_array_refobj.c:170:100: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:166:36: note: (34) '' leaks here; was allocated at (20) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:533: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:539: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:611: error: memleak(CWE-401): Memory leak: keys <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:713: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:718: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:782: error: memleak(CWE-401): Memory leak: keys <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:888: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:894: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1050: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1056: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1345: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1351: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1408: error: memleak(CWE-401): Memory leak: keys <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1414: error: memleak(CWE-401): Memory leak: keys <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1414: error: memleak(CWE-401): Memory leak: vals <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1521: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1528: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1585: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1589: error: memleak(CWE-401): Memory leak: ret <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c: In function 'free_json_map_string_string.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1479:11: warning: dereference of NULL '*map.keys + i * 8' [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1569:1: note: (1) entry to 'clone_map_string_string' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1574:6: note: (2) following 'false' branch (when 'src' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1577:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1578:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1581:17: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1583:15: note: (6) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1584:6: note: (7) assuming '' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1584:6: note: (8) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (9) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1571:72: note: (10) inlined call to 'free_json_map_string_string_function' from 'clone_map_string_string' <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:6: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1492:52: note: (11) inlined call to 'free_json_map_string_string' from 'free_json_map_string_string_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] In function 'free_json_map_string_string', inlined from 'free_json_map_string_string_function' at src/ocispec/json_common.c:1492:1, inlined from 'clone_map_string_string' at src/ocispec/json_common.c:1571:72: cc1: note: (12) calling 'free_json_map_string_string.part.0' from 'clone_map_string_string' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c: In function 'free_json_map_string_string.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1472:1: note: (13) entry to 'free_json_map_string_string.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1477:21: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1479:20: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1479:11: note: (16) dereference of NULL '*map.keys + i * 8' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1481:11: warning: dereference of NULL '*map.values + i * 8' [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1569:1: note: (1) entry to 'clone_map_string_string' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1574:6: note: (2) following 'false' branch (when 'src' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1577:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1578:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1581:17: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1584:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1587:17: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1587:17: note: (8) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1588:6: note: (9) assuming '' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1588:6: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (11) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1571:72: note: (12) inlined call to 'free_json_map_string_string_function' from 'clone_map_string_string' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1492:52: note: (13) inlined call to 'free_json_map_string_string' from 'free_json_map_string_string_function' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[csmock-gcc-wrapper] In function 'free_json_map_string_string', inlined from 'free_json_map_string_string_function' at src/ocispec/json_common.c:1492:1, inlined from 'clone_map_string_string' at src/ocispec/json_common.c:1571:72: cc1: note: (14) calling 'free_json_map_string_string.part.0' from 'clone_map_string_string' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c: In function 'free_json_map_string_string.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1472:1: note: (15) entry to 'free_json_map_string_string.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1477:21: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1479:20: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.c:1481:11: note: (18) dereference of NULL '*map.values + i * 8' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/tests/test-8.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/tests/test-9.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/tests/test-11.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c: In function ‘libcrun_precreate_cgroup_cgroupfs’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c:82:12: warning: leak of file descriptor ‘open(cgroup_path, 720896)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c:68:6: note: (1) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c:71:9: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c:72:6: note: (3) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c:78:9: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c:79:6: note: (5) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c:82:12: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c:82:12: note: (7) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c:82:12: note: (8) ‘open(cgroup_path, 720896)’ leaks here; was opened at (7) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-internal.h:22, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:24: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘libcrun_cgroup_enter’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of ‘xmalloc0(24)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:285:1: note: (1) entry to ‘libcrun_cgroup_enter’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:289:64: note: (2) calling ‘xmalloc0’ from ‘libcrun_cgroup_enter’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (4) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (5) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:289:64: note: (8) returning to ‘libcrun_cgroup_enter’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (9) ‘xmalloc0(24)’ leaks here; was allocated at (4) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c: In function ‘libcrun_cgroup_destroy’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:204:24: warning: dereference of NULL ‘cgroup_manager’ [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:195:1: note: (1) entry to ‘libcrun_cgroup_destroy’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:197:34: note: (2) ‘cgroup_manager’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:200:9: note: (3) calling ‘get_cgroup_manager’ from ‘libcrun_cgroup_destroy’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:66:1: note: (4) entry to ‘get_cgroup_manager’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:68:3: note: (5) following ‘default:’ branch... <--[csmock-gcc-wrapper] cc1: note: (6) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:200:9: note: (7) returning to ‘libcrun_cgroup_destroy’ from ‘get_cgroup_manager’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:201:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:204:24: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:204:24: note: (10) ‘cgroup_manager’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:204:24: note: (11) dereference of NULL ‘cgroup_manager’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c: In function ‘libcrun_update_cgroup_resources’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:220:21: warning: dereference of NULL ‘cgroup_manager’ [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:208:1: note: (1) entry to ‘libcrun_update_cgroup_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:213:34: note: (2) ‘cgroup_manager’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:216:9: note: (3) calling ‘get_cgroup_manager’ from ‘libcrun_update_cgroup_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:66:1: note: (4) entry to ‘get_cgroup_manager’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:68:3: note: (5) following ‘default:’ branch... <--[csmock-gcc-wrapper] cc1: note: (6) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:216:9: note: (7) returning to ‘libcrun_update_cgroup_resources’ from ‘get_cgroup_manager’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:217:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:220:21: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:220:21: note: (10) ‘cgroup_manager’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:220:21: note: (11) dereference of NULL ‘cgroup_manager’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c: In function ‘libcrun_cgroup_preenter’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:278:21: warning: dereference of NULL ‘cgroup_manager’ [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:259:1: note: (1) entry to ‘libcrun_cgroup_preenter’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:268:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:271:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:271:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:274:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:274:9: note: (6) calling ‘get_cgroup_manager’ from ‘libcrun_cgroup_preenter’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:66:1: note: (7) entry to ‘get_cgroup_manager’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:68:3: note: (8) following ‘default:’ branch... <--[csmock-gcc-wrapper] cc1: note: (9) ...to here cc1: note: (10) calling ‘get_cgroup_manager.part.0’ from ‘get_cgroup_manager’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:66:1: note: (11) entry to ‘get_cgroup_manager.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:83:8: note: (12) ‘cgroup_manager’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:83:8: note: (13) ‘cgroup_manager’ is NULL <--[csmock-gcc-wrapper] cc1: note: (14) returning to ‘get_cgroup_manager’ from ‘get_cgroup_manager.part.0’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:274:9: note: (15) returning to ‘libcrun_cgroup_preenter’ from ‘get_cgroup_manager’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:275:6: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:278:21: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:278:21: note: (18) ‘cgroup_manager’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:278:21: note: (19) dereference of NULL ‘cgroup_manager’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c: In function ‘libcrun_cgroup_enter’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:335:23: warning: dereference of NULL ‘cgroup_manager’ [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:285:1: note: (1) entry to ‘libcrun_cgroup_enter’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:289:64: note: (2) calling ‘xmalloc0’ from ‘libcrun_cgroup_enter’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:289:64: note: (6) returning to ‘libcrun_cgroup_enter’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:297:6: note: (7) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:305:7: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:329:9: note: (9) calling ‘get_cgroup_manager’ from ‘libcrun_cgroup_enter’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:66:1: note: (10) entry to ‘get_cgroup_manager’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:68:3: note: (11) following ‘default:’ branch... <--[csmock-gcc-wrapper] cc1: note: (12) ...to here cc1: note: (13) calling ‘get_cgroup_manager.part.0’ from ‘get_cgroup_manager’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:66:1: note: (14) entry to ‘get_cgroup_manager.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:83:8: note: (15) ‘cgroup_manager’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:83:8: note: (16) ‘cgroup_manager’ is NULL <--[csmock-gcc-wrapper] cc1: note: (17) returning to ‘get_cgroup_manager’ from ‘get_cgroup_manager.part.0’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:329:9: note: (18) returning to ‘libcrun_cgroup_enter’ from ‘get_cgroup_manager’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:330:6: note: (19) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:333:25: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:335:23: note: (21) ‘cgroup_manager’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:335:23: note: (22) dereference of NULL ‘cgroup_manager’ <--[csmock-gcc-wrapper] make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/blake3/libcrun_testing_a-blake3.o -MD -MP -MF src/libcrun/blake3/.deps/libcrun_testing_a-blake3.Tpo -c -o src/libcrun/blake3/libcrun_testing_a-blake3.o `test -f 'src/libcrun/blake3/blake3.c' || echo './'`src/libcrun/blake3/blake3.c mv -f src/libcrun/blake3/.deps/libcrun_testing_a-blake3.Tpo src/libcrun/blake3/.deps/libcrun_testing_a-blake3.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/blake3/libcrun_testing_a-blake3_portable.o -MD -MP -MF src/libcrun/blake3/.deps/libcrun_testing_a-blake3_portable.Tpo -c -o src/libcrun/blake3/libcrun_testing_a-blake3_portable.o `test -f 'src/libcrun/blake3/blake3_portable.c' || echo './'`src/libcrun/blake3/blake3_portable.c mv -f src/libcrun/blake3/.deps/libcrun_testing_a-blake3_portable.Tpo src/libcrun/blake3/.deps/libcrun_testing_a-blake3_portable.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-cgroup-setup.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup-setup.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup-setup.o `test -f 'src/libcrun/cgroup-setup.c' || echo './'`src/libcrun/cgroup-setup.c mv -f src/libcrun/.deps/libcrun_testing_a-cgroup-setup.Tpo src/libcrun/.deps/libcrun_testing_a-cgroup-setup.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-cgroup-utils.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup-utils.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup-utils.o `test -f 'src/libcrun/cgroup-utils.c' || echo './'`src/libcrun/cgroup-utils.c mv -f src/libcrun/.deps/libcrun_testing_a-cgroup-utils.Tpo src/libcrun/.deps/libcrun_testing_a-cgroup-utils.Po /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/blake3/blake3.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/blake3/blake3.c:229: warning: uninitvar(CWE-457): Uninitialized variable: parents_array <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c: In function ‘enter_cgroup_v2’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:490:1: warning: leak of ‘cgroup_crun_exec_path’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:493:1: note: (1) entry to ‘enter_cgroup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:497:6: note: (2) following ‘true’ branch (when ‘cgroup_mode == 1’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:499:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:499:13: note: (4) calling ‘enter_cgroup_v2’ from ‘enter_cgroup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:397:1: note: (5) entry to ‘enter_cgroup_v2’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:408:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:411:6: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:419:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:422:9: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:423:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-internal.h:22, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:23: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:426:17: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:439:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:442:3: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:454:10: note: (14) following ‘true’ branch (when ‘init_pid > 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:456:17: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:456:17: note: (16) calling ‘read_unified_cgroup_pid’ from ‘enter_cgroup_v2’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:294:1: note: (17) entry to ‘read_unified_cgroup_pid’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:304:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:307:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:307:10: note: (20) when ‘strstr’ returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:308:6: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:311:8: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:313:8: note: (23) when ‘strchr’ returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:314:6: note: (24) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:316:7: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:318:11: note: (26) calling ‘xstrdup’ from ‘read_unified_cgroup_pid’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (27) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (28) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (30) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (31) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (32) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (33) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:318:11: note: (34) returning to ‘read_unified_cgroup_pid’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:456:17: note: (35) returning to ‘enter_cgroup_v2’ from ‘read_unified_cgroup_pid’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:490:1: note: (36) ‘cgroup_crun_exec_path’ leaks here; was allocated at (30) <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.h:24, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:21, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:22: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘*(void *)p’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second ‘close’ here; first ‘close’ was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘read_unified_cgroup_pid’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of ‘xstrdup(from)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:493:1: note: (1) entry to ‘enter_cgroup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:497:6: note: (2) following ‘true’ branch (when ‘cgroup_mode == 1’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:499:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:499:13: note: (4) calling ‘enter_cgroup_v2’ from ‘enter_cgroup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:397:1: note: (5) entry to ‘enter_cgroup_v2’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:408:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:411:6: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:419:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:422:9: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:423:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:426:17: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:439:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:442:3: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:454:10: note: (14) following ‘true’ branch (when ‘init_pid > 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:456:17: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:456:17: note: (16) calling ‘read_unified_cgroup_pid’ from ‘enter_cgroup_v2’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:294:1: note: (17) entry to ‘read_unified_cgroup_pid’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:304:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:307:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:307:10: note: (20) when ‘strstr’ returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:308:6: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:311:8: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:313:8: note: (23) when ‘strchr’ returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:314:6: note: (24) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:316:7: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:318:11: note: (26) calling ‘xstrdup’ from ‘read_unified_cgroup_pid’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (27) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (28) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (30) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (31) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (32) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (33) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:318:11: note: (34) returning to ‘read_unified_cgroup_pid’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (35) ‘xstrdup(from)’ leaks here; was allocated at (30) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c: In function ‘initialize_cpuset_subsystem_rec’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:53:11: warning: leak of file descriptor ‘open(path, 2686976)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:493:1: note: (1) entry to ‘enter_cgroup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:497:6: note: (2) following ‘false’ branch (when ‘cgroup_mode != 1’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:505:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:505:13: note: (4) calling ‘enter_cgroup_v1’ from ‘enter_cgroup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:323:1: note: (5) entry to ‘enter_cgroup_v1’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:338:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:341:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:342:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:352:19: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:353:8: note: (10) following ‘true’ branch (when ‘has_data != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:359:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:371:10: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:373:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:373:10: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:377:13: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:377:13: note: (16) calling ‘enter_cgroup_subsystem’ from ‘enter_cgroup_v1’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:197:1: note: (17) entry to ‘enter_cgroup_subsystem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:204:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:207:6: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:207:6: note: (20) following ‘true’ branch (when ‘create_if_missing != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:209:13: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:210:10: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:219:11: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:219:10: note: (24) following ‘true’ branch (when the strings are equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:221:17: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:221:17: note: (26) calling ‘initialize_cpuset_subsystem’ from ‘enter_cgroup_subsystem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:148:1: note: (27) entry to ‘initialize_cpuset_subsystem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:150:33: note: (28) calling ‘xstrdup’ from ‘initialize_cpuset_subsystem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (29) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (30) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (32) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (33) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:150:33: note: (34) returning to ‘initialize_cpuset_subsystem’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:155:10: note: (35) calling ‘initialize_cpuset_subsystem_rec’ from ‘initialize_cpuset_subsystem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:43:1: note: (36) entry to ‘initialize_cpuset_subsystem_rec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:53:11: note: (37) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:53:11: note: (38) ‘open(path, 2686976)’ leaks here; was opened at (37) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c: In function ‘initialize_cpuset_subsystem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:155:10: warning: use of NULL where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:493:1: note: (1) entry to ‘enter_cgroup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:497:6: note: (2) following ‘false’ branch (when ‘cgroup_mode != 1’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:505:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:505:13: note: (4) calling ‘enter_cgroup_v1’ from ‘enter_cgroup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:323:1: note: (5) entry to ‘enter_cgroup_v1’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:325:22: note: (6) ‘content’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:338:6: note: (7) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:341:9: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:342:6: note: (9) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:352:19: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:353:8: note: (11) following ‘true’ branch (when ‘has_data != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:359:11: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:371:10: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:373:10: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:373:10: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:377:13: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:377:13: note: (17) calling ‘enter_cgroup_subsystem’ from ‘enter_cgroup_v1’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:197:1: note: (18) entry to ‘enter_cgroup_subsystem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:200:22: note: (19) ‘cgroup_path’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:204:6: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:207:6: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:207:6: note: (22) following ‘true’ branch (when ‘create_if_missing != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:209:13: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:210:10: note: (24) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:219:11: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:219:10: note: (26) following ‘true’ branch (when the strings are equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:221:17: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:221:17: note: (28) calling ‘initialize_cpuset_subsystem’ from ‘enter_cgroup_subsystem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:148:1: note: (29) entry to ‘initialize_cpuset_subsystem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:150:33: note: (30) calling ‘xstrdup’ from ‘initialize_cpuset_subsystem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (31) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (32) following ‘true’ branch (when ‘str’ is NULL)... <--[csmock-gcc-wrapper] cc1: note: (33) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:150:33: note: (34) returning to ‘initialize_cpuset_subsystem’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:155:10: note: (35) argument 1 (‘xstrdup(path)’) NULL where non-null expected <--[csmock-gcc-wrapper] : note: argument 1 of ‘__builtin_strlen’ must be non-null /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c: In function ‘enter_cgroup_v2’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:461:15: warning: use of NULL ‘cgroup_crun_exec_path’ where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:493:1: note: (1) entry to ‘enter_cgroup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:497:6: note: (2) following ‘true’ branch (when ‘cgroup_mode == 1’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:499:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:499:13: note: (4) calling ‘enter_cgroup_v2’ from ‘enter_cgroup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:397:1: note: (5) entry to ‘enter_cgroup_v2’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:399:22: note: (6) ‘cgroup_path_procs’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:400:22: note: (7) ‘cgroup_path_procs’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:408:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:411:6: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:419:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:422:9: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:423:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:426:17: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:439:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:442:3: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:450:26: note: (16) ‘cgroup_crun_exec_path’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:451:26: note: (17) ‘cgroup_crun_exec_path’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:454:10: note: (18) following ‘true’ branch (when ‘init_pid > 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:456:17: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:456:17: note: (20) calling ‘read_unified_cgroup_pid’ from ‘enter_cgroup_v2’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:294:1: note: (21) entry to ‘read_unified_cgroup_pid’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:299:22: note: (22) ‘content’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:307:10: note: (23) when ‘strstr’ returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:308:6: note: (24) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:86:25: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:309:12: note: in expansion of macro ‘crun_make_error’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:456:17: note: (26) returning to ‘enter_cgroup_v2’ from ‘read_unified_cgroup_pid’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:457:14: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:461:15: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:461:15: note: (29) ‘cgroup_crun_exec_path’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:461:15: note: (30) ‘cgroup_crun_exec_path’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:461:15: note: (31) argument 2 (‘cgroup_crun_exec_path’) NULL where non-null expected <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.h:23: <--[csmock-gcc-wrapper] /usr/include/string.h:159:12: note: argument 2 of ‘strncmp’ must be non-null <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-internal.h:22, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:23: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘write_controller_file’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of ‘xmalloc(controllers_len + 1)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:758:1: note: (1) entry to ‘write_controller_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:773:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:775:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:776:6: note: (4) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (6) calling ‘xmalloc’ from ‘write_controller_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (7) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (8) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (9) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (12) returning to ‘write_controller_file’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (13) ‘xmalloc(controllers_len + 1)’ leaks here; was allocated at (8) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘maybe_make_cgroup_threaded’ at src/libcrun/cgroup-utils.c:79:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-‘free’ of ‘*(void **)&content’ [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c: In function ‘maybe_make_cgroup_threaded’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:873:1: note: (1) entry to ‘enable_controllers’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:881:9: note: (2) calling ‘read_available_controllers’ from ‘enable_controllers’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:720:1: note: (3) entry to ‘read_available_controllers’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:730:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:733:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:881:9: note: (6) returning to ‘enable_controllers’ from ‘read_available_controllers’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:882:6: note: (7) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:888:9: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:888:9: note: (9) calling ‘write_controller_file’ from ‘enable_controllers’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:758:1: note: (10) entry to ‘write_controller_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:773:6: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:775:9: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:776:6: note: (13) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (15) calling ‘xmalloc’ from ‘write_controller_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (16) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (19) returning to ‘write_controller_file’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:807:10: note: (20) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (22) calling ‘maybe_make_cgroup_threaded’ from ‘write_controller_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:75:1: note: (23) entry to ‘maybe_make_cgroup_threaded’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:86:10: note: (24) inlined call to ‘consume_slashes’ from ‘maybe_make_cgroup_threaded’ <--[csmock-gcc-wrapper] In function ‘consume_slashes’, inlined from ‘maybe_make_cgroup_threaded’ at src/libcrun/cgroup-utils.c:86:10: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:233:13: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c: In function ‘maybe_make_cgroup_threaded’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:88:20: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:88:20: note: (27) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (28) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:79:22: note: (29) inlined call to ‘cleanup_freep’ from ‘maybe_make_cgroup_threaded’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘maybe_make_cgroup_threaded’ at src/libcrun/cgroup-utils.c:79:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (30) first ‘free’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c: In function ‘maybe_make_cgroup_threaded’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (31) returning to ‘write_controller_file’ from ‘maybe_make_cgroup_threaded’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:810:14: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (33) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:817:48: note: (34) following ‘true’ branch (when ‘attempts_left != -1’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:822:11: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:844:14: note: (36) following ‘false’ branch (when ‘repeat == 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:865:14: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:865:14: note: (38) calling ‘read_available_controllers’ from ‘write_controller_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:720:1: note: (39) entry to ‘read_available_controllers’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:730:6: note: (40) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:733:9: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:865:14: note: (42) returning to ‘write_controller_file’ from ‘read_available_controllers’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:888:9: note: (43) returning to ‘enable_controllers’ from ‘write_controller_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:889:6: note: (44) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:892:34: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:892:10: note: (46) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:894:11: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:896:17: note: (48) calling ‘write_controller_file’ from ‘enable_controllers’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:758:1: note: (49) entry to ‘write_controller_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:773:6: note: (50) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:775:9: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:776:6: note: (52) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (54) calling ‘xmalloc’ from ‘write_controller_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (55) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (56) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (58) returning to ‘write_controller_file’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:807:10: note: (59) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (60) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (61) calling ‘maybe_make_cgroup_threaded’ from ‘write_controller_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:75:1: note: (62) entry to ‘maybe_make_cgroup_threaded’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:86:10: note: (63) inlined call to ‘consume_slashes’ from ‘maybe_make_cgroup_threaded’ <--[csmock-gcc-wrapper] In function ‘consume_slashes’, inlined from ‘maybe_make_cgroup_threaded’ at src/libcrun/cgroup-utils.c:86:10: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:233:13: note: (64) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c: In function ‘maybe_make_cgroup_threaded’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:88:20: note: (65) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:88:20: note: (66) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (67) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:79:22: note: (68) inlined call to ‘cleanup_freep’ from ‘maybe_make_cgroup_threaded’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘maybe_make_cgroup_threaded’ at src/libcrun/cgroup-utils.c:79:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (69) second ‘free’ here; first ‘free’ was at (30) <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘maybe_make_cgroup_threaded’ at src/libcrun/cgroup-utils.c:77:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-‘free’ of ‘*(void **)&cgroup_path_type’ [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c: In function ‘maybe_make_cgroup_threaded’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:873:1: note: (1) entry to ‘enable_controllers’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:881:9: note: (2) calling ‘read_available_controllers’ from ‘enable_controllers’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:720:1: note: (3) entry to ‘read_available_controllers’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:730:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:733:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:881:9: note: (6) returning to ‘enable_controllers’ from ‘read_available_controllers’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:882:6: note: (7) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:888:9: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:888:9: note: (9) calling ‘write_controller_file’ from ‘enable_controllers’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:758:1: note: (10) entry to ‘write_controller_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:773:6: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:775:9: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:776:6: note: (13) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (15) calling ‘xmalloc’ from ‘write_controller_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (16) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (19) returning to ‘write_controller_file’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:807:10: note: (20) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (22) calling ‘maybe_make_cgroup_threaded’ from ‘write_controller_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:75:1: note: (23) entry to ‘maybe_make_cgroup_threaded’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:86:10: note: (24) inlined call to ‘consume_slashes’ from ‘maybe_make_cgroup_threaded’ <--[csmock-gcc-wrapper] In function ‘consume_slashes’, inlined from ‘maybe_make_cgroup_threaded’ at src/libcrun/cgroup-utils.c:86:10: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:233:13: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c: In function ‘maybe_make_cgroup_threaded’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:88:20: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:88:20: note: (27) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (28) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:77:22: note: (29) inlined call to ‘cleanup_freep’ from ‘maybe_make_cgroup_threaded’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘maybe_make_cgroup_threaded’ at src/libcrun/cgroup-utils.c:77:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (30) first ‘free’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c: In function ‘maybe_make_cgroup_threaded’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (31) returning to ‘write_controller_file’ from ‘maybe_make_cgroup_threaded’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:810:14: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (33) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:817:48: note: (34) following ‘true’ branch (when ‘attempts_left != -1’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:822:11: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:844:14: note: (36) following ‘false’ branch (when ‘repeat == 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:865:14: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:865:14: note: (38) calling ‘read_available_controllers’ from ‘write_controller_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:720:1: note: (39) entry to ‘read_available_controllers’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:730:6: note: (40) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:733:9: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:865:14: note: (42) returning to ‘write_controller_file’ from ‘read_available_controllers’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:888:9: note: (43) returning to ‘enable_controllers’ from ‘write_controller_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:889:6: note: (44) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:892:34: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:892:10: note: (46) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:894:11: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:896:17: note: (48) calling ‘write_controller_file’ from ‘enable_controllers’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:758:1: note: (49) entry to ‘write_controller_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:773:6: note: (50) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:775:9: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:776:6: note: (52) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (54) calling ‘xmalloc’ from ‘write_controller_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (55) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (56) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (58) returning to ‘write_controller_file’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:807:10: note: (59) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (60) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (61) calling ‘maybe_make_cgroup_threaded’ from ‘write_controller_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:75:1: note: (62) entry to ‘maybe_make_cgroup_threaded’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:86:10: note: (63) inlined call to ‘consume_slashes’ from ‘maybe_make_cgroup_threaded’ <--[csmock-gcc-wrapper] In function ‘consume_slashes’, inlined from ‘maybe_make_cgroup_threaded’ at src/libcrun/cgroup-utils.c:86:10: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:233:13: note: (64) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c: In function ‘maybe_make_cgroup_threaded’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:88:20: note: (65) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:88:20: note: (66) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (67) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:77:22: note: (68) inlined call to ‘cleanup_freep’ from ‘maybe_make_cgroup_threaded’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘maybe_make_cgroup_threaded’ at src/libcrun/cgroup-utils.c:77:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (69) second ‘free’ here; first ‘free’ was at (30) <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.h:24, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:21, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:22: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘*(void *)p’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second ‘close’ here; first ‘close’ was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘maybe_make_cgroup_threaded’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of ‘xstrdup(t)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:758:1: note: (1) entry to ‘write_controller_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:773:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:775:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:776:6: note: (4) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (6) calling ‘xmalloc’ from ‘write_controller_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (7) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (10) returning to ‘write_controller_file’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:807:10: note: (11) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (13) calling ‘maybe_make_cgroup_threaded’ from ‘write_controller_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:75:1: note: (14) entry to ‘maybe_make_cgroup_threaded’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:88:20: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:91:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:92:6: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:95:9: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:96:6: note: (19) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:99:12: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:106:6: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:109:12: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:109:12: note: (23) calling ‘xstrdup’ from ‘maybe_make_cgroup_threaded’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (24) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (25) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (27) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (28) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crumake[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-cgroup-resources.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup-resources.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup-resources.o `test -f 'src/libcrun/cgroup-resources.c' || echo './'`src/libcrun/cgroup-resources.c mv -f src/libcrun/.deps/libcrun_testing_a-cgroup-resources.Tpo src/libcrun/.deps/libcrun_testing_a-cgroup-resources.Po n-1.18.2/src/libcrun/utils.h:222:6: note: (29) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (30) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:109:12: note: (31) returning to ‘maybe_make_cgroup_threaded’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (32) ‘xstrdup(t)’ leaks here; was allocated at (27) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c: In function ‘libcrun_get_cgroup_dirfd’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:968:17: warning: leak of file descriptor ‘open(path_to_cgroup, 2818048)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:944:1: note: (1) entry to ‘libcrun_get_cgroup_dirfd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:952:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:955:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:955:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:958:6: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:958:6: note: (6) following ‘false’ branch (when ‘status’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:961:30: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:961:7: note: (8) inlined call to ‘is_empty_string’ from ‘libcrun_get_cgroup_dirfd’ <--[csmock-gcc-wrapper] In function ‘is_empty_string’, inlined from ‘libcrun_get_cgroup_dirfd’ at src/libcrun/cgroup-utils.c:961:7: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:395:20: note: (9) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c: In function ‘libcrun_get_cgroup_dirfd’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:964:9: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:965:6: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:968:17: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:968:17: note: (13) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:968:17: note: (14) ‘open(path_to_cgroup, 2818048)’ leaks here; was opened at (13) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-internal.h:22, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:23: <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘check_cgroup_v2_controller_available_wrapper’ at src/libcrun/cgroup-resources.c:141:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-‘free’ of ‘*(void **)&controllers’ [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c: In function ‘check_cgroup_v2_controller_available_wrapper’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to ‘update_cgroup_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1370:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (4) following ‘false’ branch (when ‘path’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (6) following ‘case 1:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling ‘update_cgroup_v2_resources’ from ‘update_cgroup_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to ‘update_cgroup_v2_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1293:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1297:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1301:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1304:16: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1323:6: note: (16) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1325:13: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1325:13: note: (18) calling ‘write_cpu_resources’ from ‘update_cgroup_v2_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:950:1: note: (19) entry to ‘write_cpu_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1019:10: note: (20) following ‘true’ branch (when ‘cgroup2 != 0’)... <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.h:24, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:21, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:22: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:86:25: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1020:16: note: in expansion of macro ‘crun_make_error’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1325:13: note: (22) returning to ‘update_cgroup_v2_resources’ from ‘write_cpu_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1326:10: note: (23) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1329:13: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1329:13: note: (25) calling ‘write_cpuset_resources’ from ‘update_cgroup_v2_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1060:1: note: (26) entry to ‘write_cpuset_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1065:6: note: (27) following ‘false’ branch (when ‘cpu’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1068:10: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1068:6: note: (29) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1070:13: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1070:13: note: (31) calling ‘write_file_and_check_controllers_at’ from ‘write_cpuset_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:188:1: note: (32) entry to ‘write_file_and_check_controllers_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:194:6: note: (33) following ‘true’ branch (when ‘cgroup2 != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (35) calling ‘check_cgroup_v2_controller_available_wrapper’ from ‘write_file_and_check_controllers_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:131:1: note: (36) entry to ‘check_cgroup_v2_controller_available_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:133:6: note: (37) following ‘false’ branch... <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:24: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:136:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:139:6: note: (39) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (41) calling ‘xstrdup’ from ‘check_cgroup_v2_controller_available_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (42) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (43) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (45) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (46) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (47) returning to ‘check_cgroup_v2_controller_available_wrapper’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:152:12: note: (48) when ‘strchr’ returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:153:10: note: (49) following ‘false’ branch (when ‘it’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:158:11: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:161:10: note: (51) following ‘true’ branch (when the strings are equal)... <--[csmock-gcc-wrapper] cc1: note: (52) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (53) inlined call to ‘cleanup_freep’ from ‘check_cgroup_v2_controller_available_wrapper’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘check_cgroup_v2_controller_available_wrapper’ at src/libcrun/cgroup-resources.c:141:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (54) first ‘free’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c: In function ‘check_cgroup_v2_controller_available_wrapper’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (55) returning to ‘write_file_and_check_controllers_at’ from ‘check_cgroup_v2_controller_available_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1070:13: note: (56) returning to ‘write_cpuset_resources’ from ‘write_file_and_check_controllers_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1072:10: note: (57) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1075:10: note: (58) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1075:6: note: (59) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1077:13: note: (60) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1077:13: note: (61) calling ‘write_file_and_check_controllers_at’ from ‘write_cpuset_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:188:1: note: (62) entry to ‘write_file_and_check_controllers_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:194:6: note: (63) following ‘true’ branch (when ‘cgroup2 != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (64) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (65) calling ‘check_cgroup_v2_controller_available_wrapper’ from ‘write_file_and_check_controllers_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:131:1: note: (66) entry to ‘check_cgroup_v2_controller_available_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:133:6: note: (67) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:136:3: note: (68) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:139:6: note: (69) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (71) calling ‘xstrdup’ from ‘check_cgroup_v2_controller_available_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (72) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (73) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (74) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (75) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (76) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (77) returning to ‘check_cgroup_v2_controller_available_wrapper’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (78) inlined call to ‘cleanup_freep’ from ‘check_cgroup_v2_controller_available_wrapper’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘check_cgroup_v2_controller_available_wrapper’ at src/libcrun/cgroup-resources.c:141:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (79) second ‘free’ here; first ‘free’ was at (54) <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘check_cgroup_v2_controller_available_wrapper’ at src/libcrun/cgroup-resources.c:141:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-‘free’ of ‘*(void **)&controllers’ [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c: In function ‘check_cgroup_v2_controller_available_wrapper’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to ‘update_cgroup_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1370:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (4) following ‘false’ branch (when ‘path’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (6) following ‘case 1:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling ‘update_cgroup_v2_resources’ from ‘update_cgroup_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to ‘update_cgroup_v2_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1293:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1297:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1301:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1304:16: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1323:6: note: (16) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1325:13: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1325:13: note: (18) calling ‘write_cpu_resources’ from ‘update_cgroup_v2_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:950:1: note: (19) entry to ‘write_cpu_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1019:10: note: (20) following ‘true’ branch (when ‘cgroup2 != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:86:25: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1020:16: note: in expansion of macro ‘crun_make_error’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1325:13: note: (22) returning to ‘update_cgroup_v2_resources’ from ‘write_cpu_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1326:10: note: (23) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1329:13: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1329:13: note: (25) calling ‘write_cpuset_resources’ from ‘update_cgroup_v2_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1060:1: note: (26) entry to ‘write_cpuset_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1065:6: note: (27) following ‘false’ branch (when ‘cpu’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1068:10: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1068:6: note: (29) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1070:13: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1070:13: note: (31) calling ‘write_file_and_check_controllers_at’ from ‘write_cpuset_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:188:1: note: (32) entry to ‘write_file_and_check_controllers_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:194:6: note: (33) following ‘true’ branch (when ‘cgroup2 != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (35) calling ‘check_cgroup_v2_controller_available_wrapper’ from ‘write_file_and_check_controllers_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:131:1: note: (36) entry to ‘check_cgroup_v2_controller_available_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:133:6: note: (37) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:136:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:139:6: note: (39) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (41) calling ‘xstrdup’ from ‘check_cgroup_v2_controller_available_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (42) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (43) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (45) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (46) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (47) returning to ‘check_cgroup_v2_controller_available_wrapper’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:152:12: note: (48) when ‘strchr’ returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:153:10: note: (49) following ‘false’ branch (when ‘it’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:158:11: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:161:10: note: (51) following ‘true’ branch (when the strings are equal)... <--[csmock-gcc-wrapper] cc1: note: (52) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (53) inlined call to ‘cleanup_freep’ from ‘check_cgroup_v2_controller_available_wrapper’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘check_cgroup_v2_controller_available_wrapper’ at src/libcrun/cgroup-resources.c:141:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (54) first ‘free’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c: In function ‘check_cgroup_v2_controller_available_wrapper’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (55) returning to ‘write_file_and_check_controllers_at’ from ‘check_cgroup_v2_controller_available_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1070:13: note: (56) returning to ‘write_cpuset_resources’ from ‘write_file_and_check_controllers_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1072:10: note: (57) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1075:10: note: (58) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1075:6: note: (59) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1077:13: note: (60) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1077:13: note: (61) calling ‘write_file_and_check_controllers_at’ from ‘write_cpuset_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:188:1: note: (62) entry to ‘write_file_and_check_controllers_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:194:6: note: (63) following ‘true’ branch (when ‘cgroup2 != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (64) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (65) calling ‘check_cgroup_v2_controller_available_wrapper’ from ‘write_file_and_check_controllers_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:131:1: note: (66) entry to ‘check_cgroup_v2_controller_available_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:133:6: note: (67) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:136:3: note: (68) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:139:6: note: (69) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (71) calling ‘xstrdup’ from ‘check_cgroup_v2_controller_available_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (72) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (73) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (74) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (75) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (76) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (77) returning to ‘check_cgroup_v2_controller_available_wrapper’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:152:12: note: (78) when ‘strchr’ returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:153:10: note: (79) following ‘false’ branch (when ‘it’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:158:11: note: (80) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:161:10: note: (81) following ‘true’ branch (when the strings are equal)... <--[csmock-gcc-wrapper] cc1: note: (82) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (83) inlined call to ‘cleanup_freep’ from ‘check_cgroup_v2_controller_available_wrapper’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘check_cgroup_v2_controller_available_wrapper’ at src/libcrun/cgroup-resources.c:141:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (84) second ‘free’ here; first ‘free’ was at (54) <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘*(void *)p’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second ‘close’ here; first ‘close’ was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘wfd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to ‘update_cgroup_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1370:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (4) following ‘false’ branch (when ‘path’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (6) following ‘case 1:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling ‘update_cgroup_v2_resources’ from ‘update_cgroup_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to ‘update_cgroup_v2_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1293:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1297:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1301:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1304:16: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1333:6: note: (16) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1335:13: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1335:13: note: (18) calling ‘write_blkio_resources’ from ‘update_cgroup_v2_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:271:1: note: (19) entry to ‘write_blkio_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:278:6: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:311:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:311:6: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:320:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:320:6: note: (24) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:322:10: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:322:10: note: (26) following ‘true’ branch (when ‘cgroup2 != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:324:29: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:328:14: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (29) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:324:29: note: (30) inlined call to ‘cleanup_closep’ from ‘write_blkio_resources’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘write_blkio_resources’ at src/libcrun/cgroup-resources.c:324:29: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (31) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (32) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:324:29: note: (33) inlined call to ‘cleanup_closep’ from ‘write_blkio_resources’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘write_blkio_resources’ at src/libcrun/cgroup-resources.c:324:29: cc1: note: (34) calling ‘cleanup_closep.part.0’ from ‘write_blkio_resources’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (35) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (36) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (37) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (38) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (39) second ‘close’ here; first ‘close’ was at (36) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘wfd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to ‘update_cgroup_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1370:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (4) following ‘false’ branch (when ‘path’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (6) following ‘case 1:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling ‘update_cgroup_v2_resources’ from ‘update_cgroup_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to ‘update_cgroup_v2_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1293:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1297:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1301:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1304:16: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1333:6: note: (16) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1335:13: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1335:13: note: (18) calling ‘write_blkio_resources’ from ‘update_cgroup_v2_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:271:1: note: (19) entry to ‘write_blkio_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:311:6: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:320:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:383:6: note: (22) following ‘true’ branch (when ‘cgroup2 != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:385:25: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:389:10: note: (24) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:395:13: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:397:10: note: (26) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:400:13: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:402:10: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:405:13: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:407:10: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:410:13: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:412:10: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:385:25: note: (33) inlined call to ‘cleanup_closep’ from ‘write_blkio_resources’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘write_blkio_resources’ at src/libcrun/cgroup-resources.c:385:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:7: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (35) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (36) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:385:25: note: (37) inlined call to ‘cleanup_closep’ from ‘write_blkio_resources’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘write_blkio_resources’ at src/libcrun/cgroup-resources.c:385:25: cc1: note: (38) calling ‘cleanup_closep.part.0’ from ‘write_blkio_resources’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (39) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (40) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (41) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (42) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (43) second ‘close’ here; first ‘close’ was at (40) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘check_cgroup_v2_controller_available_wrapper’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of ‘xstrdup(name)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to ‘update_cgroup_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1370:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (4) following ‘false’ branch (when ‘path’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (6) following ‘case 1:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling ‘update_cgroup_v2_resources’ from ‘update_cgroup_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to ‘update_cgroup_v2_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1293:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1297:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1301:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1304:16: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1333:6: note: (16) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1335:13: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1335:13: note: (18) calling ‘write_blkio_resources’ from ‘update_cgroup_v2_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:271:1: note: (19) entry to ‘write_blkio_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:311:6: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:320:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:383:6: note: (22) following ‘true’ branch (when ‘cgroup2 != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:385:25: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:389:10: note: (24) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:391:39: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:392:18: note: (26) calling ‘check_cgroup_v2_controller_available_wrapper’ from ‘write_blkio_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:131:1: note: (27) entry to ‘check_cgroup_v2_controller_available_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:133:6: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:136:3: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:139:6: note: (30) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (32) calling ‘xstrdup’ from ‘check_cgroup_v2_controller_available_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (33) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (34) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (36) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (37) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (38) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (39) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (40) returning to ‘check_cgroup_v2_controller_available_wrapper’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (41) ‘xstrdup(name)’ leaks here; was allocated at (36) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:152:12: warning: use of NULL ‘controllers’ where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to ‘update_cgroup_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1370:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (4) following ‘false’ branch (when ‘path’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (6) following ‘case 1:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling ‘update_cgroup_v2_resources’ from ‘update_cgroup_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to ‘update_cgroup_v2_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1289:22: note: (10) ‘cgroup_path’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1293:6: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1296:9: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1297:6: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1300:18: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1301:6: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1304:16: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1333:6: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1335:13: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1335:13: note: (19) calling ‘write_blkio_resources’ from ‘update_cgroup_v2_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:271:1: note: (20) entry to ‘write_blkio_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:283:10: note: (21) following ‘true’ branch (when ‘cgroup2 != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:291:17: note: (22) inlined call to ‘write_cgroup_file’ from ‘write_blkio_resources’ <--[csmock-gcc-wrapper] In function ‘write_cgroup_file’, inlined from ‘write_blkio_resources’ at src/libcrun/cgroup-resources.c:291:17: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:65:10: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c: In function ‘check_cgroup_v2_controller_available_wrapper’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:313:10: note: (24) following ‘true’ branch (when ‘cgroup2 != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:86:25: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:314:16: note: in expansion of macro ‘crun_make_error’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1335:13: note: (26) returning to ‘update_cgroup_v2_resources’ from ‘write_blkio_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1336:10: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1340:16: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1340:6: note: (29) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1342:13: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1342:13: note: (31) calling ‘write_hugetlb_resources’ from ‘update_cgroup_v2_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:479:1: note: (32) entry to ‘write_hugetlb_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:485:17: note: (33) following ‘true’ branch (when ‘i < htlb_len’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:487:26: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:487:26: note: (35) ‘filename’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:492:32: note: (36) following ‘true’ branch (when ‘cgroup2 != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:494:50: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:497:13: note: (38) calling ‘write_file_and_check_controllers_at’ from ‘write_hugetlb_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:188:1: note: (39) entry to ‘write_file_and_check_controllers_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:193:9: note: (40) calling ‘write_cgroup_file_or_alias’ from ‘write_file_and_check_controllers_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:69:1: note: (41) entry to ‘write_cgroup_file_or_alias’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:74:6: note: (42) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (43) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:193:9: note: (44) returning to ‘write_file_and_check_controllers_at’ from ‘write_cgroup_file_or_alias’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:194:6: note: (45) following ‘true’ branch (when ‘cgroup2 != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (47) calling ‘check_cgroup_v2_controller_available_wrapper’ from ‘write_file_and_check_controllers_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:131:1: note: (48) entry to ‘check_cgroup_v2_controller_available_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:133:6: note: (49) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:136:3: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:139:6: note: (51) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (52) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (53) ‘controllers’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:144:13: note: (54) ‘controllers’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (55) calling ‘xstrdup’ from ‘check_cgroup_v2_controller_available_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (56) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (57) following ‘true’ branch (when ‘str’ is NULL)... <--[csmock-gcc-wrapper] cc1: note: (58) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (59) returning to ‘check_cgroup_v2_controller_available_wrapper’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:152:12: note: (60) argument 1 (‘xstrdup(name)’) NULL where non-null expected <--[csmock-gcc-wrapper] : note: argument 1 of ‘__builtin_strchr’ must be non-null /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c: In function ‘update_cgroup_v2_resources’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1300:18: warning: leak of file descriptor ‘open(cgroup_path, 589824)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to ‘update_cgroup_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resoumake[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-cgroup-systemd.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup-systemd.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup-systemd.o `test -f 'src/libcrun/cgroup-systemd.c' || echo './'`src/libcrun/cgroup-systemd.c mv -f src/libcrun/.deps/libcrun_testing_a-cgroup-systemd.Tpo src/libcrun/.deps/libcrun_testing_a-cgroup-systemd.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-chroot_realpath.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-chroot_realpath.Tpo -c -o src/libcrun/libcrun_testing_a-chroot_realpath.o `test -f 'src/libcrun/chroot_realpath.c' || echo './'`src/libcrun/chroot_realpath.c mv -f src/libcrun/.deps/libcrun_testing_a-chroot_realpath.Tpo src/libcrun/.deps/libcrun_testing_a-chroot_realpath.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-cloned_binary.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cloned_binary.Tpo -c -o src/libcrun/libcrun_testing_a-cloned_binary.o `test -f 'src/libcrun/cloned_binary.c' || echo './'`src/libcrun/cloned_binary.c mv -f src/libcrun/.deps/libcrun_testing_a-cloned_binary.Tpo src/libcrun/.deps/libcrun_testing_a-cloned_binary.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-utils.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-utils.Tpo -c -o src/libcrun/libcrun_testing_a-utils.o `test -f 'src/libcrun/utils.c' || echo './'`src/libcrun/utils.c mv -f src/libcrun/.deps/libcrun_testing_a-utils.Tpo src/libcrun/.deps/libcrun_testing_a-utils.Po rces.c:1370:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (4) following ‘false’ branch (when ‘path’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (6) following ‘case 1:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling ‘update_cgroup_v2_resources’ from ‘update_cgroup_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to ‘update_cgroup_v2_resources’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1293:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1297:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1300:18: note: (14) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1300:18: note: (15) ‘open(cgroup_path, 589824)’ leaks here; was opened at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-systemd.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.h:24, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:21, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-systemd.c:22: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘*(void *)p’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second ‘close’ here; first ‘close’ was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/chroot_realpath.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:43: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘*(void *)p’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second ‘close’ here; first ‘close’ was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c: In function ‘fetchve’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:40: warning: leak of ‘read_file("/proc/self/cmdline", &cmdline_size)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:520:5: note: (1) entry to ‘ensure_cloned_binary’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:527:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:530:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:530:13: note: (4) calling ‘fetchve’ from ‘ensure_cloned_binary’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:231:12: note: (5) entry to ‘fetchve’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:236:19: note: (6) calling ‘read_file’ from ‘fetchve’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:168:14: note: (7) entry to ‘read_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:173:12: note: (8) following ‘false’ branch (when ‘length’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:176:14: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:177:12: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:180:17: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:185:20: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:40: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:24: note: (16) calling ‘xrealloc’ from ‘read_file’ <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:61: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (17) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (19) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:24: note: (22) returning to ‘read_file’ from ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:185:20: note: (23) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (25) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:194:9: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:236:19: note: (27) returning to ‘fetchve’ from ‘read_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:237:12: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:240:13: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:240:13: note: (30) calling ‘parse_xargs’ from ‘fetchve’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:208:12: note: (31) entry to ‘parse_xargs’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:213:12: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (33) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:216:20: note: (34) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:217:20: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:218:27: note: (36) calling ‘xrealloc’ from ‘parse_xargs’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (37) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (38) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:218:27: note: (41) returning to ‘parse_xargs’ from ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:216:20: note: (42) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:217:20: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:218:27: note: (44) calling ‘xrealloc’ from ‘parse_xargs’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (45) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (46) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (47) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (48) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:218:27: note: (49) returning to ‘parse_xargs’ from ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:216:20: note: (50) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:222:10: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:240:13: note: (52) returning to ‘fetchve’ from ‘parse_xargs’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:40: note: (53) ‘read_file("/proc/self/cmdline", &cmdline_size)’ leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c: In function ‘parse_xargs’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:222:24: warning: dereference of NULL ‘0’ [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:520:5: note: (1) entry to ‘ensure_cloned_binary’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:523:16: note: (2) ‘argv’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:527:12: note: (3) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:530:13: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:530:13: note: (5) calling ‘fetchve’ from ‘ensure_cloned_binary’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:231:12: note: (6) entry to ‘fetchve’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:236:19: note: (7) calling ‘read_file’ from ‘fetchve’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:168:14: note: (8) entry to ‘read_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:173:12: note: (9) following ‘false’ branch (when ‘length’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:176:14: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:177:12: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:180:17: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:185:20: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:40: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:24: note: (17) calling ‘xrealloc’ from ‘read_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (18) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (19) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:24: note: (22) returning to ‘read_file’ from ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:185:20: note: (23) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (25) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:194:9: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:236:19: note: (27) returning to ‘fetchve’ from ‘read_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:237:12: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:240:13: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:240:13: note: (30) calling ‘parse_xargs’ from ‘fetchve’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:208:12: note: (31) entry to ‘parse_xargs’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:213:12: note: (32) following ‘false’ branch (when ‘data’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:213:22: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:213:22: note: (34) ‘argv’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:213:19: note: (35) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (36) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:216:20: note: (37) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:222:10: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:222:10: note: (39) ‘argv’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:222:18: note: (40) ‘argv’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:222:24: note: (41) dereference of NULL ‘*output + (long unsigned int)num * 8’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function ‘format_default_id_mapping’: <--[gcc] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1560:12: warning: ‘from’ may be used uninitialized [-Wmaybe-uninitialized] <--[gcc] 1560 | from += used; | ^~ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1544:12: note: ‘from’ was declared here <--[gcc] 1544 | uint32_t from, available; | ^~~~ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1561:17: warning: ‘available’ may be used uninitialized [-Wmaybe-uninitialized] <--[gcc] 1561 | available -= used; | ^~ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1544:18: note: ‘available’ was declared here <--[gcc] 1544 | uint32_t from, available; | ^~~~~~~~~ In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:21: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘read_dir_entries’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of ‘xmalloc(128)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2542:1: note: (1) entry to ‘read_dir_entries’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2551:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (4) calling ‘xmalloc’ from ‘read_dir_entries’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (5) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (6) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (7) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (10) returning to ‘read_dir_entries’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (11) ‘xmalloc(128)’ leaks here; was allocated at (6) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘read_all_fd_with_size_hint’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of ‘xmalloc(allocated + 1)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2475:1: note: (1) entry to ‘read_file_as_long_or_default’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2483:9: note: (2) calling ‘read_all_file’ from ‘read_file_as_long_or_default’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1050:1: note: (3) entry to ‘read_all_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1055:10: note: (4) calling ‘read_all_file_at’ from ‘read_all_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1038:1: note: (5) entry to ‘read_all_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1043:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1046:10: note: (7) inlined call to ‘read_all_fd’ from ‘read_all_file_at’ <--[csmock-gcc-wrapper] In function ‘read_all_fd’, inlined from ‘read_all_file_at’ at src/libcrun/utils.c:1046:10: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:305:10: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:305:10: note: (9) calling ‘read_all_fd_with_size_hint’ from ‘read_all_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function ‘read_all_fd_with_size_hint’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:975:1: note: (10) entry to ‘read_all_fd_with_size_hint’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:983:6: note: (11) following ‘false’ branch (when ‘size_hint == 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:987:13: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:987:13: note: (13) calling ‘get_file_size’ from ‘read_all_fd_with_size_hint’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:657:1: note: (14) entry to ‘get_file_size’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:667:6: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:673:14: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:987:13: note: (17) returning to ‘read_all_fd_with_size_hint’ from ‘get_file_size’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:988:10: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:991:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:995:9: note: (20) calling ‘xmalloc’ from ‘read_all_fd_with_size_hint’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (21) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (22) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (23) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (24) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:995:9: note: (26) returning to ‘read_all_fd_with_size_hint’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (27) ‘xmalloc(allocated + 1)’ leaks here; was allocated at (22) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘copy_from_fd_to_fd’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of ‘xmalloc(get_page_size())’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following ‘true’ branch (when ‘de’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling ‘copy_rec_stat_file_at’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following ‘true’ branch... <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:24: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to ‘copy_recursive_fd_to_fd’ from ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following ‘case 32768:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2113:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2115:14: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2118:20: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2119:14: note: (19) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2122:17: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2122:17: note: (21) calling ‘copy_from_fd_to_fd’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1279:1: note: (22) entry to ‘copy_from_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1304:16: note: (23) calling ‘xmalloc’ from ‘copy_from_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (24) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (25) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (26) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1304:16: note: (29) returning to ‘copy_from_fd_to_fd’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (30) ‘xmalloc(get_page_size())’ leaks here; was allocated at (25) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘copy_xattr’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of ‘xmalloc((long unsigned int)(xattr_len + 1))’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following ‘true’ branch (when ‘de’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling ‘copy_rec_stat_file_at’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to ‘copy_recursive_fd_to_fd’ from ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following ‘case 16384:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2136:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2138:14: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2141:19: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2142:14: note: (19) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2145:20: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2146:14: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (23) calling ‘copy_xattr’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1988:1: note: (24) entry to ‘copy_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1995:6: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2003:6: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2003:6: note: (27) following ‘false’ branch (when ‘xattr_len != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:28: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:9: note: (29) calling ‘xmalloc’ from ‘copy_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (30) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (31) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (32) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (33) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:9: note: (35) returning to ‘copy_xattr’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (36) ‘xmalloc((long unsigned int)(xattr_len + 1))’ leaks here; was allocated at (31) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘safe_read_xattr’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of ‘xmalloc((long unsigned int)(current_size + 1))’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following ‘true’ branch (when ‘de’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling ‘copy_rec_stat_file_at’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to ‘copy_recursive_fd_to_fd’ from ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following ‘case 16384:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2136:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2138:14: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2141:19: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2142:14: note: (19) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2145:20: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2146:14: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (23) calling ‘copy_xattr’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1988:1: note: (24) entry to ‘copy_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1995:6: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2003:6: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2003:6: note: (27) following ‘false’ branch (when ‘xattr_len != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:28: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:9: note: (29) calling ‘xmalloc’ from ‘copy_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (30) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:9: note: (33) returning to ‘copy_xattr’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2009:6: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (35) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2012:27: note: (36) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2014:26: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2017:11: note: (38) calling ‘safe_read_xattr’ from ‘copy_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1953:1: note: (39) entry to ‘safe_read_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1960:12: note: (40) calling ‘xmalloc’ from ‘safe_read_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (41) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (42) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (43) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (44) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1960:12: note: (46) returning to ‘safe_read_xattr’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (47) ‘xmalloc((long unsigned int)(current_size + 1))’ leaks here; was allocated at (42) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘read_dir_entries’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: warning: leak of ‘xrealloc(entries, (n_entries + 1) * 8)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2542:1: note: (1) entry to ‘read_dir_entries’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2551:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (4) calling ‘xmalloc’ from ‘read_dir_entries’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (5) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (8) returning to ‘read_dir_entries’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2569:13: note: (9) calling ‘xrealloc’ from ‘read_dir_entries’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (10) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (11) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (12) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2569:13: note: (15) returning to ‘read_dir_entries’ from ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: note: (16) ‘xrealloc(entries, (n_entries + 1) * 8)’ leaks here; was allocated at (11) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: warning: leak of ‘xrealloc(entries, entries_size * 16)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2542:1: note: (1) entry to ‘read_dir_entries’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2551:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (4) calling ‘xmalloc’ from ‘read_dir_entries’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (5) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (8) returning to ‘read_dir_entries’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2558:10: note: (9) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2560:21: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2562:10: note: (11) following ‘false’ branch (when ‘n_entries != entries_size’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2567:24: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2567:30: note: (13) calling ‘xstrdup’ from ‘read_dir_entries’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (14) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (15) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (17) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (18) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2567:30: note: (19) returning to ‘read_dir_entries’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2558:10: note: (20) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2560:21: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2562:10: note: (22) following ‘true’ branch (when ‘n_entries == entries_size’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2564:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2565:21: note: (24) calling ‘xrealloc’ from ‘read_dir_entries’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (25) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (26) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (27) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2565:21: note: (30) returning to ‘read_dir_entries’ from ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: note: (31) ‘xrealloc(entries, entries_size * 16)’ leaks here; was allocated at (26) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘safe_read_xattr’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: warning: leak of ‘xrealloc(buffer, (long unsigned int)(current_size + 1))’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following ‘true’ branch (when ‘de’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling ‘copy_rec_stat_file_at’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to ‘copy_recursive_fd_to_fd’ from ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following ‘case 16384:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2136:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2138:14: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2141:19: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2142:14: note: (19) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2145:20: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2146:14: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (23) calling ‘copy_xattr’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1988:1: note: (24) entry to ‘copy_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1995:6: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2003:6: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2003:6: note: (27) following ‘false’ branch (when ‘xattr_len != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:28: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:9: note: (29) calling ‘xmalloc’ from ‘copy_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (30) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:9: note: (33) returning to ‘copy_xattr’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2009:6: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (35) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2012:27: note: (36) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2014:26: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2017:11: note: (38) calling ‘safe_read_xattr’ from ‘copy_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1953:1: note: (39) entry to ‘safe_read_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1960:12: note: (40) calling ‘xmalloc’ from ‘safe_read_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (41) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (42) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1960:12: note: (44) returning to ‘safe_read_xattr’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1965:10: note: (45) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1968:10: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1968:10: note: (47) following ‘false’ branch (when ‘current_size <= s’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1971:20: note: (48) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1972:16: note: (49) calling ‘xrealloc’ from ‘safe_read_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (50) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (51) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (52) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (53) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (54) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1972:16: note: (55) returning to ‘safe_read_xattr’ from ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: note: (56) ‘xrealloc(buffer, (long unsigned int)(current_size + 1))’ leaks here; was allocated at (51) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘safe_readlinkat’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: warning: leak of ‘xrealloc(tmp_buf, (long unsigned int)(buf_size + 1))’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following ‘true’ branch (when ‘de’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling ‘copy_rec_stat_file_at’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to ‘copy_recursive_fd_to_fd’ from ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following ‘case 40960:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2161:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2162:17: note: (17) calling ‘safe_readlinkat’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:420:1: note: (18) entry to ‘safe_readlinkat’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:428:10: note: (19) following ‘false’ branch (when ‘tmp_buf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:432:45: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:432:17: note: (21) calling ‘xrealloc’ from ‘safe_readlinkat’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (22) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (23) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (24) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:432:17: note: (27) returning to ‘safe_readlinkat’ from ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: note: (28) ‘xrealloc(tmp_buf, (long unsigned int)(buf_size + 1))’ leaks here; was allocated at (23) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘safe_read_xattr’ at src/libcrun/utils.c:1955:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-‘free’ of ‘buffer’ [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function ‘safe_read_xattr’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following ‘true’ branch (when ‘de’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling ‘copy_rec_stat_file_at’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to ‘copy_recursive_fd_to_fd’ from ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following ‘case 16384:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2136:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2138:14: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2141:19: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2142:14: note: (19) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2145:20: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2146:14: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (23) calling ‘copy_xattr’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1988:1: note: (24) entry to ‘copy_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1995:6: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2003:6: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2003:6: note: (27) following ‘false’ branch (when ‘xattr_len != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:28: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:9: note: (29) calling ‘xmalloc’ from ‘copy_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (30) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:9: note: (33) returning to ‘copy_xattr’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2009:6: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (35) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2012:27: note: (36) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2014:26: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2017:11: note: (38) calling ‘safe_read_xattr’ from ‘copy_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1953:1: note: (39) entry to ‘safe_read_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1960:12: note: (40) calling ‘xmalloc’ from ‘safe_read_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (41) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (42) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (43) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (44) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1960:12: note: (46) returning to ‘safe_read_xattr’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1965:10: note: (47) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1968:10: note: (48) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1968:10: note: (49) following ‘false’ branch (when ‘current_size <= s’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1971:20: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1972:16: note: (51) calling ‘xrealloc’ from ‘safe_read_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (52) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (53) first ‘free’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (54) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (55) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (56) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1972:16: note: (57) returning to ‘safe_read_xattr’ from ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1955:22: note: (58) inlined call to ‘cleanup_freep’ from ‘safe_read_xattr’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘safe_read_xattr’ at src/libcrun/utils.c:1955:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (59) second ‘free’ here; first ‘free’ was at (53) <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘copy_recursive_fd_to_fd’ at src/libcrun/utils.c:2096:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-‘free’ of ‘*(void **)&target_buf’ [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function ‘copy_recursive_fd_to_fd’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following ‘true’ branch (when ‘de’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling ‘copy_rec_stat_file_at’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to ‘copy_recursive_fd_to_fd’ from ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following ‘case 16384:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2136:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2138:14: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2141:19: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2142:14: note: (19) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2145:20: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2146:14: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2151:14: note: (23) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2155:17: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2155:17: note: (25) calling ‘copy_recursive_fd_to_fd’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (26) entry to ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (29) following ‘true’ branch (when ‘de’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (33) calling ‘copy_rec_stat_file_at’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (34) entry to ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (35) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (37) returning to ‘copy_recursive_fd_to_fd’ from ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (38) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (40) following ‘case 16384:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2136:9: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2138:14: note: (42) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2141:19: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2142:14: note: (44) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2145:20: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2146:14: note: (46) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2151:14: note: (48) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2155:17: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2155:17: note: (50) calling ‘copy_recursive_fd_to_fd’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (51) entry to ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (52) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (54) following ‘true’ branch (when ‘de’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2096:26: note: (56) inlined call to ‘cleanup_freep’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘copy_recursive_fd_to_fd’ at src/libcrun/utils.c:2096:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (57) first ‘free’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function ‘copy_recursive_fd_to_fd’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2095:25: note: (58) inlined call to ‘cleanup_closep’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘copy_recursive_fd_to_fd’ at src/libcrun/utils.c:2095:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (59) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function ‘copy_recursive_fd_to_fd’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (60) inlined call to ‘cleanup_closep’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘copy_recursive_fd_to_fd’ at src/libcrun/utils.c:2094:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:7: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function ‘copy_recursive_fd_to_fd’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (62) following ‘true’ branch (when ‘de’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (63) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2096:26: note: (64) inlined call to ‘cleanup_freep’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘copy_recursive_fd_to_fd’ at src/libcrun/utils.c:2096:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (65) second ‘free’ here; first ‘free’ was at (57) <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘copy_recursive_fd_to_fd’ at src/libcrun/utils.c:2096:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-‘free’ of ‘*(void **)&target_buf’ [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function ‘copy_recursive_fd_to_fd’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following ‘true’ branch (when ‘de’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling ‘copy_rec_stat_file_at’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to ‘copy_recursive_fd_to_fd’ from ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following ‘case 16384:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2136:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2138:14: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2141:19: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2142:14: note: (19) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2145:20: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2146:14: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2151:14: note: (23) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2155:17: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2155:17: note: (25) calling ‘copy_recursive_fd_to_fd’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (26) entry to ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (29) following ‘true’ branch (when ‘de’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (33) calling ‘copy_rec_stat_file_at’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (34) entry to ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (35) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (37) returning to ‘copy_recursive_fd_to_fd’ from ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (38) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (40) following ‘case 16384:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2136:9: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2138:14: note: (42) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2141:19: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2142:14: note: (44) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2145:20: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2146:14: note: (46) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2151:14: note: (48) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2155:17: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2155:17: note: (50) calling ‘copy_recursive_fd_to_fd’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (51) entry to ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (52) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (54) following ‘true’ branch (when ‘de’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2096:26: note: (56) inlined call to ‘cleanup_freep’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘copy_recursive_fd_to_fd’ at src/libcrun/utils.c:2096:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (57) first ‘free’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function ‘copy_recursive_fd_to_fd’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2095:25: note: (58) inlined call to ‘cleanup_closep’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘copy_recursive_fd_to_fd’ at src/libcrun/utils.c:2095:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (59) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function ‘copy_recursive_fd_to_fd’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (60) inlined call to ‘cleanup_closep’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘copy_recursive_fd_to_fd’ at src/libcrun/utils.c:2094:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:7: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function ‘copy_recursive_fd_to_fd’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (62) following ‘true’ branch (when ‘de’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (63) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (64) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (65) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (66) calling ‘copy_rec_stat_file_at’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (67) entry to ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (68) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (69) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (70) returning to ‘copy_recursive_fd_to_fd’ from ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2096:26: note: (71) inlined call to ‘cleanup_freep’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘copy_recursive_fd_to_fd’ at src/libcrun/utils.c:2096:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (72) second ‘free’ here; first ‘free’ was at (57) <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘safe_readlinkat’ at src/libcrun/utils.c:423:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-‘free’ of ‘tmp_buf’ [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function ‘safe_readlinkat’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following ‘true’ branch (when ‘de’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2096:26: note: (6) first ‘free’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (7) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (9) calling ‘copy_rec_stat_file_at’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (10) entry to ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (11) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (13) returning to ‘copy_recursive_fd_to_fd’ from ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (16) following ‘case 40960:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2161:9: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2162:17: note: (18) calling ‘safe_readlinkat’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:420:1: note: (19) entry to ‘safe_readlinkat’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:428:10: note: (20) following ‘false’ branch (when ‘tmp_buf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:432:45: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:432:17: note: (22) passing freed pointer ‘tmp_buf’ in call to ‘xrealloc’ from ‘safe_readlinkat’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (23) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (24) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:432:17: note: (27) returning to ‘safe_readlinkat’ from ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:423:22: note: (28) inlined call to ‘cleanup_freep’ from ‘safe_readlinkat’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘safe_readlinkat’ at src/libcrun/utils.c:423:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (29) second ‘free’ here; first ‘free’ was at (6) <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:26: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘*(void *)p’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second ‘close’ here; first ‘close’ was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘destdirfd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following ‘true’ branch (when ‘de’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling ‘copy_rec_stat_file_at’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to ‘copy_recursive_fd_to_fd’ from ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following ‘case 16384:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2136:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2138:14: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2141:19: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2142:14: note: (19) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2145:20: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2146:14: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2151:14: note: (23) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2155:17: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2155:17: note: (25) calling ‘copy_recursive_fd_to_fd’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (26) entry to ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2081:21: note: (27) inlined call to ‘cleanup_closep’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘copy_recursive_fd_to_fd’ at src/libcrun/utils.c:2081:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (28) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (29) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2081:21: note: (30) inlined call to ‘cleanup_closep’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘copy_recursive_fd_to_fd’ at src/libcrun/utils.c:2081:21: cc1: note: (31) calling ‘cleanup_closep.part.0’ from ‘copy_recursive_fd_to_fd’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (32) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (33) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (34) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (35) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (36) second ‘close’ here; first ‘close’ was at (33) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘srcfd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following ‘true’ branch (when ‘de’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling ‘copy_rec_stat_file_at’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to ‘copy_recursive_fd_to_fd’ from ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following ‘case 32768:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2113:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2115:14: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2118:20: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2119:14: note: (19) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2122:17: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2123:14: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2127:23: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2127:23: note: (23) calling ‘copy_xattr’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1988:1: note: (24) entry to ‘copy_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1995:6: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2003:6: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2003:6: note: (27) following ‘false’ branch (when ‘xattr_len != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:28: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:9: note: (29) calling ‘xmalloc’ from ‘copy_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (30) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:9: note: (33) returning to ‘copy_xattr’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2009:6: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (35) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2012:27: note: (36) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2014:26: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2017:11: note: (38) calling ‘safe_read_xattr’ from ‘copy_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1953:1: note: (39) entry to ‘safe_read_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1960:12: note: (40) calling ‘xmalloc’ from ‘safe_read_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (41) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (42) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1960:12: note: (44) returning to ‘safe_read_xattr’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2017:11: note: (45) returning to ‘copy_xattr’ from ‘safe_read_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2127:23: note: (46) returning to ‘copy_recursive_fd_to_fd’ from ‘copy_xattr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2128:14: note: (47) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (48) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2182:10: note: (49) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2192:13: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2193:10: note: (51) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2096:26: note: (52) inlined call to ‘cleanup_freep’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘copy_recursive_fd_to_fd’ at src/libcrun/utils.c:2096:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2095:25: note: (54) inlined call to ‘cleanup_closep’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘copy_recursive_fd_to_fd’ at src/libcrun/utils.c:2095:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (55) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (56) inlined call to ‘cleanup_closep’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘copy_recursive_fd_to_fd’ at src/libcrun/utils.c:2094:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:7: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (58) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (59) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (60) inlined call to ‘cleanup_closep’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘copy_recursive_fd_to_fd’ at src/libcrun/utils.c:2094:25: cc1: note: (61) calling ‘cleanup_closep.part.0’ from ‘copy_recursive_fd_to_fd’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (62) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (63) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (64) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (65) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (66) second ‘close’ here; first ‘close’ was at (63) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘read_dir_entries’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of ‘xstrdup(&*.d_name)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2542:1: note: (1) entry to ‘read_dir_entries’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2551:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (4) calling ‘xmalloc’ from ‘read_dir_entries’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (5) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (8) returning to ‘read_dir_entries’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2558:10: note: (9) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2560:21: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2560:10: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2562:10: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2562:10: note: (13) following ‘false’ branch (when ‘n_entries != entries_size’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2567:24: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2567:30: note: (15) calling ‘xstrdup’ from ‘read_dir_entries’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (16) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (17) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (19) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (20) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (21) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (22) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2567:30: note: (23) returning to ‘read_dir_entries’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (24) ‘xstrdup(&*.d_name)’ leaks here; was allocated at (19) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function ‘copy_recursive_fd_to_fd’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2085:12: warning: leak of ‘fdopendir(srcdirfd)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2085:12: note: (1) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2085:12: note: (2) ‘fdopendir(srcdirfd)’ leaks here; was allocated at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2088:27: warning: double ‘close’ of file descriptor ‘srcdirfd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (1) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (2) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2088:27: note: (3) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2088:7: note: (4) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (5) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2088:27: note: (6) second ‘close’ here; first ‘close’ was at (3) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2132:31: warning: double ‘close’ of file descriptor ‘destfd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following ‘true’ branch (when ‘de’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling ‘copy_rec_stat_file_at’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to ‘copy_recursive_fd_to_fd’ from ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following ‘case 32768:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2113:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2115:14: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2118:20: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2119:14: note: (19) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2122:17: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2123:14: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2127:23: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2128:14: note: (23) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (24) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2132:31: note: (25) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2132:11: note: (26) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2132:31: note: (28) second ‘close’ here; first ‘close’ was at (25) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2166:17: warning: use of NULL ‘target_buf’ where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following ‘true’ branch (when ‘de’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2096:26: note: (6) ‘target_buf’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (7) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (9) calling ‘copy_rec_stat_file_at’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (10) entry to ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (11) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (13) returning to ‘copy_recursive_fd_to_fd’ from ‘copy_rec_stat_file_at’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (16) following ‘case 40960:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2161:9: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2162:17: note: (18) calling ‘safe_readlinkat’ from ‘copy_recursive_fd_to_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:420:1: note: (19) entry to ‘safe_readlinkat’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:428:10: note: (20) following ‘false’ branch (when ‘tmp_buf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:432:45: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:432:17: note: (22) calling ‘xrealloc’ from ‘safe_readlinkat’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (23) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (24) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:432:17: note: (27) returning to ‘safe_readlinkat’ from ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2162:17: note: (28) returning to ‘copy_recursive_fd_to_fd’ from ‘safe_readlinkat’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2163:14: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2166:17: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2166:17: note: (31) ‘target_buf’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2166:17: note: (32) ‘target_buf’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2166:17: note: (33) argument 1 (‘target_buf’) NULL where non-null expected <--[csmock-gcc-wrapper] /usr/include/unistd.h:847:12: note: argument 1 of ‘symlinkat’ must be non-null <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function ‘read_file_as_long_or_default’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2491:9: warning: use of NULL ‘content’ where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2477:22: note: (1) ‘content’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2484:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2490:3: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2491:9: note: (4) argument 1 (‘content’) NULL where non-null expected <--[csmock-gcc-wrapper] In file included from /usr/include/features.h:511, <--[csmock-gcc-wrapper] from /usr/include/bits/libc-header-start.h:33, <--[csmock-gcc-wrapper] from /usr/include/stdio.h:28, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:22: <--[csmock-gcc-wrapper] /usr/include/stdlib.h:215:17: note: argument 1 of ‘strtol’ must be non-null <--[csmock-gcc-wrapper] make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-custom-handler.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-custom-handler.Tpo -c -o src/libcrun/libcrun_testing_a-custom-handler.o `test -f 'src/libcrun/custom-handler.c' || echo './'`src/libcrun/custom-handler.c mv -f src/libcrun/.deps/libcrun_testing_a-custom-handler.Tpo src/libcrun/.deps/libcrun_testing_a-custom-handler.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_testing_a-handler-utils.o -MD -MP -MF src/libcrun/handlers/.deps/libcrun_testing_a-handler-utils.Tpo -c -o src/libcrun/handlers/libcrun_testing_a-handler-utils.o `test -f 'src/libcrun/handlers/handler-utils.c' || echo './'`src/libcrun/handlers/handler-utils.c mv -f src/libcrun/handlers/.deps/libcrun_testing_a-handler-utils.Tpo src/libcrun/handlers/.deps/libcrun_testing_a-handler-utils.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_testing_a-krun.o -MD -MP -MF src/libcrun/handlers/.deps/libcrun_testing_a-krun.Tpo -c -o src/libcrun/handlers/libcrun_testing_a-krun.o `test -f 'src/libcrun/handlers/krun.c' || echo './'`src/libcrun/handlers/krun.c mv -f src/libcrun/handlers/.deps/libcrun_testing_a-krun.Tpo src/libcrun/handlers/.deps/libcrun_testing_a-krun.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-criu.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-criu.Tpo -c -o src/libcrun/libcrun_testing_a-criu.o `test -f 'src/libcrun/criu.c' || echo './'`src/libcrun/criu.c mv -f src/libcrun/.deps/libcrun_testing_a-criu.Tpo src/libcrun/.deps/libcrun_testing_a-criu.Po /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/custom-handler.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/handler-utils.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c: In function ‘libkrun_load’: <--[gcc] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42, <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:262:9: warning: unused variable ‘handle’ [-Wunused-variable] <--[gcc] 262 | void *handle; | ^~~~~~ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c: In function ‘libkrun_configure_container’: <--[gcc] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:248:6: warning: ‘create_sev’ may be used uninitialized [-Wmaybe-uninitialized] <--[gcc] 248 | if (create_sev) | ^ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:180:8: note: ‘create_sev’ was declared here <--[gcc] 180 | bool create_sev; | ^~~~~~~~~~ from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.h:24, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/custom-handler.h:22, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:21: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘*(void *)p’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second ‘close’ here; first ‘close’ was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘rootfsfd_cleanup’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:167:1: note: (1) entry to ‘libkrun_configure_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:182:6: note: (2) following ‘false’ branch (when ‘rootfs’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:186:37: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:186:37: note: (4) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:187:10: note: (5) assuming ‘rootfsfd_cleanup’ is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:187:10: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:191:6: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:177:21: note: (8) inlined call to ‘cleanup_closep’ from ‘libkrun_configure_container’ <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/custom-handler.h:23: <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘libkrun_configure_container’ at src/libcrun/handlers/krun.c:177:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (9) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (10) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:177:21: note: (11) inlined call to ‘cleanup_closep’ from ‘libkrun_configure_container’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘libkrun_configure_container’ at src/libcrun/handlers/krun.c:177:21: cc1: note: (12) calling ‘cleanup_closep.part.0’ from ‘libkrun_configure_container’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (13) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (14) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (15) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (16) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (17) second ‘close’ here; first ‘close’ was at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c: In function ‘libkrun_configure_container’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:186:37: warning: leak of file descriptor ‘open(rootfs, 2621440)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:182:6: note: (1) following ‘false’ branch (when ‘rootfs’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:186:37: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:186:37: note: (3) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:186:37: note: (4) ‘open(rootfs, 2621440)’ leaks here; was opened at (3) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:248:6: warning: use of uninitialized value ‘create_sev’ [CWE-457] [-Wanalyzer-use-of-uninitialized-value] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:180:8: note: (1) region created on stack here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:180:8: note: (2) capacity: 1 byte <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:191:6: note: (3) following ‘false’ branch (when ‘phase != 1’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:215:6: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:215:6: note: (5) following ‘false’ branch (when ‘phase == 2’)... <--[csmock-gcc-wrapper] cc1: note: (6) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:225:6: note: (7) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:235:11: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:236:6: note: (9) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:239:9: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:240:6: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:242:14: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:245:6: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:248:6: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:248:6: note: (15) use of uninitialized value ‘create_sev’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:24: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘*(void *)p’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second ‘close’ here; first ‘close’ was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘console_socket_fd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:185:1: note: (1) entry to ‘criu_notify’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:187:6: note: (2) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:192:25: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:197:10: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:200:34: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:203:10: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:208:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:209:10: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:192:25: note: (9) inlined call to ‘cleanup_closep’ from ‘criu_notify’ <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:35: <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘criu_notify’ at src/libcrun/criu.c:192:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:7: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (11) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (12) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:192:25: note: (13) inlined call to ‘cleanup_closep’ from ‘criu_notify’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘criu_notify’ at src/libcrun/criu.c:192:25: cc1: note: (14) calling ‘cleanup_closep.part.0’ from ‘criu_notify’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (15) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (16) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (18) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (19) second ‘close’ here; first ‘close’ was at (16) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘root_fd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:658:1: note: (1) entry to ‘prepare_restore_mounts’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:663:17: note: (2) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:665:23: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:673:10: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (5) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:678:21: note: (6) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:680:30: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:707:17: note: (8) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:708:10: note: (9) assuming ‘root_fd’ is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:708:10: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:711:10: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:716:14: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:667:25: note: (13) inlined call to ‘cleanup_closep’ from ‘prepare_restore_mounts’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘prepare_restore_mounts’ at src/libcrun/criu.c:667:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:7: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (15) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (16) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:667:25: note: (17) inlined call to ‘cleanup_closep’ from ‘prepare_restore_mounts’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘prepare_restore_mounts’ at src/libcrun/criu.c:667:25: cc1: note: (18) calling ‘cleanup_closep.part.0’ from ‘prepare_restore_mounts’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (19) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (20) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (21) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (22) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (23) second ‘close’ here; first ‘close’ was at (20) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘image_fd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:390:1: note: (1) entry to ‘libcrun_container_checkpoint_linux_criu’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:404:9: note: (2) calling ‘load_wrapper’ from ‘libcrun_container_checkpoint_linux_criu’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:116:1: note: (3) entry to ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (4) calling ‘xmalloc0’ from ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (5) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (8) returning to ‘load_wrapper’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:404:9: note: (9) returning to ‘libcrun_container_checkpoint_linux_criu’ from ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:405:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:408:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:408:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:428:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:429:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:432:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:432:6: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:435:27: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:435:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:438:9: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:442:14: note: (20) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:443:6: note: (21) assuming ‘image_fd’ is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:443:6: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:446:18: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:494:8: note: (24) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:515:9: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:398:21: note: (26) inlined call to ‘cleanup_closep’ from ‘libcrun_container_checkpoint_linux_criu’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘libcrun_container_checkpoint_linux_criu’ at src/libcrun/criu.c:398:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (27) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (28) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:398:21: note: (29) inlined call to ‘cleanup_closep’ from ‘libcrun_container_checkpoint_linux_criu’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘libcrun_container_checkpoint_linux_criu’ at src/libcrun/criu.c:398:21: cc1: note: (30) calling ‘cleanup_closep.part.0’ from ‘libcrun_container_checkpoint_linux_criu’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (31) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (32) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (33) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (34) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (35) second ‘close’ here; first ‘close’ was at (32) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘image_fd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:733:1: note: (1) entry to ‘libcrun_container_restore_linux_criu’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (2) calling ‘load_wrapper’ from ‘libcrun_container_restore_linux_criu’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:116:1: note: (3) entry to ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (4) calling ‘xmalloc0’ from ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (5) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (8) returning to ‘load_wrapper’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (9) returning to ‘libcrun_container_restore_linux_criu’ from ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:749:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:755:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:756:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:6: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:27: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:765:14: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:765:14: note: (20) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:766:6: note: (21) assuming ‘image_fd’ is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:766:6: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:769:18: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:779:8: note: (24) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:774:24: note: (25) inlined call to ‘cleanup_freep’ from ‘libcrun_container_restore_linux_criu’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘libcrun_container_restore_linux_criu’ at src/libcrun/criu.c:774:24: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:743:21: note: (27) inlined call to ‘cleanup_closep’ from ‘libcrun_container_restore_linux_criu’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘libcrun_container_restore_linux_criu’ at src/libcrun/criu.c:743:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:742:22: note: (29) inlined call to ‘cleanup_freep’ from ‘libcrun_container_restore_linux_criu’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘libcrun_container_restore_linux_criu’ at src/libcrun/criu.c:742:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:740:21: note: (31) inlined call to ‘cleanup_closep’ from ‘libcrun_container_restore_linux_criu’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘libcrun_container_restore_linux_criu’ at src/libcrun/criu.c:740:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (32) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (33) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:740:21: note: (34) inlined call to ‘cleanup_closep’ from ‘libcrun_container_restore_linux_criu’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘libcrun_container_restore_linux_criu’ at src/libcrun/criu.c:740:21: cc1: note: (35) calling ‘cleanup_closep.part.0’ from ‘libcrun_container_restore_linux_criu’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (36) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (37) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (38) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (39) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (40) second ‘close’ here; first ‘close’ was at (37) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘libcrun_container_restore_linux_criu’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of ‘xstrdup(*status.bundle)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:733:1: note: (1) entry to ‘libcrun_container_restore_linux_criu’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (2) calling ‘load_wrapper’ from ‘libcrun_container_restore_linux_criu’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:116:1: note: (3) entry to ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (4) calling ‘xmalloc0’ from ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (5) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (8) returning to ‘load_wrapper’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (9) returning to ‘libcrun_container_restore_linux_criu’ from ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:749:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:755:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:756:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:6: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:27: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:765:14: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:766:6: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:769:18: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:779:8: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:782:11: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:783:8: note: (24) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:792:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:793:8: note: (26) following ‘false’ branch... <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:9, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.h:23, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:32: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:796:17: note: in expansion of macro ‘YAJL_IS_ARRAY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:872:6: note: (28) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:873:37: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:873:22: note: (30) calling ‘xstrdup’ from ‘libcrun_container_restore_linux_criu’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (31) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (32) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (34) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (35) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (36) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (37) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:873:22: note: (38) returning to ‘libcrun_container_restore_linux_criu’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (39) ‘xstrdup(*status.bundle)’ leaks here; was allocated at (34) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c: In function ‘restore_cgroup_v1_mount’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:298:22: warning: dereference of NULL ‘0’ [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:253:22: note: (1) ‘content’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:255:9: note: (2) ‘content’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:262:6: note: (3) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:265:6: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:265:6: note: (5) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (6) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:278:6: note: (7) following ‘true’ branch (when ‘has_cgroup_mount != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:281:9: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:282:6: note: (9) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:285:25: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:285:6: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:288:15: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:288:51: note: (13) following ‘true’ branch (when ‘from’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:290:26: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:290:26: note: (15) ‘destination’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:291:26: note: (16) ‘destination’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:296:19: note: (17) when ‘strchr’ returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:297:17: note: (18) when ‘strchr’ returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:298:22: note: (19) dereference of NULL ‘strchr(subsystem, 58)’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:300:20: warning: dereference of NULL ‘0’ [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:253:22: note: (1) ‘content’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:255:9: note: (2) ‘content’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:262:6: note: (3) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:265:6: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:265:6: note: (5) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (6) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:278:6: note: (7) following ‘true’ branch (when ‘has_cgroup_mount != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:281:9: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:282:6: note: (9) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:285:25: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:285:6: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:288:15: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:288:51: note: (13) following ‘true’ branch (when ‘from’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:290:26: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:290:26: note: (15) ‘destination’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:291:26: note: (16) ‘destination’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:296:19: note: (17) when ‘strchr’ returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:297:17: note: (18) when ‘strchr’ returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:300:20: note: (19) dereference of NULL ‘strchr(from, 58)’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c: In function ‘checkpoint_cgroup_v1_mount’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:365:22: warning: dereference of NULL ‘0’ [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:329:22: note: (1) ‘content’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:331:9: note: (2) ‘content’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:346:6: note: (3) following ‘true’ branch (when ‘has_cgroup_mount != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:349:9: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:350:6: note: (5) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:353:25: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:353:6: note: (7) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:356:15: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:356:51: note: (9) following ‘true’ branch (when ‘from’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:358:26: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:358:26: note: (11) ‘source_path’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:363:19: note: (12) when ‘strchr’ returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:364:17: note: (13) when ‘strchr’ returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:365:22: note: (14) dereference of NULL ‘strchr(subsystem, 58)’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:367:20: warning: dereference of NULL ‘0’ [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:329:22: note: (1) ‘content’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:331:9: note: (2) ‘content’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:346:6: note: (3) following ‘true’ branch (when ‘has_cgroup_mount != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:349:9: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:350:6: note: (5) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:353:25: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:353:6: note: (7) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:356:15: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:356:51: note: (9) following ‘true’ branch (when ‘from’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:358:26: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:358:26: note: (11) ‘source_path’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:363:19: note: (12) when ‘strchr’ returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:364:17: note: (13) when ‘strchr’ returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:367:20: note: (14) dereference of NULL ‘strchr(from, 58)’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c: In function ‘libcrun_container_checkpoint_linux_criu’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:442:14: warning: leak of file descriptor ‘open(*cr_options.image_path, 589824)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:390:1: note: (1) entry to ‘libcrun_container_checkpoint_linux_criu’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:404:9: note: (2) calling ‘load_wrapper’ from ‘libcrun_container_checkpoint_linux_criu’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:116:1: note: (3) entry to ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (4) calling ‘xmalloc0’ from ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (5) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (8) returning to ‘load_wrapper’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:404:9: note: (9) returning to ‘libcrun_container_checkpoint_linux_criu’ from ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:405:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:408:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:408:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:428:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:429:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:432:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:432:6: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:435:27: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:435:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:438:9: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:442:14: note: (20) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:442:14: note: (21) ‘open(*cr_options.image_path, 589824)’ leaks here; was opened at (20) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:462:17: warning: leak of file descriptor ‘open(*cr_options.work_path, 589824)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:390:1: note: (1) entry to ‘libcrun_container_checkpoint_linux_criu’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:404:9: note: (2) calling ‘load_wrapper’ from ‘libcrun_container_checkpoint_linux_criu’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:116:1: note: (3) entry to ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (4) calling ‘xmalloc0’ from ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (5) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (8) returning to ‘load_wrapper’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:404:9: note: (9) returning to ‘libcrun_container_checkpoint_linux_criu’ from ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:405:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:408:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:408:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:428:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:429:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:432:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:432:6: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:435:27: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:435:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:438:9: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:443:6: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:446:18: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:460:6: note: (22) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:462:17: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:462:17: note: (24) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:462:17: note: (25) ‘open(*cr_options.work_path, 589824)’ leaks here; was opened at (24) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c: In function ‘prepare_restore_mounts’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:707:17: warning: leak of file descriptor ‘open(root, 524288)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:663:17: note: (1) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:665:23: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:673:10: note: (3) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (4) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:678:21: note: (5) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:680:30: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:707:17: note: (7) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:707:17: note: (8) ‘open(root, 524288)’ leaks here; was opened at (7) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c: In function ‘libcrun_container_restore_linux_criu’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:765:14: warning: leak of file descriptor ‘open(*cr_options.image_path, 589824)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:733:1: note: (1) entry to ‘libcrun_container_restore_linux_criu’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (2) calling ‘load_wrapper’ from ‘libcrun_container_restore_linux_criu’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:116:1: note: (3) entry to ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (4) calling ‘xmalloc0’ from ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (5) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (8) returning to ‘load_wrapper’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (9) returning to ‘libcrun_container_restore_linux_criu’ from ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:749:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:755:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:756:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:6: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:27: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:765:14: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:765:14: note: (20) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:765:14: note: (21) ‘open(*cr_options.image_path, 589824)’ leaks here; was opened at (20) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:821:17: warning: leak of file descriptor ‘open(*cr_options.work_path, 589824)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:733:1: note: (1) entry to ‘libcrun_container_restore_linux_criu’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (2) calling ‘load_wrapper’ from ‘libcrun_container_restore_linux_criu’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:116:1: note: (3) entry to ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (4) calling ‘xmalloc0’ from ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (5) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (8) returning to ‘load_wrapper’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (9) returning to ‘libcrun_container_restore_linux_criu’ from ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:749:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:755:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:756:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:6: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:27: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:765:14: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:766:6: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:769:18: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:779:8: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:782:11: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:783:8: note: (24) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:792:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:793:8: note: (26) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:796:17: note: in expansion of macro ‘YAJL_IS_ARRAY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:819:6: note: (28) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:821:17: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:821:17: note: (30) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:821:17: note: (31) ‘open(*cr_options.work_path, 589824)’ leaks here; was opened at (30) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:924:32: warning: leak of file descriptor ‘open(**_148.path, 0)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:733:1: note: (1) entry to ‘libcrun_container_restore_linux_criu’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (2) calling ‘load_wrapper’ from ‘libcrun_container_restore_linux_criu’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:116:1: note: (3) entry to ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (4) calling ‘xmalloc0’ from ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (5) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (8) returning to ‘load_wrapper’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (9) returning tmake[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-ebpf.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-ebpf.Tpo -c -o src/libcrun/libcrun_testing_a-ebpf.o `test -f 'src/libcrun/ebpf.c' || echo './'`src/libcrun/ebpf.c mv -f src/libcrun/.deps/libcrun_testing_a-ebpf.Tpo src/libcrun/.deps/libcrun_testing_a-ebpf.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-error.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-error.Tpo -c -o src/libcrun/libcrun_testing_a-error.o `test -f 'src/libcrun/error.c' || echo './'`src/libcrun/error.c mv -f src/libcrun/.deps/libcrun_testing_a-error.Tpo src/libcrun/.deps/libcrun_testing_a-error.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-container.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-container.Tpo -c -o src/libcrun/libcrun_testing_a-container.o `test -f 'src/libcrun/container.c' || echo './'`src/libcrun/container.c mv -f src/libcrun/.deps/libcrun_testing_a-container.Tpo src/libcrun/.deps/libcrun_testing_a-container.Po o ‘libcrun_container_restore_linux_criu’ from ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:749:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:755:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:756:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:6: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:27: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:765:14: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:766:6: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:769:18: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:779:8: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:782:11: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:783:8: note: (24) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:792:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:793:8: note: (26) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:796:17: note: in expansion of macro ‘YAJL_IS_ARRAY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:877:6: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:880:9: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:881:6: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:884:9: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:885:6: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:898:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:899:6: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:902:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:903:6: note: (36) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (37) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:915:17: note: (38) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:918:53: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:919:10: note: (40) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:922:10: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:922:10: note: (42) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:924:32: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:924:32: note: (44) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:924:32: note: (45) ‘open(**_148.path, 0)’ leaks here; was opened at (44) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:933:32: warning: leak of file descriptor ‘open(**_165.path, 0)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:733:1: note: (1) entry to ‘libcrun_container_restore_linux_criu’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (2) calling ‘load_wrapper’ from ‘libcrun_container_restore_linux_criu’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:116:1: note: (3) entry to ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (4) calling ‘xmalloc0’ from ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (5) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (8) returning to ‘load_wrapper’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (9) returning to ‘libcrun_container_restore_linux_criu’ from ‘load_wrapper’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:749:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:755:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:756:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:6: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:27: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:765:14: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:766:6: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:769:18: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:779:8: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:782:11: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:783:8: note: (24) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:792:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:793:8: note: (26) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:796:17: note: in expansion of macro ‘YAJL_IS_ARRAY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:877:6: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:880:9: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:881:6: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:884:9: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:885:6: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:898:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:899:6: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:902:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:903:6: note: (36) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (37) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:915:17: note: (38) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:918:53: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:919:10: note: (40) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:922:10: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:931:10: note: (42) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:933:32: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:933:32: note: (44) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:933:32: note: (45) ‘open(**_165.path, 0)’ leaks here; was opened at (44) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:23: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘read_all_progs’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: warning: leak of ‘xrealloc(progs, cur_size * 4)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:363:1: note: (1) entry to ‘ebpf_attach_program’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:387:13: note: (2) calling ‘read_all_progs’ from ‘ebpf_attach_program’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:272:1: note: (3) entry to ‘read_all_progs’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:282:32: note: (4) following ‘true’ branch (when ‘cur_size <= 4096’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:284:15: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:284:15: note: (6) calling ‘xrealloc’ from ‘read_all_progs’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (7) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (8) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (9) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:284:15: note: (12) returning to ‘read_all_progs’ from ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: note: (13) ‘xrealloc(progs, cur_size * 4)’ leaks here; was allocated at (8) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘libcrun_ebpf_load’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: warning: leak of ‘xrealloc(log, log_size)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:475:1: note: (1) entry to ‘libcrun_ebpf_load’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:504:6: note: (2) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:511:13: note: (4) calling ‘xrealloc’ from ‘libcrun_ebpf_load’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (5) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (6) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (7) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:511:13: note: (10) returning to ‘libcrun_ebpf_load’ from ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: note: (11) ‘xrealloc(log, log_size)’ leaks here; was allocated at (6) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘read_all_progs’ at src/libcrun/ebpf.c:275:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-‘free’ of ‘progs’ [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c: In function ‘read_all_progs’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:363:1: note: (1) entry to ‘ebpf_attach_program’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:381:30: note: (2) first ‘free’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:387:13: note: (3) calling ‘read_all_progs’ from ‘ebpf_attach_program’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:272:1: note: (4) entry to ‘read_all_progs’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:282:32: note: (5) following ‘true’ branch (when ‘cur_size <= 4096’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:284:15: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:284:15: note: (7) passing freed pointer ‘progs’ in call to ‘xrealloc’ from ‘read_all_progs’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (8) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (9) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:284:15: note: (12) returning to ‘read_all_progs’ from ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:275:26: note: (13) inlined call to ‘cleanup_freep’ from ‘read_all_progs’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘read_all_progs’ at src/libcrun/ebpf.c:275:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (14) second ‘free’ here; first ‘free’ was at (2) <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘libcrun_ebpf_load’ at src/libcrun/ebpf.c:507:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-‘free’ of ‘log’ [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c: In function ‘libcrun_ebpf_load’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:475:1: note: (1) entry to ‘libcrun_ebpf_load’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:504:6: note: (2) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:511:13: note: (4) passing freed pointer ‘log’ in call to ‘xrealloc’ from ‘libcrun_ebpf_load’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (5) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (6) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (7) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:511:13: note: (9) returning to ‘libcrun_ebpf_load’ from ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:507:26: note: (10) inlined call to ‘cleanup_freep’ from ‘libcrun_ebpf_load’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘libcrun_ebpf_load’ at src/libcrun/ebpf.c:507:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (11) second ‘free’ here <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.h:24, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:22: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘*(void *)p’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second ‘close’ here; first ‘close’ was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c: In function ‘read_all_progs’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:294:18: warning: infinite loop [CWE-835] [-Wanalyzer-infinite-loop] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:363:1: note: (1) entry to ‘ebpf_attach_program’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:272:1: note: (2) entry to ‘read_all_progs’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (3) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (4) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (5) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (6) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (7) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (8) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (9) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (10) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (11) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (12) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (13) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (14) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (15) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (16) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:294:18: note: (17) infinite loop here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:294:18: note: (18) when ‘ret < 0’: always following ‘true’ branch... <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.h:25: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:294:21: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:294:18: note: (20) if it ever follows ‘true’ branch, it will always do so... <--[csmock-gcc-wrapper] cc1: note: (21) ...to here cc1: note: (22) looping back... /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:294:18: note: (23) ...to here <--[csmock-gcc-wrapper] In file included from /usr/include/sys/syslog.h:207, <--[gcc] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In function ‘write_log’: from /usr/include/syslog.h:1, <--[gcc] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:41, <--[gcc] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:26, <--[gcc] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:27: <--[gcc] In function ‘syslog’, inlined from ‘log_write_to_syslog’ at src/libcrun/error.c:310:5: /usr/include/bits/syslog.h:37:3: warning: ‘priority’ may be used uninitialized [-Wmaybe-uninitialized] <--[gcc] 37 | __syslog_chk (__pri, __USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c: In function ‘log_write_to_syslog’: <--[gcc] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:294:7: note: ‘priority’ was declared here <--[gcc] 294 | int priority; | ^~~~~~~~ cc1: warning: leak of ‘make_json_error(output, errno_, verbosity)’ [CWE-401] [-Wanalyzer-malloc-leak] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:424:1: note: (1) entry to ‘write_log’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:430:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:433:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:434:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:437:6: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:440:3: note: (6) following ‘case 1:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:446:5: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:447:14: note: (8) calling ‘make_json_error’ from ‘write_log’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:364:1: note: (9) entry to ‘make_json_error’ <--[csmock-gcc-wrapper] cc1: note: (10) following ‘true’ branch... cc1: note: (11) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:388:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:391:3: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:415:6: note: (14) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:416:11: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:416:11: note: (16) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:447:14: note: (17) returning to ‘write_log’ from ‘make_json_error’ <--[csmock-gcc-wrapper] cc1: note: (18) ‘make_json_error(output, errno_, verbosity)’ leaks here; was allocated at (16) /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c: In function ‘log_write_to_syslog’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:308:5: warning: use of uninitialized value ‘priority’ [CWE-457] [-Wanalyzer-use-of-uninitialized-value] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:294:7: note: (1) region created on stack here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:294:7: note: (2) capacity: 4 bytes <--[csmock-gcc-wrapper] cc1: note: (3) following ‘false’ branch... /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:307:6: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:307:6: note: (5) following ‘true’ branch (when ‘errno_ == 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:308:5: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:308:5: note: (7) use of uninitialized value ‘priority’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:310:5: warning: use of uninitialized value ‘priority’ [CWE-457] [-Wanalyzer-use-of-uninitialized-value] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:294:7: note: (1) region created on stack here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:294:7: note: (2) capacity: 4 bytes <--[csmock-gcc-wrapper] cc1: note: (3) following ‘false’ branch... /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:307:6: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:307:6: note: (5) following ‘false’ branch (when ‘errno_ != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:310:5: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:310:5: note: (7) use of uninitialized value ‘priority’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c: In function ‘make_json_error’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:407:3: warning: use of uninitialized value ‘level’ [CWE-457] [-Wanalyzer-use-of-uninitialized-value] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:366:15: note: (1) region created on stack here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:366:15: note: (2) capacity: 8 bytes <--[csmock-gcc-wrapper] cc1: note: (3) following ‘false’ branch... /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:379:24: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:388:6: note: (5) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:391:3: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:407:3: note: (7) use of uninitialized value ‘level’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:407:3: warning: use of uninitialized value ‘level’ [CWE-457] [-Wanalyzer-use-of-uninitialized-value] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:424:1: note: (1) entry to ‘write_log’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:430:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:433:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:434:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:437:6: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:440:3: note: (6) following ‘case 1:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:446:5: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:447:14: note: (8) calling ‘make_json_error’ from ‘write_log’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:364:1: note: (9) entry to ‘make_json_error’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:366:15: note: (10) region created on stack here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:366:15: note: (11) capacity: 8 bytes <--[csmock-gcc-wrapper] cc1: note: (12) following ‘false’ branch... /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:379:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:388:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:391:3: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:407:3: note: (16) use of uninitialized value ‘level’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:24: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘libcrun_container_get_features’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of ‘xmalloc0(144)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4034:1: note: (1) entry to ‘libcrun_container_get_features’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4046:11: note: (2) calling ‘xmalloc0’ from ‘libcrun_container_get_features’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (4) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (5) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4046:11: note: (8) returning to ‘libcrun_container_get_features’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (9) ‘xmalloc0(144)’ leaks here; was allocated at (4) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘retrieve_mount_options’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of ‘xmalloc0((num_mount_options + 1) * 8)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4013:1: note: (1) entry to ‘retrieve_mount_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4026:28: note: (2) calling ‘xmalloc0’ from ‘retrieve_mount_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (4) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (5) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4026:28: note: (8) returning to ‘retrieve_mount_options’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (9) ‘xmalloc0((num_mount_options + 1) * 8)’ leaks here; was allocated at (4) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘libcrun_container_load_from_file’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of ‘make_container(runtime_spec_schema_config_schema_parse_file(path, 0, & oci_error), path, 0)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4437:1: note: (1) entry to ‘libcrun_container_update_intel_rdt’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4445:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4448:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4449:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4452:15: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4452:15: note: (6) calling ‘libcrun_container_load_from_file’ from ‘libcrun_container_update_intel_rdt’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (7) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (10) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (11) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (12) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (13) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (14) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (15) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (18) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:549:6: note: (19) following ‘false’ branch (when ‘path’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (24) ‘make_container(runtime_spec_schema_config_schema_parse_file(path, 0, & oci_error), path, 0)’ leaks here; was allocated at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘libcrun_container_update_intel_rdt’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of ‘libcrun_container_load_from_file(config_file, err)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4437:1: note: (1) entry to ‘libcrun_container_update_intel_rdt’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4445:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4448:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4449:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4452:15: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4452:15: note: (6) calling ‘libcrun_container_load_from_file’ from ‘libcrun_container_update_intel_rdt’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (7) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (10) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (11) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (12) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (13) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (14) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (15) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (18) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:549:6: note: (19) following ‘false’ branch (when ‘path’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4452:15: note: (24) returning to ‘libcrun_container_update_intel_rdt’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (25) ‘libcrun_container_load_from_file(config_file, err)’ leaks here; was allocated at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘libcrun_container_restore’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of ‘libcrun_container_load_from_file("config.json", err)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4209:1: note: (1) entry to ‘libcrun_container_restore’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4221:15: note: (2) calling ‘libcrun_container_load_from_file’ from ‘libcrun_container_restore’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (3) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (6) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (7) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (8) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (9) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (10) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (11) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (14) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:549:6: note: (15) following ‘true’ branch (when ‘path’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (17) calling ‘xstrdup’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (18) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (19) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (21) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (22) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (23) returning to ‘make_container’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (24) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (26) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4221:15: note: (27) returning to ‘libcrun_container_restore’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (28) ‘libcrun_container_load_from_file("config.json", err)’ leaks here; was allocated at (10) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘libcrun_container_exec_with_options’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of ‘libcrun_container_load_from_file(config_file, err)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling ‘libcrun_container_load_from_file’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (19) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (22) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:549:6: note: (23) following ‘false’ branch (when ‘path’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (25) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (27) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (28) returning to ‘libcrun_container_exec_with_options’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (29) ‘libcrun_container_load_from_file(config_file, err)’ leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘read_container_config_from_state’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of ‘libcrun_container_load_from_file(config_file, err)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3803:1: note: (1) entry to ‘libcrun_container_update’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3817:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3820:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3820:9: note: (4) calling ‘read_container_config_from_state’ from ‘libcrun_container_update’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1598:1: note: (5) entry to ‘read_container_config_from_state’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1608:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1611:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1612:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1615:16: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1615:16: note: (10) calling ‘libcrun_container_load_from_file’ from ‘read_container_config_from_state’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (19) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (22) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:549:6: note: (23) following ‘false’ branch (when ‘path’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (25) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (27) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1615:16: note: (28) returning to ‘read_container_config_from_state’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (29) ‘libcrun_container_load_from_file(config_file, err)’ leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘libcrun_container_update’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of ‘xmalloc0(176)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3803:1: note: (1) entry to ‘libcrun_container_update’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3817:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3820:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3820:9: note: (4) calling ‘read_container_config_from_state’ from ‘libcrun_container_update’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1598:1: note: (5) entry to ‘read_container_config_from_state’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1608:6: note: (6) following ‘true’ branch... <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.h:24, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:23: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:86:25: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1609:12: note: in expansion of macro ‘crun_make_error’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3820:9: note: (8) returning to ‘libcrun_container_update’ from ‘read_container_config_from_state’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3821:6: note: (9) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3824:9: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3829:6: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3832:9: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3833:6: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3836:15: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3837:6: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3843:7: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3843:6: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3846:62: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3846:62: note: (19) calling ‘xmalloc0’ from ‘libcrun_container_update’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (20) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (21) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (22) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (23) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3846:62: note: (25) returning to ‘libcrun_container_update’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (26) ‘xmalloc0(176)’ leaks here; was allocated at (21) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of ‘xmalloc0(120)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3803:1: note: (1) entry to ‘libcrun_container_update’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3817:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3820:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3820:9: note: (4) calling ‘read_container_config_from_state’ from ‘libcrun_container_update’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1598:1: note: (5) entry to ‘read_container_config_from_state’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1608:6: note: (6) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:86:25: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1609:12: note: in expansion of macro ‘crun_make_error’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3820:9: note: (8) returning to ‘libcrun_container_update’ from ‘read_container_config_from_state’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3821:6: note: (9) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3824:9: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3829:6: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3832:9: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3833:6: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3836:15: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3837:6: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3843:7: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3843:6: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3846:62: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3846:62: note: (19) calling ‘xmalloc0’ from ‘libcrun_container_update’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (20) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3846:62: note: (23) returning to ‘libcrun_container_update’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3847:61: note: (24) calling ‘xmalloc0’ from ‘libcrun_container_update’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (25) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (26) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (27) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3847:61: note: (30) returning to ‘libcrun_container_update’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (31) ‘xmalloc0(120)’ leaks here; was allocated at (26) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘libcrun_container_load_from_file’ at src/libcrun/container.c:575:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: leak of ‘’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘libcrun_container_restore’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4209:1: note: (1) entry to ‘libcrun_container_restore’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4221:15: note: (2) calling ‘libcrun_container_load_from_file’ from ‘libcrun_container_restore’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (3) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (6) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (7) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (8) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (9) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (12) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:549:6: note: (13) following ‘true’ branch (when ‘path’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (15) calling ‘xstrdup’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (16) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (17) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (19) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (20) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (21) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (22) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (23) returning to ‘make_container’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (24) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (26) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4221:15: note: (27) returning to ‘libcrun_container_restore’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:575:22: note: (28) inlined call to ‘cleanup_freep’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘libcrun_container_load_from_file’ at src/libcrun/container.c:575:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (29) ‘’ leaks here; was allocated at (19) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: leak of ‘’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘libcrun_container_update_intel_rdt’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4437:1: note: (1) entry to ‘libcrun_container_update_intel_rdt’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4445:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4448:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4449:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4452:15: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4452:15: note: (6) calling ‘libcrun_container_load_from_file’ from ‘libcrun_container_update_intel_rdt’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (7) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (10) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (11) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (12) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (13) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:549:6: note: (17) following ‘true’ branch (when ‘path’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (19) calling ‘xstrdup’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (20) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (21) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (23) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (24) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (25) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (26) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (27) returning to ‘make_container’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (28) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (30) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4452:15: note: (31) returning to ‘libcrun_container_update_intel_rdt’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:575:22: note: (32) inlined call to ‘cleanup_freep’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘libcrun_container_load_from_file’ at src/libcrun/container.c:575:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (33) ‘’ leaks here; was allocated at (23) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: leak of ‘’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘libcrun_container_exec_with_options’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling ‘libcrun_container_load_from_file’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:549:6: note: (21) following ‘true’ branch (when ‘path’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (23) calling ‘xstrdup’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (24) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (25) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (27) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (28) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (29) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (30) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (31) returning to ‘make_container’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (32) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (34) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (35) returning to ‘libcrun_container_exec_with_options’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:575:22: note: (36) inlined call to ‘cleanup_freep’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘libcrun_container_load_from_file’ at src/libcrun/container.c:575:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (37) ‘’ leaks here; was allocated at (27) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: leak of ‘’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘read_container_config_from_state’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3803:1: note: (1) entry to ‘libcrun_container_update’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3817:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3820:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3820:9: note: (4) calling ‘read_container_config_from_state’ from ‘libcrun_container_update’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1598:1: note: (5) entry to ‘read_container_config_from_state’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1608:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1611:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1612:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1615:16: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1615:16: note: (10) calling ‘libcrun_container_load_from_file’ from ‘read_container_config_from_state’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:549:6: note: (21) following ‘true’ branch (when ‘path’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (23) calling ‘xstrdup’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (24) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (25) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (27) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (28) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (29) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (30) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (31) returning to ‘make_container’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (32) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (34) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1615:16: note: (35) returning to ‘read_container_config_from_state’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:575:22: note: (36) inlined call to ‘cleanup_freep’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘libcrun_container_load_from_file’ at src/libcrun/container.c:575:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (37) ‘’ leaks here; was allocated at (27) <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘*(void *)p’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second ‘close’ here; first ‘close’ was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘console_socket_fd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling ‘libcrun_container_load_from_file’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to ‘libcrun_container_exec_with_options’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to ‘cgroup_status_freep’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:46: <--[csmock-gcc-wrapper] In function ‘cgroup_status_freep’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to ‘libcrun_seccomp_gen_ctx_init’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:25: <--[csmock-gcc-wrapper] In function ‘libcrun_seccomp_gen_ctx_init’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (41) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (43) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (45) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (47) when ‘pipe2’ succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (48) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (50) calling ‘initialize_security’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:641:1: note: (51) entry to ‘initialize_security’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:645:6: note: (52) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:648:11: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:656:6: note: (54) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:659:9: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (56) returning to ‘libcrun_container_exec_with_options’ from ‘initialize_security’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3694:6: note: (57) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3697:9: note: (58) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3698:6: note: (59) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3702:47: note: (60) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3703:6: note: (61) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (62) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (63) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (64) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3728:6: note: (65) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3732:18: note: (66) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3732:10: note: (67) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3738:13: note: (68) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3739:10: note: (69) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3742:18: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3742:10: note: (71) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3745:49: note: (72) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3746:14: note: (73) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3748:17: note: (74) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3745:29: note: (75) inlined call to ‘cleanup_closep’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3745:29: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (76) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (77) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3745:29: note: (78) inlined call to ‘cleanup_closep’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3745:29: cc1: note: (79) calling ‘cleanup_closep.part.0’ from ‘libcrun_container_exec_with_options’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (80) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (81) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (82) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (83) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (84) second ‘close’ here; first ‘close’ was at (81) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘signalfd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling ‘libcrun_container_load_from_file’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to ‘libcrun_container_exec_with_options’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to ‘cgroup_status_freep’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘cgroup_status_freep’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to ‘libcrun_seccomp_gen_ctx_init’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘libcrun_seccomp_gen_ctx_init’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (41) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (43) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (45) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (47) when ‘pipe2’ succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (48) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (50) calling ‘initialize_security’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:641:1: note: (51) entry to ‘initialize_security’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:645:6: note: (52) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:648:11: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:656:6: note: (54) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:659:9: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (56) returning to ‘libcrun_container_exec_with_options’ from ‘initialize_security’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3694:6: note: (57) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3697:9: note: (58) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3698:6: note: (59) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3702:47: note: (60) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3703:6: note: (61) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (62) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (63) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (64) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3728:6: note: (65) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (66) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3767:6: note: (67) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3772:35: note: (68) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3772:10: note: (69) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3784:38: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3794:15: note: (71) calling ‘wait_for_process’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1969:1: note: (72) entry to ‘wait_for_process’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1983:6: note: (73) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1986:20: note: (74) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1997:6: note: (75) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2000:11: note: (76) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2000:6: note: (77) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2007:3: note: (78) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2009:6: note: (79) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2012:14: note: (80) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2013:6: note: (81) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2016:9: note: (82) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2017:6: note: (83) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2020:7: note: (84) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2020:6: note: (85) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2023:11: note: (86) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2023:6: note: (87) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2057:14: note: (88) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2058:6: note: (89) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2060:11: note: (90) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2069:6: note: (91) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1979:67: note: (92) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1972:21: note: (93) inlined call to ‘cleanup_closep’ from ‘wait_for_process’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘wait_for_process’ at src/libcrun/container.c:1972:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (94) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (95) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1972:21: note: (96) inlined call to ‘cleanup_closep’ from ‘wait_for_process’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘wait_for_process’ at src/libcrun/container.c:1972:21: cc1: note: (97) calling ‘cleanup_closep.part.0’ from ‘wait_for_process’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (98) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (99) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (100) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (101) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (102) second ‘close’ here; first ‘close’ was at (99) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘close_and_reset’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: warning: double ‘close’ of file descriptor ‘seccomp_receiver_fd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3315:1: note: (1) entry to ‘exec_process_entrypoint’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3348:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3351:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3352:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3355:14: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3384:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3387:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3388:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3391:16: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3391:6: note: (10) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3393:21: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3416:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3419:16: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3419:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3421:26: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3433:10: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3436:7: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3437:7: note: (18) calling ‘close_and_reset’ from ‘exec_process_entrypoint’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:202:1: note: (19) entry to ‘close_and_reset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:205:6: note: (20) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (21) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (22) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:13: note: (23) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (24) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (25) second ‘close’ here; first ‘close’ was at (22) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: warning: double ‘close’ of file descriptor ‘seccomp_fd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling ‘libcrun_container_load_from_file’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to ‘libcrun_container_exec_with_options’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to ‘cgroup_status_freep’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘cgroup_status_freep’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘close_and_reset’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to ‘libcrun_seccomp_gen_ctx_init’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘libcrun_seccomp_gen_ctx_init’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘close_and_reset’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (41) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (43) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (45) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (47) when ‘pipe2’ succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (48) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (50) calling ‘initialize_security’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:641:1: note: (51) entry to ‘initialize_security’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:645:6: note: (52) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:648:11: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:656:6: note: (54) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:659:9: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (56) returning to ‘libcrun_container_exec_with_options’ from ‘initialize_security’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3694:6: note: (57) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3697:9: note: (58) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3698:6: note: (59) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3702:47: note: (60) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3703:6: note: (61) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (62) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (63) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (64) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3725:6: note: (65) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3726:5: note: (66) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3726:5: note: (67) calling ‘close_and_reset’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:202:1: note: (68) entry to ‘close_and_reset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:205:6: note: (69) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (70) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (71) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:13: note: (72) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (73) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (74) second ‘close’ here; first ‘close’ was at (71) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: warning: double ‘close’ of file descriptor ‘terminal_fd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling ‘libcrun_container_load_from_file’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to ‘libcrun_container_exec_with_options’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to ‘cgroup_status_freep’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘cgroup_status_freep’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘close_and_reset’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to ‘libcrun_seccomp_gen_ctx_init’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘libcrun_seccomp_gen_ctx_init’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘close_and_reset’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (41) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (43) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (45) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (47) when ‘pipe2’ succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (48) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (50) calling ‘initialize_security’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:641:1: note: (51) entry to ‘initialize_security’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:645:6: note: (52) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:648:11: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:656:6: note: (54) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:659:9: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (56) returning to ‘libcrun_container_exec_with_options’ from ‘initialize_security’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3694:6: note: (57) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3697:9: note: (58) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3698:6: note: (59) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3702:47: note: (60) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3703:6: note: (61) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (62) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (63) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (64) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3728:6: note: (65) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3732:18: note: (66) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3732:10: note: (67) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3738:13: note: (68) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3739:10: note: (69) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3742:18: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3742:10: note: (71) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3745:49: note: (72) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3746:14: note: (73) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3748:17: note: (74) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3749:14: note: (75) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3751:11: note: (76) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3751:11: note: (77) calling ‘close_and_reset’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:202:1: note: (78) entry to ‘close_and_reset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:205:6: note: (79) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (80) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (81) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:13: note: (82) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (83) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (84) second ‘close’ here; first ‘close’ was at (81) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: warning: double ‘close’ of file descriptor ‘own_seccomp_receiver_fd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling ‘libcrun_container_load_from_file’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to ‘libcrun_container_exec_with_options’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to ‘cgroup_status_freep’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘cgroup_status_freep’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘close_and_reset’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to ‘libcrun_seccomp_gen_ctx_init’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘libcrun_seccomp_gen_ctx_init’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘close_and_reset’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:6: note: (41) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3618:13: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3618:13: note: (43) calling ‘get_seccomp_receiver_fd’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2285:1: note: (44) entry to ‘get_seccomp_receiver_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2295:6: note: (45) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2300:13: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2301:10: note: (47) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2304:16: note: (48) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3618:13: note: (49) returning to ‘libcrun_container_exec_with_options’ from ‘get_seccomp_receiver_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3621:10: note: (50) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:29: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (52) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (54) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (56) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (58) when ‘pipe2’ succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (59) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (60) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3677:6: note: (61) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3679:18: note: (62) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3685:10: note: (63) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3687:27: note: (64) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3688:14: note: (65) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (66) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (67) calling ‘initialize_security’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:641:1: note: (68) entry to ‘initialize_security’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:645:6: note: (69) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:648:11: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:656:6: note: (71) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:659:9: note: (72) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (73) returning to ‘libcrun_container_exec_with_options’ from ‘initialize_security’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3694:6: note: (74) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3697:9: note: (75) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3698:6: note: (76) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3702:47: note: (77) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3703:6: note: (78) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (79) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (80) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (81) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3728:6: note: (82) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (83) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3767:6: note: (84) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3772:35: note: (85) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3772:10: note: (86) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3774:31: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3775:14: note: (88) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3778:17: note: (89) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3778:17: note: (90) calling ‘close_and_reset’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:202:1: note: (91) entry to ‘close_and_reset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:205:6: note: (92) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (93) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (94) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:13: note: (95) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (96) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (97) second ‘close’ here; first ‘close’ was at (94) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: warning: double ‘close’ of file descriptor ‘seccomp_fd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3315:1: note: (1) entry to ‘exec_process_entrypoint’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3348:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3351:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3352:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3355:14: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3384:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3387:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3388:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3391:16: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3391:6: note: (10) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3391:73: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3391:39: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3397:57: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3416:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3419:16: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3419:6: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3421:26: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3433:10: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3436:7: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3436:7: note: (20) calling ‘close_and_reset’ from ‘exec_process_entrypoint’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:202:1: note: (21) entry to ‘close_and_reset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:205:6: note: (22) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (23) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (24) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:13: note: (25) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (26) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (27) second ‘close’ here; first ‘close’ was at (24) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘libcrun_container_get_features’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of ‘xstrdup("1.0.0")’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4034:1: note: (1) entry to ‘libcrun_container_get_features’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4046:11: note: (2) calling ‘xmalloc0’ from ‘libcrun_container_get_features’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4046:11: note: (6) returning to ‘libcrun_container_get_features’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4049:30: note: (7) calling ‘xstrdup’ from ‘libcrun_container_get_features’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (8) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (9) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (11) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (12) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (13) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (14) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4049:30: note: (15) returning to ‘libcrun_container_get_features’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (16) ‘xstrdup("1.0.0")’ leaks here; was allocated at (11) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of ‘xstrdup("1.1.0+dev")’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4034:1: note: (1) entry to ‘libcrun_container_get_features’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4046:11: note: (2) calling ‘xmalloc0’ from ‘libcrun_container_get_features’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4046:11: note: (6) returning to ‘libcrun_container_get_features’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4049:30: note: (7) calling ‘xstrdup’ from ‘libcrun_container_get_features’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (8) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (9) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (11) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (12) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4049:30: note: (13) returning to ‘libcrun_container_get_features’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4050:30: note: (14) calling ‘xstrdup’ from ‘libcrun_container_get_features’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (15) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (16) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (19) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (20) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (21) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4050:30: note: (22) returning to ‘libcrun_container_get_features’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (23) ‘xstrdup("1.1.0+dev")’ leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘retrieve_mount_options’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of ‘xstrdup(*.name)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4013:1: note: (1) entry to ‘retrieve_mount_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4026:28: note: (2) calling ‘xmalloc0’ from ‘retrieve_mount_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4026:28: note: (6) returning to ‘retrieve_mount_options’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4029:24: note: (7) following ‘true’ branch (when ‘num_mount_options > i’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4030:60: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4030:33: note: (9) calling ‘xstrdup’ from ‘retrieve_mount_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (10) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (11) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (13) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (14) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (15) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (16) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4030:33: note: (17) returning to ‘retrieve_mount_options’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (18) ‘xstrdup(*.name)’ leaks here; was allocated at (13) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘libcrun_container_exec_with_options’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of ‘xstrdup(*_70->process.selinux_label)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling ‘libcrun_container_load_from_file’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to ‘libcrun_container_exec_with_options’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to ‘cgroup_status_freep’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘cgroup_status_freep’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘libcrun_container_exec_with_options’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to ‘libcrun_seccomp_gen_ctx_init’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘libcrun_seccomp_gen_ctx_init’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘libcrun_container_exec_with_options’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (41) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (43) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (45) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (47) when ‘pipe2’ succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (48) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3677:6: note: (50) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3679:18: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3679:10: note: (52) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3680:34: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3680:34: note: (54) calling ‘xstrdup’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (55) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (56) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (58) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (59) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (60) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (61) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3680:34: note: (62) returning to ‘libcrun_container_exec_with_options’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (63) ‘xstrdup(*_70->process.selinux_label)’ leaks here; was allocated at (58) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of ‘xstrdup(*_75->process.apparmor_profile)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling ‘libcrun_container_load_from_file’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to ‘libcrun_container_exec_with_options’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to ‘cgroup_status_freep’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘cgroup_status_freep’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘libcrun_container_exec_with_options’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to ‘libcrun_seccomp_gen_ctx_init’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘libcrun_seccomp_gen_ctx_init’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘libcrun_container_exec_with_options’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (41) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (43) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (45) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (47) when ‘pipe2’ succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (48) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3677:6: note: (50) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3679:18: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3682:10: note: (52) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3683:37: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3683:37: note: (54) calling ‘xstrdup’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (55) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (56) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (58) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (59) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (60) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (61) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3683:37: note: (62) returning to ‘libcrun_container_exec_with_options’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (63) ‘xstrdup(*_75->process.apparmor_profile)’ leaks here; was allocated at (58) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘libcrun_container_load_from_file’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: warning: leak of ‘’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4209:1: note: (1) entry to ‘libcrun_container_restore’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4221:15: note: (2) calling ‘libcrun_container_load_from_file’ from ‘libcrun_container_restore’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (3) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (6) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (7) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (8) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (9) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (12) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:549:6: note: (13) following ‘true’ branch (when ‘path’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (15) calling ‘xstrdup’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (16) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (17) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (19) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (20) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (21) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (22) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (23) returning to ‘make_container’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (24) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (26) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (27) ‘’ leaks here; was allocated at (19) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘container_delete_internal’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1736:15: warning: dereference of NULL ‘container’ [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4177:1: note: (1) entry to ‘libcrun_container_checkpoint’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4183:42: note: (2) ‘container’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4183:42: note: (3) ‘container’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4186:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4189:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4190:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4192:6: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4192:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4195:9: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4195:9: note: (10) calling ‘read_container_config_from_state’ from ‘libcrun_container_checkpoint’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1598:1: note: (11) entry to ‘read_container_config_from_state’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1608:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1611:9: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1615:16: note: (14) calling ‘libcrun_container_load_from_file’ from ‘read_container_config_from_state’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (15) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (16) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:86:25: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:580:7: note: in expansion of macro ‘crun_make_error’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1615:16: note: (18) returning to ‘read_container_config_from_state’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1616:6: note: (19) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:86:25: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1617:12: note: in expansion of macro ‘crun_make_error’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4195:9: note: (21) returning to ‘libcrun_container_checkpoint’ from ‘read_container_config_from_state’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4196:6: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4198:9: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4198:9: note: (24) ‘container’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4199:6: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4202:20: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4202:6: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4203:12: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4203:12: note: (29) calling ‘container_delete_internal’ from ‘libcrun_container_checkpoint’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1684:1: note: (30) entry to ‘container_delete_internal’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1689:42: note: (31) ‘container’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1694:6: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1708:19: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1710:6: note: (34) following ‘true’ branch (when ‘force != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1728:15: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1728:6: note: (36) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1730:10: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1730:10: note: (38) following ‘true’ branch (when ‘def’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1732:17: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1732:17: note: (40) calling ‘read_container_config_from_state’ from ‘container_delete_internal’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1598:1: note: (41) entry to ‘read_container_config_from_state’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1608:6: note: (42) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:86:25: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1609:12: note: in expansion of macro ‘crun_make_error’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1732:17: note: (44) returning to ‘container_delete_internal’ from ‘read_container_config_from_state’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1733:14: note: (45) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1736:26: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1736:26: note: (47) ‘container’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1736:15: note: (48) dereference of NULL ‘container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘exec_process_entrypoint’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3496:23: warning: double ‘close’ of file descriptor ‘pipefd1’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3315:1: note: (1) entry to ‘exec_process_entrypoint’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3348:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3351:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3352:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3355:14: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3384:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3387:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3388:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3391:16: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3391:6: note: (10) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3393:21: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3416:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3419:16: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3441:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3444:9: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3444:9: note: (16) calling ‘maybe_chown_std_streams’ from ‘exec_process_entrypoint’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1018:1: note: (17) entry to ‘maybe_chown_std_streams’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1023:17: note: (18) following ‘true’ branch (when ‘i != 3’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1025:13: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1025:13: note: (20) when ‘isatty’ succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1025:10: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1023:23: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3444:9: note: (23) returning to ‘exec_process_entrypoint’ from ‘maybe_chown_std_streams’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3445:6: note: (24) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3448:14: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3454:6: note: (26) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3457:6: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3496:23: note: (28) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3496:3: note: (29) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (30) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3496:23: note: (31) second ‘close’ here; first ‘close’ was at (28) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘libcrun_container_exec_with_options’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: warning: dereference of NULL ‘process’ [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3293:1: note: (1) entry to ‘libcrun_container_exec_process_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3301:10: note: (2) calling ‘libcrun_container_exec_with_options’ from ‘libcrun_container_exec_process_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (3) entry to ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3555:46: note: (4) ‘process’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3555:46: note: (5) ‘process’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3555:46: note: (6) ‘process’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (7) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (9) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (15) calling ‘libcrun_container_load_from_file’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (16) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (19) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (20) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (21) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (22) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (23) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (25) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (26) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (28) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (29) returning to ‘libcrun_container_exec_with_options’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (35) inlined call to ‘cgroup_status_freep’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘cgroup_status_freep’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘libcrun_container_exec_with_options’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (37) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (41) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (42) inlined call to ‘libcrun_seccomp_gen_ctx_init’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘libcrun_seccomp_gen_ctx_init’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘libcrun_container_exec_with_options’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (44) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:6: note: (46) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:29: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (48) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (50) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (52) dereference of NULL ‘process’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3680:32: warning: leak of ‘*process.selinux_label’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling ‘libcrun_container_load_from_file’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to ‘libcrun_container_exec_with_options’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to ‘cgroup_status_freep’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘cgroup_status_freep’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘libcrun_container_exec_with_options’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to ‘libcrun_seccomp_gen_ctx_init’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘libcrun_seccomp_gen_ctx_init’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘libcrun_container_exec_with_options’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (41) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (43) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (45) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (47) when ‘pipe2’ succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (48) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3677:6: note: (50) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3679:18: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3679:10: note: (52) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3680:34: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3680:34: note: (54) calling ‘xstrdup’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (55) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (56) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (58) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (59) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (60) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (61) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3680:34: note: (62) returning to ‘libcrun_container_exec_with_options’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3680:32: note: (63) ‘*process.selinux_label’ leaks here; was allocated at (58) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3683:35: warning: leak of ‘*process.apparmor_profile’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling ‘libcrun_container_load_from_file’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to ‘libcrun_container_exec_with_options’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to ‘cgroup_status_freep’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘cgroup_status_freep’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘libcrun_container_exec_with_options’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to ‘libcrun_seccomp_gen_ctx_init’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘libcrun_seccomp_gen_ctx_init’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘libcrun_container_exec_with_options’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (41) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (43) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (45) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (47) when ‘pipe2’ succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (48) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3677:6: note: (50) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3679:18: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3682:10: note: (52) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3683:37: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3683:37: note: (54) calling ‘xstrdup’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (55) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (56) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (58) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (59) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (60) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (61) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3683:37: note: (62) returning to ‘libcrun_container_exec_with_options’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3683:35: note: (63) ‘*process.apparmor_profile’ leaks here; was allocated at (58) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3709:27: warning: double ‘close’ of file descriptor ‘pipefd0’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling ‘libcrun_container_load_from_file’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to ‘libcrun_container_exec_with_options’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to ‘cgroup_status_freep’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘cgroup_status_freep’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘libcrun_container_exec_with_options’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to ‘libcrun_seccomp_gen_ctx_init’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘libcrun_seccomp_gen_ctx_init’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘libcrun_container_exec_with_options’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (41) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (43) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (45) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (47) opened here as read-write <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (48) when ‘pipe2’ succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (49) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (51) calling ‘initialize_security’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:641:1: note: (52) entry to ‘initialize_security’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:645:6: note: (53) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:648:11: note: (54) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:656:6: note: (55) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:659:9: note: (56) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (57) returning to ‘libcrun_container_exec_with_options’ from ‘initialize_security’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3694:6: note: (58) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3697:9: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3698:6: note: (60) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3702:47: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3703:6: note: (62) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (63) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (64) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (65) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3709:27: note: (66) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3709:7: note: (67) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (68) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3709:27: note: (69) second ‘close’ here; first ‘close’ was at (66) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3720:23: warning: double ‘close’ of file descriptor ‘pipefd1’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling ‘libcrun_container_load_from_file’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling ‘make_container’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling ‘xmalloc0’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to ‘make_container’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following ‘false’ branch (when ‘config’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to ‘libcrun_container_load_from_file’ from ‘make_container’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to ‘libcrun_container_exec_with_options’ from ‘libcrun_container_load_from_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to ‘cgroup_status_freep’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘cgroup_status_freep’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘libcrun_container_exec_with_options’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to ‘libcrun_seccomp_gen_ctx_init’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] In function ‘libcrun_seccomp_gen_ctx_init’, inlined from ‘libcrun_container_exec_with_options’ at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function ‘libcrun_container_exec_with_options’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (41) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (43) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (45) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (47) opened here as read-write <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (48) when ‘pipe2’ succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (49) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (51) calling ‘initialize_security’ from ‘libcrun_container_exec_with_options’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:641:1: note: (52) entry to ‘initialize_security’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:645:6: note: (53) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:648:11: note: (54) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:656:6: note: (55) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:659:9: note: (56) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (57) returning to ‘libcrun_container_exec_with_options’ from ‘initialize_security’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3694:6: note: (58) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3697:9: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3698:6: note: (60) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3702:47: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3703:6: note: (62) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (63) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (64) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (65) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3720:23: note: (66) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3720:3: note: (67) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (68) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3720:23: note: (69) second ‘close’ here; first ‘close’ was at (66) <--[csmock-gcc-wrapper] make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_testing_a-wasmtime.o -MD -MP -MF src/libcrun/handlers/.deps/libcrun_testing_a-wasmtime.Tpo -c -o src/libcrun/handlers/libcrun_testing_a-wasmtime.o `test -f 'src/libcrun/handlers/wasmtime.c' || echo './'`src/libcrun/handlers/wasmtime.c mv -f src/libcrun/handlers/.deps/libcrun_testing_a-wasmtime.Tpo src/libcrun/handlers/.deps/libcrun_testing_a-wasmtime.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_testing_a-wasmer.o -MD -MP -MF src/libcrun/handlers/.deps/libcrun_testing_a-wasmer.Tpo -c -o src/libcrun/handlers/libcrun_testing_a-wasmer.o `test -f 'src/libcrun/handlers/wasmer.c' || echo './'`src/libcrun/handlers/wasmer.c mv -f src/libcrun/handlers/.deps/libcrun_testing_a-wasmer.Tpo src/libcrun/handlers/.deps/libcrun_testing_a-wasmer.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-io_priority.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-io_priority.Tpo -c -o src/libcrun/libcrun_testing_a-io_priority.o `test -f 'src/libcrun/io_priority.c' || echo './'`src/libcrun/io_priority.c mv -f src/libcrun/.deps/libcrun_testing_a-io_priority.Tpo src/libcrun/.deps/libcrun_testing_a-io_priority.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_testing_a-spin.o -MD -MP -MF src/libcrun/handlers/.deps/libcrun_testing_a-spin.Tpo -c -o src/libcrun/handlers/libcrun_testing_a-spin.o `test -f 'src/libcrun/handlers/spin.c' || echo './'`src/libcrun/handlers/spin.c mv -f src/libcrun/handlers/.deps/libcrun_testing_a-spin.Tpo src/libcrun/handlers/.deps/libcrun_testing_a-spin.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_testing_a-mono.o -MD -MP -MF src/libcrun/handlers/.deps/libcrun_testing_a-mono.Tpo -c -o src/libcrun/handlers/libcrun_testing_a-mono.o `test -f 'src/libcrun/handlers/mono.c' || echo './'`src/libcrun/handlers/mono.c mv -f src/libcrun/handlers/.deps/libcrun_testing_a-mono.Tpo src/libcrun/handlers/.deps/libcrun_testing_a-mono.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_testing_a-wasmedge.o -MD -MP -MF src/libcrun/handlers/.deps/libcrun_testing_a-wasmedge.Tpo -c -o src/libcrun/handlers/libcrun_testing_a-wasmedge.o `test -f 'src/libcrun/handlers/wasmedge.c' || echo './'`src/libcrun/handlers/wasmedge.c mv -f src/libcrun/handlers/.deps/libcrun_testing_a-wasmedge.Tpo src/libcrun/handlers/.deps/libcrun_testing_a-wasmedge.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-scheduler.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-scheduler.Tpo -c -o src/libcrun/libcrun_testing_a-scheduler.o `test -f 'src/libcrun/scheduler.c' || echo './'`src/libcrun/scheduler.c mv -f src/libcrun/.deps/libcrun_testing_a-scheduler.Tpo src/libcrun/.deps/libcrun_testing_a-scheduler.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-mount_flags.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-mount_flags.Tpo -c -o src/libcrun/libcrun_testing_a-mount_flags.o `test -f 'src/libcrun/mount_flags.c' || echo './'`src/libcrun/mount_flags.c mv -f src/libcrun/.deps/libcrun_testing_a-mount_flags.Tpo src/libcrun/.deps/libcrun_testing_a-mount_flags.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-signals.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-signals.Tpo -c -o src/libcrun/libcrun_testing_a-signals.o `test -f 'src/libcrun/signals.c' || echo './'`src/libcrun/signals.c mv -f src/libcrun/.deps/libcrun_testing_a-signals.Tpo src/libcrun/.deps/libcrun_testing_a-signals.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT tests/tests_libcrun_errors-tests_libcrun_errors.o -MD -MP -MF tests/.deps/tests_libcrun_errors-tests_libcrun_errors.Tpo -c -o tests/tests_libcrun_errors-tests_libcrun_errors.o `test -f 'tests/tests_libcrun_errors.c' || echo './'`tests/tests_libcrun_errors.c mv -f tests/.deps/tests_libcrun_errors-tests_libcrun_errors.Tpo tests/.deps/tests_libcrun_errors-tests_libcrun_errors.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT tests/tests_libcrun_intelrdt-tests_libcrun_intelrdt.o -MD -MP -MF tests/.deps/tests_libcrun_intelrdt-tests_libcrun_intelrdt.Tpo -c -o tests/tests_libcrun_intelrdt-tests_libcrun_intelrdt.o `test -f 'tests/tests_libcrun_intelrdt.c' || echo './'`tests/tests_libcrun_intelrdt.c mv -f tests/.deps/tests_libcrun_intelrdt-tests_libcrun_intelrdt.Tpo tests/.deps/tests_libcrun_intelrdt-tests_libcrun_intelrdt.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-terminal.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-terminal.Tpo -c -o src/libcrun/libcrun_testing_a-terminal.o `test -f 'src/libcrun/terminal.c' || echo './'`src/libcrun/terminal.c mv -f src/libcrun/.deps/libcrun_testing_a-terminal.Tpo src/libcrun/.deps/libcrun_testing_a-terminal.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-seccomp_notify.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-seccomp_notify.Tpo -c -o src/libcrun/libcrun_testing_a-seccomp_notify.o `test -f 'src/libcrun/seccomp_notify.c' || echo './'`src/libcrun/seccomp_notify.c mv -f src/libcrun/.deps/libcrun_testing_a-seccomp_notify.Tpo src/libcrun/.deps/libcrun_testing_a-seccomp_notify.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-intelrdt.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-intelrdt.Tpo -c -o src/libcrun/libcrun_testing_a-intelrdt.o `test -f 'src/libcrun/intelrdt.c' || echo './'`src/libcrun/intelrdt.c mv -f src/libcrun/.deps/libcrun_testing_a-intelrdt.Tpo src/libcrun/.deps/libcrun_testing_a-intelrdt.Po /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/wasmtime.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/wasmer.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/io_priority.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/spin.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/mono.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/wasmedge.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/scheduler.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/mount_flags.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/signals.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_errors.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_intelrdt.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/linux.h:23, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:24: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘*(void *)p’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second ‘close’ here; first ‘close’ was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘fd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:40:1: note: (1) entry to ‘libcrun_new_terminal’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:44:26: note: (2) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:45:6: note: (3) assuming ‘fd’ is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:45:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:48:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:44:21: note: (6) inlined call to ‘cleanup_closep’ from ‘libcrun_new_terminal’ <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:25: <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘libcrun_new_terminal’ at src/libcrun/terminal.c:44:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (7) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (8) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:44:21: note: (9) inlined call to ‘cleanup_closep’ from ‘libcrun_new_terminal’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘libcrun_new_terminal’ at src/libcrun/terminal.c:44:21: cc1: note: (10) calling ‘cleanup_closep.part.0’ from ‘libcrun_new_terminal’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (11) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (12) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (13) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (14) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (15) second ‘close’ here; first ‘close’ was at (12) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘fd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:95:1: note: (1) entry to ‘libcrun_set_stdio’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:98:26: note: (2) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:100:6: note: (3) assuming ‘fd’ is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:100:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (5) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:103:17: note: (6) following ‘true’ branch (when ‘i != 3’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:105:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:98:21: note: (8) inlined call to ‘cleanup_closep’ from ‘libcrun_set_stdio’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘libcrun_set_stdio’ at src/libcrun/terminal.c:98:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (9) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (10) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:98:21: note: (11) inlined call to ‘cleanup_closep’ from ‘libcrun_set_stdio’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘libcrun_set_stdio’ at src/libcrun/terminal.c:98:21: cc1: note: (12) calling ‘cleanup_closep.part.0’ from ‘libcrun_set_stdio’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (13) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (14) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (15) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (16) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (17) second ‘close’ here; first ‘close’ was at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘libcrun_set_stdio’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:106:1: warning: leak of file descriptor ‘ret’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:95:1: note: (1) entry to ‘libcrun_set_stdio’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:100:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:103:17: note: (4) following ‘true’ branch (when ‘i != 3’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:105:13: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:105:13: note: (6) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:106:10: note: (7) assuming ‘ret’ is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:106:10: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:103:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:103:17: note: (10) following ‘true’ branch (when ‘i != 3’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:105:13: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:105:13: note: (12) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:106:10: note: (13) assuming ‘ret’ is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:106:10: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:103:23: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:98:21: note: (16) inlined call to ‘cleanup_closep’ from ‘libcrun_set_stdio’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘libcrun_set_stdio’ at src/libcrun/terminal.c:98:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘libcrun_set_stdio’: cc1: note: (18) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:106:1: note: (19) ‘ret’ leaks here; was opened at (12) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘libcrun_new_terminal’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of ‘xstrdup(&buf)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:40:1: note: (1) entry to ‘libcrun_new_terminal’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:45:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:48:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:49:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:52:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:53:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:56:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:56:10: note: (8) calling ‘xstrdup’ from ‘libcrun_new_terminal’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (9) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (10) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (12) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (13) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (14) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (15) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:56:10: note: (16) returning to ‘libcrun_new_terminal’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (17) ‘xstrdup(&buf)’ leaks here; was allocated at (12) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:32: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘libcrun_load_seccomp_notify_plugins’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of ‘xmalloc((long unsigned int)*(struct seccomp_notify_context_s *).sizes.seccomp_notif)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:83:1: note: (1) entry to ‘libcrun_load_seccomp_notify_plugins’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:87:73: note: (2) calling ‘xmalloc0’ from ‘libcrun_load_seccomp_notify_plugins’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:87:73: note: (6) returning to ‘libcrun_load_seccomp_notify_plugins’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:92:6: note: (7) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:34: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:15: note: (9) calling ‘xmalloc’ from ‘libcrun_load_seccomp_notify_plugins’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (10) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (11) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (12) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:15: note: (15) returning to ‘libcrun_load_seccomp_notify_plugins’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (16) ‘xmalloc((long unsigned int)*(struct seccomp_notify_context_s *).sizes.seccomp_notif)’ leaks here; was allocated at (11) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of ‘xmalloc((long unsigned int)*(struct seccomp_notify_context_s *).sizes.seccomp_notif_resp)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:83:1: note: (1) entry to ‘libcrun_load_seccomp_notify_plugins’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:87:73: note: (2) calling ‘xmalloc0’ from ‘libcrun_load_seccomp_notify_plugins’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:87:73: note: (6) returning to ‘libcrun_load_seccomp_notify_plugins’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:92:6: note: (7) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:34: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:15: note: (9) calling ‘xmalloc’ from ‘libcrun_load_seccomp_notify_plugins’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (10) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:15: note: (13) returning to ‘libcrun_load_seccomp_notify_plugins’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:96:16: note: (14) calling ‘xmalloc’ from ‘libcrun_load_seccomp_notify_plugins’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (15) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (16) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (17) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:96:16: note: (20) returning to ‘libcrun_load_seccomp_notify_plugins’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (21) ‘xmalloc((long unsigned int)*(struct seccomp_notify_context_s *).sizes.seccomp_notif_resp)’ leaks here; was allocated at (16) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of ‘xmalloc0(48)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:83:1: note: (1) entry to ‘libcrun_load_seccomp_notify_plugins’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:87:73: note: (2) calling ‘xmalloc0’ from ‘libcrun_load_seccomp_notify_plugins’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:87:73: note: (6) returning to ‘libcrun_load_seccomp_notify_plugins’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:92:6: note: (7) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:34: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:15: note: (9) calling ‘xmalloc’ from ‘libcrun_load_seccomp_notify_plugins’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (10) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:15: note: (13) returning to ‘libcrun_load_seccomp_notify_plugins’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:96:16: note: (14) calling ‘xmalloc’ from ‘libcrun_load_seccomp_notify_plugins’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (15) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:96:16: note: (18) returning to ‘libcrun_load_seccomp_notify_plugins’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:102:18: note: (19) calling ‘xmalloc0’ from ‘libcrun_load_seccomp_notify_plugins’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (20) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (21) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (22) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (23) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:102:18: note: (25) returning to ‘libcrun_load_seccomp_notify_plugins’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (26) ‘xmalloc0(48)’ leaks here; was allocated at (21) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of ‘xstrdup(plugins)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:83:1: note: (1) entry to ‘libcrun_load_seccomp_notify_plugins’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:87:73: note: (2) calling ‘xmalloc0’ from ‘libcrun_load_seccomp_notify_plugins’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:87:73: note: (6) returning to ‘libcrun_load_seccomp_notify_plugins’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:92:6: note: (7) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:34: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:15: note: (9) calling ‘xmalloc’ from ‘libcrun_load_seccomp_notify_plugins’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (10) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:15: note: (13) returning to ‘libcrun_load_seccomp_notify_plugins’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:96:16: note: (14) calling ‘xmalloc’ from ‘libcrun_load_seccomp_notify_plugins’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (15) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:96:16: note: (18) returning to ‘libcrun_load_seccomp_notify_plugins’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:102:18: note: (19) calling ‘xmalloc0’ from ‘libcrun_load_seccomp_notify_plugins’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (20) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:102:18: note: (23) returning to ‘libcrun_load_seccomp_notify_plugins’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:104:7: note: (24) calling ‘xstrdup’ from ‘libcrun_load_seccomp_notify_plugins’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (25) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (26) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (28) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (29) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (30) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (31) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:104:7: note: (32) returning to ‘libcrun_load_seccomp_notify_plugins’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (33) ‘xstrdup(plugins)’ leaks here; was allocated at (28) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:23: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘resctl_update’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of ‘intelrdt_clean_l3_cache_schema(l3_cache_schema)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:295:1: note: (1) entry to ‘resctl_update’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:303:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:306:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:307:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:6: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:6: note: (6) following ‘true’ branch (when ‘l3_cache_schema’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:26: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:26: note: (8) when ‘strstr’ returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:23: note: (9) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:311:49: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:311:49: note: (11) calling ‘intelrdt_clean_l3_cache_schema’ from ‘resctl_update’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:210:1: note: (12) entry to ‘intelrdt_clean_l3_cache_schema’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:215:9: note: (13) calling ‘xmalloc’ from ‘intelrdt_clean_l3_cache_schema’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (14) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (15) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (16) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:215:9: note: (19) returning to ‘intelrdt_clean_l3_cache_schema’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:311:49: note: (20) returning to ‘resctl_update’ from ‘intelrdt_clean_l3_cache_schema’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (21) ‘intelrdt_clean_l3_cache_schema(l3_cache_schema)’ leaks here; was allocated at (15) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘resctl_create’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of ‘intelrdt_clean_l3_cache_schema(l3_cache_schema)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:233:1: note: (1) entry to ‘resctl_create’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:241:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:243:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:243:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:246:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:247:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:250:11: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:251:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:6: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:6: note: (10) following ‘true’ branch (when ‘l3_cache_schema’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:26: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:26: note: (12) when ‘strstr’ returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:23: note: (13) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:255:49: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:255:49: note: (15) calling ‘intelrdt_clean_l3_cache_schema’ from ‘resctl_create’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:210:1: note: (16) entry to ‘intelrdt_clean_l3_cache_schema’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:215:9: note: (17) calling ‘xmalloc’ from ‘intelrdt_clean_l3_cache_schema’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (18) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (19) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (20) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:215:9: note: (23) returning to ‘intelrdt_clean_l3_cache_schema’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:255:49: note: (24) returning to ‘resctl_create’ from ‘intelrdt_clean_l3_cache_schema’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (25) ‘intelrdt_clean_l3_cache_schema(l3_cache_schema)’ leaks here; was allocated at (19) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘compare_rdt_configurations’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of ‘xmalloc((n_parts_a + 1) * 8)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:233:1: note: (1) entry to ‘resctl_create’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:241:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:243:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:243:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:246:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:247:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:250:11: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:251:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:6: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:6: note: (10) following ‘true’ branch (when ‘l3_cache_schema’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:26: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:26: note: (12) when ‘strstr’ returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:23: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:259:43: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:259:6: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:268:6: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:268:6: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:269:12: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:269:12: note: (19) calling ‘validate_rdt_configuration’ from ‘resctl_create’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:158:1: note: (20) entry to ‘validate_rdt_configuration’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:166:6: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:169:9: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:170:6: note: (23) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:173:7: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:174:10: note: (25) following ‘true’ branch (when ‘it’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:178:10: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:178:10: note: (27) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:179:15: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:179:15: note: (29) calling ‘compare_rdt_configurations’ from ‘validate_rdt_configuration’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:98:1: note: (30) entry to ‘compare_rdt_configurations’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:108:8: note: (31) when ‘strchr’ returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:109:19: note: (32) following ‘false’ branch (when ‘it’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:111:8: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:111:8: note: (34) when ‘strchr’ returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:112:19: note: (35) following ‘false’ branch (when ‘it’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:114:15: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:117:6: note: (37) following ‘false’ branch (when ‘n_parts_a == n_parts_b’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:120:56: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:120:8: note: (39) calling ‘xmalloc’ from ‘compare_rdt_configurations’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (40) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (41) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (42) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (43) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:120:8: note: (45) returning to ‘compare_rdt_configurations’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (46) ‘xmalloc((n_parts_a + 1) * 8)’ leaks here; was allocated at (41) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/linux.h:23, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:22: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘*(void *)p’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second ‘close’ here; first ‘close’ was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘fd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:295:1: note: (1) entry to ‘resctl_update’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:303:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:306:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:307:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:6: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:6: note: (6) following ‘true’ branch (when ‘l3_cache_schema’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:26: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:26: note: (8) when ‘strstr’ returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:23: note: (9) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:313:8: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:313:8: note: (11) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:314:6: note: (12) assuming ‘fd’ is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:314:6: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:317:9: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:299:21: note: (15) inlined call to ‘cleanup_closep’ from ‘resctl_update’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘resctl_update’ at src/libcrun/intelrdt.c:299:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (16) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (17) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:299:21: note: (18) inlined call to ‘cleanup_closep’ from ‘resctl_update’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘resctl_update’ at src/libcrun/intelrdt.c:299:21: cc1: note: (19) calling ‘cleanup_closep.part.0’ from ‘resctl_update’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (20) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (21) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (22) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (23) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (24) second ‘close’ here; first ‘close’ was at (21) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘compare_rdt_configurations’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of ‘xstrdup(a)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:233:1: note: (1) entry to ‘resctl_create’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:241:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:243:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:243:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:246:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:247:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:250:11: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:251:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:6: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:6: note: (10) following ‘true’ branch (when ‘l3_cache_schema’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:26: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:26: note: (12) when ‘strstr’ returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:23: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:259:43: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:259:6: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:268:6: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:268:6: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:269:12: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:269:12: note: (19) calling ‘validate_rdt_configuration’ from ‘resctl_create’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:158:1: note: (20) entry to ‘validate_rdt_configuration’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:166:6: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:169:9: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:170:6: note: (23) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:173:7: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:174:10: note: (25) following ‘true’ branch (when ‘it’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:178:10: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:178:10: note: (27) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:179:15: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:179:15: note: (29) calling ‘compare_rdt_configurations’ from ‘validate_rdt_configuration’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:98:1: note: (30) entry to ‘compare_rdt_configurations’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:108:8: note: (31) when ‘strchr’ returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:109:19: note: (32) following ‘false’ branch (when ‘it’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:111:8: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:111:8: note: (34) when ‘strchr’ returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:112:19: note: (35) following ‘false’ branch (when ‘it’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:114:15: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:117:6: note: (37) following ‘false’ branch (when ‘n_parts_a == n_parts_b’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:120:56: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:120:8: note: (39) calling ‘xmalloc’ from ‘compare_rdt_configurations’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (40) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (41) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:120:8: note: (43) returning to ‘compare_rdt_configurations’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:122:18: note: (44) calling ‘xstrdup’ from ‘compare_rdt_configurations’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (45) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (46) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (48) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (49) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (50) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (51) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:122:18: note: (52) returning to ‘compare_rdt_configurations’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (53) ‘xstrdup(a)’ leaks here; was allocated at (48) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of ‘xstrdup(b)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:233:1: note: (1) entry to ‘resctl_create’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:241:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:243:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:243:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:246:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:247:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:250:11: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:251:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:6: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:6: note: (10) following ‘true’ branch (when ‘l3_cache_schema’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:26: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:26: note: (12) when ‘strstr’ returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:23: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:259:43: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:259:6: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:268:6: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:268:6: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:269:12: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:269:12: note: (19) calling ‘validate_rdt_configuration’ from ‘resctl_create’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:158:1: note: (20) entry to ‘validate_rdt_configuration’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:166:6: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:169:9: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:170:6: note: (23) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/srmake[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-seccomp.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-seccomp.Tpo -c -o src/libcrun/libcrun_testing_a-seccomp.o `test -f 'src/libcrun/seccomp.c' || echo './'`src/libcrun/seccomp.c mv -f src/libcrun/.deps/libcrun_testing_a-seccomp.Tpo src/libcrun/.deps/libcrun_testing_a-seccomp.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-status.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-status.Tpo -c -o src/libcrun/libcrun_testing_a-status.o `test -f 'src/libcrun/status.c' || echo './'`src/libcrun/status.c mv -f src/libcrun/.deps/libcrun_testing_a-status.Tpo src/libcrun/.deps/libcrun_testing_a-status.Po c/libcrun/intelrdt.c:173:7: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:174:10: note: (25) following ‘true’ branch (when ‘it’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:178:10: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:178:10: note: (27) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:179:15: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:179:15: note: (29) calling ‘compare_rdt_configurations’ from ‘validate_rdt_configuration’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:98:1: note: (30) entry to ‘compare_rdt_configurations’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:108:8: note: (31) when ‘strchr’ returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:109:19: note: (32) following ‘false’ branch (when ‘it’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:111:8: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:111:8: note: (34) when ‘strchr’ returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:112:19: note: (35) following ‘false’ branch (when ‘it’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:114:15: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:117:6: note: (37) following ‘false’ branch (when ‘n_parts_a == n_parts_b’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:120:56: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:120:8: note: (39) calling ‘xmalloc’ from ‘compare_rdt_configurations’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (40) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (41) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:120:8: note: (43) returning to ‘compare_rdt_configurations’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:122:18: note: (44) calling ‘xstrdup’ from ‘compare_rdt_configurations’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (45) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (46) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (48) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (49) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:122:18: note: (50) returning to ‘compare_rdt_configurations’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:136:18: note: (51) calling ‘xstrdup’ from ‘compare_rdt_configurations’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (52) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (53) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (54) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (55) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (56) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (57) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (58) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:136:18: note: (59) returning to ‘compare_rdt_configurations’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (60) ‘xstrdup(b)’ leaks here; was allocated at (55) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c: In function ‘resctl_update’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:313:8: warning: leak of file descriptor ‘open(path, 524289)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:303:6: note: (1) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:306:9: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:307:6: note: (3) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:6: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:6: note: (5) following ‘false’ branch (when ‘l3_cache_schema’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:313:8: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:313:8: note: (7) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:313:8: note: (8) ‘open(path, 524289)’ leaks here; was opened at (7) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:25: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘libcrun_copy_seccomp’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of ‘xmalloc(in_size + 1)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:836:1: note: (1) entry to ‘libcrun_copy_seccomp’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:845:14: note: (2) calling ‘xmalloc’ from ‘libcrun_copy_seccomp’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (3) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (4) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (5) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:845:14: note: (8) returning to ‘libcrun_copy_seccomp’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (9) ‘xmalloc(in_size + 1)’ leaks here; was allocated at (4) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘evict_cache’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: warning: leak of ‘xrealloc(entries, (n_entries + 1) * 88)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:492:1: note: (1) entry to ‘evict_cache’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:500:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:503:30: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:506:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (5) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:514:6: note: (6) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:522:11: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:523:10: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:526:20: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:529:14: note: (10) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:531:25: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:554:25: note: (12) calling ‘xrealloc’ from ‘evict_cache’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (13) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (14) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (15) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:554:25: note: (18) returning to ‘evict_cache’ from ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: note: (19) ‘xrealloc(entries, (n_entries + 1) * 88)’ leaks here; was allocated at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘evict_cache’ at src/libcrun/seccomp.c:516:40: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-‘free’ of ‘entries’ [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function ‘evict_cache’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:492:1: note: (1) entry to ‘evict_cache’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:500:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:503:30: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:506:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (5) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:514:6: note: (6) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:522:11: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:523:10: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:526:20: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:529:14: note: (10) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:531:25: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:554:25: note: (12) passing freed pointer ‘entries’ in call to ‘xrealloc’ from ‘evict_cache’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (13) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (14) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:554:25: note: (17) returning to ‘evict_cache’ from ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:517:24: note: (18) inlined call to ‘cleanup_dirp’ from ‘evict_cache’ <--[csmock-gcc-wrapper] In function ‘cleanup_dirp’, inlined from ‘evict_cache’ at src/libcrun/seccomp.c:517:24: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:197:6: note: (19) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:198:5: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function ‘evict_cache’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:516:40: note: (21) inlined call to ‘cleanup_freep’ from ‘evict_cache’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘evict_cache’ at src/libcrun/seccomp.c:516:40: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (22) second ‘free’ here <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:23, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:23: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘*(void *)p’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second ‘close’ here; first ‘close’ was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘dirfd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:859:1: note: (1) entry to ‘libcrun_open_seccomp_bpf’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:868:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:871:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:871:11: note: (4) calling ‘open_rundir_dirfd’ from ‘libcrun_open_seccomp_bpf’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:455:1: note: (5) entry to ‘open_rundir_dirfd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:461:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (7) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:31: note: (8) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:11: note: (9) assuming ‘open(libcrun_get_state_directory(state_root, 0), 2686976)’ is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:465:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:457:22: note: (11) inlined call to ‘cleanup_freep’ from ‘open_rundir_dirfd’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘open_rundir_dirfd’ at src/libcrun/seccomp.c:457:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:871:11: note: (13) returning to ‘libcrun_open_seccomp_bpf’ from ‘open_rundir_dirfd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:872:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:876:49: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:861:21: note: (16) inlined call to ‘cleanup_closep’ from ‘libcrun_open_seccomp_bpf’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘libcrun_open_seccomp_bpf’ at src/libcrun/seccomp.c:861:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (18) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:861:21: note: (19) inlined call to ‘cleanup_closep’ from ‘libcrun_open_seccomp_bpf’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘libcrun_open_seccomp_bpf’ at src/libcrun/seccomp.c:861:21: cc1: note: (20) calling ‘cleanup_closep.part.0’ from ‘libcrun_open_seccomp_bpf’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (21) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (22) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (23) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (24) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (25) second ‘close’ here; first ‘close’ was at (22) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘memfd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:200:1: note: (1) entry to ‘libcrun_apply_seccomp’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:214:6: note: (2) following ‘false’ branch (when ‘infd >= 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:217:17: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:217:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:221:6: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:242:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:245:28: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:248:6: note: (8) following ‘true’ branch (when ‘listener_receiver_fd >= 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:250:25: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:268:10: note: (10) following ‘true’ branch... <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:24: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:269:38: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:250:25: note: (12) inlined call to ‘cleanup_closep’ from ‘libcrun_apply_seccomp’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘libcrun_apply_seccomp’ at src/libcrun/seccomp.c:250:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (13) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (14) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:250:25: note: (15) inlined call to ‘cleanup_closep’ from ‘libcrun_apply_seccomp’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘libcrun_apply_seccomp’ at src/libcrun/seccomp.c:250:25: cc1: note: (16) calling ‘cleanup_closep.part.0’ from ‘libcrun_apply_seccomp’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (17) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (18) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (19) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (20) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (21) second ‘close’ here; first ‘close’ was at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘dirfd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:572:1: note: (1) entry to ‘store_seccomp_cache’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:580:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:583:7: note: (3) inlined call to ‘is_empty_string’ from ‘store_seccomp_cache’ <--[csmock-gcc-wrapper] In function ‘is_empty_string’, inlined from ‘store_seccomp_cache’ at src/libcrun/seccomp.c:583:7: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:395:24: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:395:20: note: (5) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:586:39: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:586:11: note: (7) calling ‘open_rundir_dirfd’ from ‘store_seccomp_cache’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:455:1: note: (8) entry to ‘open_rundir_dirfd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:461:6: note: (9) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (10) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:31: note: (11) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:11: note: (12) assuming ‘open(libcrun_get_state_directory(state_root, 0), 2686976)’ is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:465:6: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:457:22: note: (14) inlined call to ‘cleanup_freep’ from ‘open_rundir_dirfd’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘open_rundir_dirfd’ at src/libcrun/seccomp.c:457:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:586:11: note: (16) returning to ‘store_seccomp_cache’ from ‘open_rundir_dirfd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:587:6: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:591:48: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:577:21: note: (19) inlined call to ‘cleanup_closep’ from ‘store_seccomp_cache’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘store_seccomp_cache’ at src/libcrun/seccomp.c:577:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (20) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (21) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:577:21: note: (22) inlined call to ‘cleanup_closep’ from ‘store_seccomp_cache’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘store_seccomp_cache’ at src/libcrun/seccomp.c:577:21: cc1: note: (23) calling ‘cleanup_closep.part.0’ from ‘store_seccomp_cache’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (24) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (25) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (26) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (28) second ‘close’ here; first ‘close’ was at (25) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘close_and_reset’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: warning: double ‘close’ of file descriptor ‘memfd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:200:1: note: (1) entry to ‘libcrun_apply_seccomp’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:214:6: note: (2) following ‘false’ branch (when ‘infd >= 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:217:17: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:217:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:221:6: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:242:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:245:28: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:248:6: note: (8) following ‘true’ branch (when ‘listener_receiver_fd >= 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:250:25: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:261:10: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:267:13: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:268:10: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:271:13: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:273:10: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:277:7: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:277:7: note: (16) calling ‘close_and_reset’ from ‘libcrun_apply_seccomp’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:202:1: note: (17) entry to ‘close_and_reset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:205:6: note: (18) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (19) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (20) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:13: note: (21) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (22) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (23) second ‘close’ here; first ‘close’ was at (20) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function ‘libcrun_open_seccomp_bpf’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:461:21: warning: leak of file descriptor ‘open_rundir_dirfd(*container_50->context.state_root, err)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:859:1: note: (1) entry to ‘libcrun_open_seccomp_bpf’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:868:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:871:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:871:11: note: (4) calling ‘open_rundir_dirfd’ from ‘libcrun_open_seccomp_bpf’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:455:1: note: (5) entry to ‘open_rundir_dirfd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:461:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (7) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:31: note: (8) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:11: note: (9) assuming ‘open(libcrun_get_state_directory(state_root, 0), 2686976)’ is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:465:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:457:22: note: (11) inlined call to ‘cleanup_freep’ from ‘open_rundir_dirfd’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘open_rundir_dirfd’ at src/libcrun/seccomp.c:457:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function ‘libcrun_open_seccomp_bpf’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:871:11: note: (13) returning to ‘libcrun_open_seccomp_bpf’ from ‘open_rundir_dirfd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:461:21: note: (14) ‘open_rundir_dirfd(*container_50->context.state_root, err)’ leaks here; was opened at (8) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function ‘store_seccomp_cache’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:461:21: warning: leak of file descriptor ‘open_rundir_dirfd(*container_44->context.state_root, err)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:572:1: note: (1) entry to ‘store_seccomp_cache’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:580:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:583:7: note: (3) inlined call to ‘is_empty_string’ from ‘store_seccomp_cache’ <--[csmock-gcc-wrapper] In function ‘is_empty_string’, inlined from ‘store_seccomp_cache’ at src/libcrun/seccomp.c:583:7: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:395:24: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:395:20: note: (5) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function ‘store_seccomp_cache’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:586:39: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:586:11: note: (7) calling ‘open_rundir_dirfd’ from ‘store_seccomp_cache’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:455:1: note: (8) entry to ‘open_rundir_dirfd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:461:6: note: (9) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (10) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:31: note: (11) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:11: note: (12) assuming ‘open(libcrun_get_state_directory(state_root, 0), 2686976)’ is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:465:6: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:457:22: note: (14) inlined call to ‘cleanup_freep’ from ‘open_rundir_dirfd’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘open_rundir_dirfd’ at src/libcrun/seccomp.c:457:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function ‘store_seccomp_cache’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:586:11: note: (16) returning to ‘store_seccomp_cache’ from ‘open_rundir_dirfd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:461:21: note: (17) ‘open_rundir_dirfd(*container_44->context.state_root, err)’ leaks here; was opened at (11) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function ‘open_rundir_dirfd’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:31: warning: leak of file descriptor ‘open(libcrun_get_state_directory(state_root, 0), 2686976)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:461:6: note: (1) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (2) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:31: note: (3) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:31: note: (4) ‘open(libcrun_get_state_directory(state_root, 0), 2686976)’ leaks here; was opened at (3) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:465:6: warning: leak of file descriptor ‘’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:461:6: note: (1) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (2) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:31: note: (3) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:11: note: (4) assuming ‘open(libcrun_get_state_directory(state_root, 0), 2686976)’ is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:465:6: note: (5) ‘’ leaks here; was opened at (3) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function ‘evict_cache’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:522:11: warning: leak of ‘fdopendir(cache_dir_fd)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:500:6: note: (1) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:503:30: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:506:6: note: (3) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (4) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:514:6: note: (5) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:522:11: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:522:11: note: (7) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:522:11: note: (8) ‘fdopendir(cache_dir_fd)’ leaks here; was allocated at (7) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:562:7: warning: use of NULL ‘entries’ where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:500:6: note: (1) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:503:30: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:506:6: note: (3) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (4) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:514:6: note: (5) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:522:11: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:523:10: note: (7) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:526:20: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:562:7: note: (9) argument 1 (‘entries’) NULL where non-null expected <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:22: <--[csmock-gcc-wrapper] /usr/include/stdlib.h:970:13: note: argument 1 of ‘qsort’ must be non-null <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c: In function ‘libcrun_container_delete_status’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:557:1: warning: leak of file descriptor ‘rundir_dfd’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:525:1: note: (1) entry to ‘libcrun_container_delete_status’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:532:9: note: (2) calling ‘get_run_directory’ from ‘libcrun_container_delete_status’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (3) entry to ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (4) following ‘false’ branch (when ‘state_root’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (6) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:52:33: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:56:14: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:63:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:532:9: note: (10) returning to ‘libcrun_container_delete_status’ from ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:533:6: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (12) ...to here In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.h:24, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:21: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:536:36: note: (13) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:536:16: note: (14) assuming ‘open(get_run_directory(state_root), 2686976)’ is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:537:6: note: (15) following ‘true’ branch... <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:24, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:22: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:538:34: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:529:21: note: (17) inlined call to ‘cleanup_closep’ from ‘libcrun_container_delete_status’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘libcrun_container_delete_status’ at src/libcrun/status.c:529:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] In function ‘libcrun_container_delete_status’: cc1: note: (19) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:557:1: note: (20) ‘rundir_dfd’ leaks here; was opened at (13) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘libcrun_get_containers_list’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of ‘xmalloc(16)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:575:1: note: (1) entry to ‘libcrun_get_containers_list’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:579:29: note: (2) calling ‘get_run_directory’ from ‘libcrun_get_containers_list’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (3) entry to ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (4) following ‘false’ branch (when ‘state_root’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (6) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:52:33: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:56:14: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:63:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:579:29: note: (10) returning to ‘libcrun_get_containers_list’ from ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:584:6: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:587:15: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:587:30: note: (13) following ‘true’ branch (when ‘next’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:590:26: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:594:10: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:597:54: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:598:10: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:601:16: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:602:10: note: (19) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:607:10: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:607:10: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:613:24: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:613:24: note: (23) calling ‘xmalloc’ from ‘libcrun_get_containers_list’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (24) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (25) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (26) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:613:24: note: (29) returning to ‘libcrun_get_containers_list’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (30) ‘xmalloc(16)’ leaks here; was allocated at (25) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of ‘xmalloc(16)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:575:1: note: (1) entry to ‘libcrun_get_containers_list’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:579:29: note: (2) calling ‘get_run_directory’ from ‘libcrun_get_containers_list’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (3) entry to ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (4) following ‘false’ branch (when ‘state_root’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (6) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:52:33: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:56:14: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:63:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:579:29: note: (10) returning to ‘libcrun_get_containers_list’ from ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:584:6: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:587:15: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:587:30: note: (13) following ‘true’ branch (when ‘next’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:590:26: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:594:10: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:597:54: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:598:10: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:601:16: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:602:10: note: (19) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:607:10: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:607:10: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:613:24: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:613:24: note: (23) calling ‘xmalloc’ from ‘libcrun_get_containers_list’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (24) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (25) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (26) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:613:24: note: (29) returning to ‘libcrun_get_containers_list’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:614:30: note: (30) calling ‘xstrdup’ from ‘libcrun_get_containers_list’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (31) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (32) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (34) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (35) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:614:30: note: (36) returning to ‘libcrun_get_containers_list’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (37) ‘xmalloc(16)’ leaks here; was allocated at (25) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘*(void *)p’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second ‘close’ here; first ‘close’ was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘fd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:643:1: note: (1) entry to ‘libcrun_check_pid_valid’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:649:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:652:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:652:9: note: (4) calling ‘read_pid_stat’ from ‘libcrun_check_pid_valid’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:109:1: note: (5) entry to ‘read_pid_stat’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:119:8: note: (6) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:120:6: note: (7) assuming ‘fd’ is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:120:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:131:9: note: (9) inlined call to ‘read_all_fd’ from ‘read_pid_stat’ <--[csmock-gcc-wrapper] In function ‘read_all_fd’, inlined from ‘read_pid_stat’ at src/libcrun/status.c:131:9: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:305:10: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:112:21: note: (11) inlined call to ‘cleanup_closep’ from ‘read_pid_stat’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘read_pid_stat’ at src/libcrun/status.c:112:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (12) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (13) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:112:21: note: (14) inlined call to ‘cleanup_closep’ from ‘read_pid_stat’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘read_pid_stat’ at src/libcrun/status.c:112:21: cc1: note: (15) calling ‘cleanup_closep.part.0’ from ‘read_pid_stat’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (16) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (17) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (18) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (19) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (20) second ‘close’ here; first ‘close’ was at (17) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘fd_cleanup’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:525:1: note: (1) entry to ‘libcrun_container_delete_status’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:532:9: note: (2) calling ‘get_run_directory’ from ‘libcrun_container_delete_status’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (3) entry to ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (4) following ‘false’ branch (when ‘state_root’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (6) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:52:33: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:53:10: note: (8) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:55:17: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:56:14: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:63:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:532:9: note: (12) returning to ‘libcrun_container_delete_status’ from ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:533:6: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (14) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:537:6: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:540:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:541:6: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:544:9: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:544:9: note: (19) calling ‘rmdirfd’ from ‘libcrun_container_delete_status’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:467:1: note: (20) entry to ‘rmdirfd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:472:46: note: (21) inlined call to ‘cleanup_closep’ from ‘rmdirfd’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘rmdirfd’ at src/libcrun/status.c:472:46: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (22) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (23) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:472:46: note: (24) inlined call to ‘cleanup_closep’ from ‘rmdirfd’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘rmdirfd’ at src/libcrun/status.c:472:46: cc1: note: (25) calling ‘cleanup_closep.part.0’ from ‘rmdirfd’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (26) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (27) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (28) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (29) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (30) second ‘close’ here; first ‘close’ was at (27) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘cfd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:525:1: note: (1) entry to ‘libcrun_container_delete_status’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:532:9: note: (2) calling ‘get_run_directory’ from ‘limake[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_testing_a-linux.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-linux.Tpo -c -o src/libcrun/libcrun_testing_a-linux.o `test -f 'src/libcrun/linux.c' || echo './'`src/libcrun/linux.c mv -f src/libcrun/.deps/libcrun_testing_a-linux.Tpo src/libcrun/.deps/libcrun_testing_a-linux.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT tests/tests_libcrun_fuzzer-tests_libcrun_fuzzer.o -MD -MP -MF tests/.deps/tests_libcrun_fuzzer-tests_libcrun_fuzzer.Tpo -c -o tests/tests_libcrun_fuzzer-tests_libcrun_fuzzer.o `test -f 'tests/tests_libcrun_fuzzer.c' || echo './'`tests/tests_libcrun_fuzzer.c mv -f tests/.deps/tests_libcrun_fuzzer-tests_libcrun_fuzzer.Tpo tests/.deps/tests_libcrun_fuzzer-tests_libcrun_fuzzer.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/crun-delete.o -MD -MP -MF src/.deps/crun-delete.Tpo -c -o src/crun-delete.o `test -f 'src/delete.c' || echo './'`src/delete.c mv -f src/.deps/crun-delete.Tpo src/.deps/crun-delete.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/crun-pause.o -MD -MP -MF src/.deps/crun-pause.Tpo -c -o src/crun-pause.o `test -f 'src/pause.c' || echo './'`src/pause.c mv -f src/.deps/crun-pause.Tpo src/.deps/crun-pause.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/crun-crun.o -MD -MP -MF src/.deps/crun-crun.Tpo -c -o src/crun-crun.o `test -f 'src/crun.c' || echo './'`src/crun.c mv -f src/.deps/crun-crun.Tpo src/.deps/crun-crun.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/crun-kill.o -MD -MP -MF src/.deps/crun-kill.Tpo -c -o src/crun-kill.o `test -f 'src/kill.c' || echo './'`src/kill.c mv -f src/.deps/crun-kill.Tpo src/.deps/crun-kill.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/crun-unpause.o -MD -MP -MF src/.deps/crun-unpause.Tpo -c -o src/crun-unpause.o `test -f 'src/unpause.c' || echo './'`src/unpause.c mv -f src/.deps/crun-unpause.Tpo src/.deps/crun-unpause.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/crun-spec.o -MD -MP -MF src/.deps/crun-spec.Tpo -c -o src/crun-spec.o `test -f 'src/spec.c' || echo './'`src/spec.c mv -f src/.deps/crun-spec.Tpo src/.deps/crun-spec.Po bcrun_container_delete_status’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (3) entry to ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (4) following ‘false’ branch (when ‘state_root’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (6) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:52:33: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:53:10: note: (8) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:55:17: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:56:14: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:63:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:532:9: note: (12) returning to ‘libcrun_container_delete_status’ from ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:533:6: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (14) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:537:6: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:540:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:541:6: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:544:9: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:544:9: note: (19) calling ‘rmdirfd’ from ‘libcrun_container_delete_status’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:467:1: note: (20) entry to ‘rmdirfd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:475:6: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:479:14: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:481:26: note: (23) following ‘true’ branch (when ‘de’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:483:22: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:483:10: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:487:13: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:488:10: note: (27) following ‘true’ branch (when ‘ret < 0’)... <--[csmock-gcc-wrapper] cc1: note: (28) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:504:14: note: (29) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:506:33: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:509:18: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:512:21: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:512:21: note: (33) calling ‘rmdirfd’ from ‘rmdirfd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:467:1: note: (34) entry to ‘rmdirfd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:475:6: note: (35) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:476:34: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:472:46: note: (37) inlined call to ‘cleanup_closep’ from ‘rmdirfd’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘rmdirfd’ at src/libcrun/status.c:472:46: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (38) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (39) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:472:46: note: (40) inlined call to ‘cleanup_closep’ from ‘rmdirfd’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘rmdirfd’ at src/libcrun/status.c:472:46: cc1: note: (41) calling ‘cleanup_closep.part.0’ from ‘rmdirfd’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (42) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (43) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:472:46: note: (44) inlined call to ‘cleanup_closep’ from ‘rmdirfd’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘rmdirfd’ at src/libcrun/status.c:472:46: cc1: note: (45) returning to ‘rmdirfd’ from ‘cleanup_closep.part.0’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:470:20: note: (46) inlined call to ‘cleanup_dirp’ from ‘rmdirfd’ <--[csmock-gcc-wrapper] In function ‘cleanup_dirp’, inlined from ‘rmdirfd’ at src/libcrun/status.c:470:20: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:197:6: note: (47) following ‘false’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (48) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:512:21: note: (49) returning to ‘rmdirfd’ from ‘rmdirfd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:506:33: note: (50) inlined call to ‘cleanup_closep’ from ‘rmdirfd’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘rmdirfd’ at src/libcrun/status.c:506:33: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (51) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (52) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:506:33: note: (53) inlined call to ‘cleanup_closep’ from ‘rmdirfd’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘rmdirfd’ at src/libcrun/status.c:506:33: cc1: note: (54) calling ‘cleanup_closep.part.0’ from ‘rmdirfd’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (55) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (56) second ‘close’ here; first ‘close’ was at (43) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘libcrun_get_containers_list’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of ‘xstrdup(&*next.d_name)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:575:1: note: (1) entry to ‘libcrun_get_containers_list’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:579:29: note: (2) calling ‘get_run_directory’ from ‘libcrun_get_containers_list’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (3) entry to ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (4) following ‘false’ branch (when ‘state_root’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (6) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:52:33: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:56:14: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:63:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:579:29: note: (10) returning to ‘libcrun_get_containers_list’ from ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:584:6: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:587:15: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:587:30: note: (13) following ‘true’ branch (when ‘next’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:590:26: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:594:10: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:597:54: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:598:10: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:601:16: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:602:10: note: (19) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:607:10: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:607:10: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:613:24: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:613:24: note: (23) calling ‘xmalloc’ from ‘libcrun_get_containers_list’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (24) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (25) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:613:24: note: (27) returning to ‘libcrun_get_containers_list’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:614:30: note: (28) calling ‘xstrdup’ from ‘libcrun_get_containers_list’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (29) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (30) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (32) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (33) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (34) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (35) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:614:30: note: (36) returning to ‘libcrun_get_containers_list’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (37) ‘xstrdup(&*next.d_name)’ leaks here; was allocated at (32) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c: In function ‘libcrun_container_delete_status’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: warning: leak of ‘get_run_directory(state_root)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:525:1: note: (1) entry to ‘libcrun_container_delete_status’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:532:9: note: (2) calling ‘get_run_directory’ from ‘libcrun_container_delete_status’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (3) entry to ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (4) following ‘true’ branch (when ‘state_root’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:49:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:49:12: note: (6) calling ‘xstrdup’ from ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (7) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (8) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (10) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (11) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (12) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (13) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:49:12: note: (14) returning to ‘get_run_directory’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:63:12: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:63:6: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:66:9: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:532:9: note: (19) returning to ‘libcrun_container_delete_status’ from ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (20) ‘get_run_directory(state_root)’ leaks here; was allocated at (10) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c: In function ‘read_pid_stat’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:119:8: warning: leak of file descriptor ‘open(&pid_stat_file, 524288)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:643:1: note: (1) entry to ‘libcrun_check_pid_valid’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:649:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:652:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:652:9: note: (4) calling ‘read_pid_stat’ from ‘libcrun_check_pid_valid’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:109:1: note: (5) entry to ‘read_pid_stat’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:119:8: note: (6) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:119:8: note: (7) ‘open(&pid_stat_file, 524288)’ leaks here; was opened at (6) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c: In function ‘rmdirfd’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:474:7: warning: leak of ‘fdopendir(fd)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:474:7: note: (1) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:474:7: note: (2) ‘fdopendir(fd)’ leaks here; was allocated at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c: In function ‘libcrun_container_delete_status’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:536:36: warning: leak of file descriptor ‘open(get_run_directory(state_root), 2686976)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:525:1: note: (1) entry to ‘libcrun_container_delete_status’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:532:9: note: (2) calling ‘get_run_directory’ from ‘libcrun_container_delete_status’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (3) entry to ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (4) following ‘false’ branch (when ‘state_root’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (6) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:52:33: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:53:10: note: (8) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:55:17: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:56:14: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:63:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:67:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:69:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:532:9: note: (14) returning to ‘libcrun_container_delete_status’ from ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:533:6: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (16) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:536:36: note: (17) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:536:36: note: (18) ‘open(get_run_directory(state_root), 2686976)’ leaks here; was opened at (17) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c: In function ‘libcrun_get_containers_list’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:583:9: warning: use of NULL where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:575:1: note: (1) entry to ‘libcrun_get_containers_list’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:579:29: note: (2) calling ‘get_run_directory’ from ‘libcrun_get_containers_list’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (3) entry to ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:45:9: note: (4) ‘root’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (5) following ‘false’ branch (when ‘state_root’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (7) ‘root’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (8) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:52:33: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:53:10: note: (10) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:55:17: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:56:14: note: (12) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:58:15: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:579:29: note: (14) returning to ‘libcrun_get_containers_list’ from ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:583:9: note: (15) argument 1 (‘get_run_directory(state_root)’) NULL where non-null expected <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:27: <--[csmock-gcc-wrapper] /usr/include/dirent.h:141:13: note: argument 1 of ‘opendir’ must be non-null <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:583:9: warning: leak of ‘opendir(get_run_directory(state_root))’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:575:1: note: (1) entry to ‘libcrun_get_containers_list’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:579:29: note: (2) calling ‘get_run_directory’ from ‘libcrun_get_containers_list’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (3) entry to ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (4) following ‘false’ branch (when ‘state_root’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (6) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:52:33: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:53:10: note: (8) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:55:17: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:56:14: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:63:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:67:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:69:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:579:29: note: (14) returning to ‘libcrun_get_containers_list’ from ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:583:9: note: (15) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:583:9: note: (16) ‘opendir(get_run_directory(state_root))’ leaks here; was allocated at (15) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c: In function ‘libcrun_status_create_exec_fifo’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:693:8: warning: leak of file descriptor ‘open(fifo_path, 526336)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:678:1: note: (1) entry to ‘libcrun_status_create_exec_fifo’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:680:34: note: (2) calling ‘libcrun_get_state_directory’ from ‘libcrun_status_create_exec_fifo’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:73:1: note: (3) entry to ‘libcrun_get_state_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:78:29: note: (4) calling ‘get_run_directory’ from ‘libcrun_get_state_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (5) entry to ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (6) following ‘false’ branch (when ‘state_root’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (8) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:52:33: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:78:29: note: (10) returning to ‘libcrun_get_state_directory’ from ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:81:6: note: (11) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:83:7: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:680:34: note: (13) returning to ‘libcrun_status_create_exec_fifo’ from ‘libcrun_get_state_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:685:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:688:3: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:690:6: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:693:8: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:693:8: note: (18) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:693:8: note: (19) ‘open(fifo_path, 526336)’ leaks here; was opened at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c: In function ‘libcrun_status_write_exec_fifo’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:715:8: warning: leak of file descriptor ‘open(fifo_path, 524289)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:701:1: note: (1) entry to ‘libcrun_status_write_exec_fifo’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:703:34: note: (2) calling ‘libcrun_get_state_directory’ from ‘libcrun_status_write_exec_fifo’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:73:1: note: (3) entry to ‘libcrun_get_state_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:78:29: note: (4) calling ‘get_run_directory’ from ‘libcrun_get_state_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (5) entry to ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (6) following ‘false’ branch (when ‘state_root’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (8) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:52:33: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:78:29: note: (10) returning to ‘libcrun_get_state_directory’ from ‘get_run_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:81:6: note: (11) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:83:7: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:703:34: note: (13) returning to ‘libcrun_status_write_exec_fifo’ from ‘libcrun_get_state_directory’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:712:6: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:715:8: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:715:8: note: (16) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:715:8: note: (17) ‘open(fifo_path, 524289)’ leaks here; was opened at (16) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/linux.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/linux.c:3680: error: uninitvar(CWE-457): Uninitialized variable: code <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/linux.c: internal warning: child 11076 timed out after 30s <--[csmock-gcc-wrapper] cswrap: error: child 11076 (/usr/bin/csmock-gcc-wrapper) terminated by signal 15 (timed out) /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-internal.h:22, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:23: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘*(void *)p’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:39:32: note: in definition of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:39:32: note: in definition of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:40:27: note: (2) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: in expansion of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second ‘close’ here; first ‘close’ was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:39:32: note: in definition of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘outfd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:39:32: note: in definition of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:476:1: note: (1) entry to ‘main’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:482:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:484:3: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:486:6: note: (4) following ‘true’ branch (when ‘argc > 1’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:488:23: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:492:10: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:497:14: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:497:14: note: (8) inlined call to ‘LLVMFuzzerTestOneInput’ from ‘main’ <--[csmock-gcc-wrapper] In function ‘LLVMFuzzerTestOneInput’, inlined from ‘main’ at tests/tests_libcrun_fuzzer.c:497:14: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:461:3: note: (9) calling ‘run_one_test’ from ‘main’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:366:1: note: (10) entry to ‘run_one_test’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:370:3: note: (11) following ‘case 2:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:382:5: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:384:7: note: (13) calling ‘generate_seccomp’ from ‘run_one_test’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:145:1: note: (14) entry to ‘generate_seccomp’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:153:10: note: (15) calling ‘make_nul_terminated’ from ‘generate_seccomp’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:46:1: note: (16) entry to ‘make_nul_terminated’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:51:6: note: (17) following ‘false’ branch (when ‘r’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:53:3: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:153:10: note: (19) returning to ‘generate_seccomp’ from ‘make_nul_terminated’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:154:6: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:157:15: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:158:6: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:164:11: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:164:11: note: (24) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:165:6: note: (25) assuming ‘outfd’ is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:165:6: note: (26) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:168:3: note: (27) inlined call to ‘libcrun_seccomp_gen_ctx_init’ from ‘generate_seccomp’ <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:27: <--[csmock-gcc-wrapper] In function ‘libcrun_seccomp_gen_ctx_init’, inlined from ‘generate_seccomp’ at tests/tests_libcrun_fuzzer.c:168:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:150:21: note: (29) inlined call to ‘cleanup_closep’ from ‘generate_seccomp’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘generate_seccomp’ at tests/tests_libcrun_fuzzer.c:150:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (30) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (31) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:150:21: note: (32) inlined call to ‘cleanup_closep’ from ‘generate_seccomp’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘generate_seccomp’ at tests/tests_libcrun_fuzzer.c:150:21: cc1: note: (33) calling ‘cleanup_closep.part.0’ from ‘generate_seccomp’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (34) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (35) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:39:32: note: in definition of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:40:27: note: (36) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: in expansion of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] cc1: note: (37) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (38) second ‘close’ here; first ‘close’ was at (35) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:39:32: note: in definition of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘fd’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:39:32: note: in definition of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:476:1: note: (1) entry to ‘main’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:482:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:484:3: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:486:6: note: (4) following ‘true’ branch (when ‘argc > 1’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:488:23: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:492:10: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:497:14: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:497:14: note: (8) inlined call to ‘LLVMFuzzerTestOneInput’ from ‘main’ <--[csmock-gcc-wrapper] In function ‘LLVMFuzzerTestOneInput’, inlined from ‘main’ at tests/tests_libcrun_fuzzer.c:497:14: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:461:3: note: (9) calling ‘run_one_test’ from ‘main’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:366:1: note: (10) entry to ‘run_one_test’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:370:3: note: (11) following ‘case 5:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:401:5: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:403:7: note: (13) calling ‘test_generate_ebpf’ from ‘run_one_test’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:60:1: note: (14) entry to ‘test_generate_ebpf’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:69:10: note: (15) calling ‘make_nul_terminated’ from ‘test_generate_ebpf’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:46:1: note: (16) entry to ‘make_nul_terminated’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:51:6: note: (17) following ‘false’ branch (when ‘r’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:53:3: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:69:10: note: (19) returning to ‘test_generate_ebpf’ from ‘make_nul_terminated’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:70:6: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:73:13: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:79:6: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:83:6: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:83:6: note: (24) following ‘false’ branch (when ‘len > 9’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:86:3: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:90:6: note: (26) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:97:17: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:98:6: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:105:8: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:105:8: note: (30) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:106:6: note: (31) assuming ‘fd’ is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:106:6: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:109:3: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:66:21: note: (34) inlined call to ‘cleanup_closep’ from ‘test_generate_ebpf’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘test_generate_ebpf’ at tests/tests_libcrun_fuzzer.c:66:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (35) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (36) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:66:21: note: (37) inlined call to ‘cleanup_closep’ from ‘test_generate_ebpf’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘test_generate_ebpf’ at tests/tests_libcrun_fuzzer.c:66:21: cc1: note: (38) calling ‘cleanup_closep.part.0’ from ‘test_generate_ebpf’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (39) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (40) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:39:32: note: in definition of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:40:27: note: (41) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: in expansion of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] cc1: note: (42) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (43) second ‘close’ here; first ‘close’ was at (40) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:39:32: note: in definition of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c: In function ‘test_generate_ebpf’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:105:8: warning: leak of file descriptor ‘open("/dev/null", 1)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:476:1: note: (1) entry to ‘main’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:482:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:484:3: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:486:6: note: (4) following ‘true’ branch (when ‘argc > 1’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:488:23: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:492:10: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:497:14: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:497:14: note: (8) inlined call to ‘LLVMFuzzerTestOneInput’ from ‘main’ <--[csmock-gcc-wrapper] In function ‘LLVMFuzzerTestOneInput’, inlined from ‘main’ at tests/tests_libcrun_fuzzer.c:497:14: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:461:3: note: (9) calling ‘run_one_test’ from ‘main’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c: In function ‘test_generate_ebpf’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:366:1: note: (10) entry to ‘run_one_test’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:370:3: note: (11) following ‘case 5:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:401:5: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:403:7: note: (13) calling ‘test_generate_ebpf’ from ‘run_one_test’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:60:1: note: (14) entry to ‘test_generate_ebpf’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:69:10: note: (15) calling ‘make_nul_terminated’ from ‘test_generate_ebpf’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:46:1: note: (16) entry to ‘make_nul_terminated’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:51:6: note: (17) following ‘false’ branch (when ‘r’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:53:3: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:69:10: note: (19) returning to ‘test_generate_ebpf’ from ‘make_nul_terminated’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:70:6: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:73:13: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:79:6: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:83:6: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:83:6: note: (24) following ‘false’ branch (when ‘len > 9’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:86:3: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:90:6: note: (26) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:97:17: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:98:6: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:105:8: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:105:8: note: (30) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:105:8: note: (31) ‘open("/dev/null", 1)’ leaks here; was opened at (30) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c: In function ‘generate_seccomp’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:164:11: warning: leak of file descriptor ‘open("/dev/null", 1)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:476:1: note: (1) entry to ‘main’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:482:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:484:3: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:486:6: note: (4) following ‘true’ branch (when ‘argc > 1’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:488:23: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:492:10: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:497:14: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:497:14: note: (8) inlined call to ‘LLVMFuzzerTestOneInput’ from ‘main’ <--[csmock-gcc-wrapper] In function ‘LLVMFuzzerTestOneInput’, inlined from ‘main’ at tests/tests_libcrun_fuzzer.c:497:14: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:461:3: note: (9) calling ‘run_one_test’ from ‘main’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c: In function ‘generate_seccomp’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:366:1: note: (10) entry to ‘run_one_test’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:370:3: note: (11) following ‘case 2:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:382:5: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:384:7: note: (13) calling ‘generate_seccomp’ from ‘run_one_test’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:145:1: note: (14) entry to ‘generate_seccomp’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:153:10: note: (15) calling ‘make_nul_terminated’ from ‘generate_seccomp’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:46:1: note: (16) entry to ‘make_nul_terminated’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:51:6: note: (17) following ‘false’ branch (when ‘r’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:53:3: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:153:10: note: (19) returning to ‘generate_seccomp’ from ‘make_nul_terminated’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:154:6: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:157:15: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:158:6: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:164:11: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:164:11: note: (24) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_fuzzer.c:164:11: note: (25) ‘open("/dev/null", 1)’ leaks here; was opened at (24) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/delete.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/pause.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/crun.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/kill.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/unpause.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/spec.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/spec.c: In function ‘crun_command_spec’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/spec.c:126:7: warning: leak of FILE ‘fopen(where, "w+e")’ [CWE-775] [-Wanalyzer-file-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/spec.c:99:6: note: (1) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/spec.c:103:14: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/spec.c:103:6: note: (3) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/spec.c:117:17: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/spec.c:126:7: note: (5) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/spec.c:126:7: note: (6) ‘fopen(where, "w+e")’ leaks here; was opened at (5) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/spec.c:126:7: warning: leak of ‘fopen(where, "w+e")’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/spec.c:99:6: note: (1) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/spec.c:103:14: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/spec.c:103:6: note: (3) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/spec.c:117:17: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/spec.c:126:7: note: (5) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/spec.c:126:7: note: (6) ‘fopen(where, "w+e")’ leaks here; was allocated at (5) <--[csmock-gcc-wrapper] make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/crun-run.o -MD -MP -MF src/.deps/crun-run.Tpo -c -o src/crun-run.o `test -f 'src/run.c' || echo './'`src/run.c mv -f src/.deps/crun-run.Tpo src/.deps/crun-run.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/crun-oci_features.o -MD -MP -MF src/.deps/crun-oci_features.Tpo -c -o src/crun-oci_features.o `test -f 'src/oci_features.c' || echo './'`src/oci_features.c mv -f src/.deps/crun-oci_features.Tpo src/.deps/crun-oci_features.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/crun-exec.o -MD -MP -MF src/.deps/crun-exec.Tpo -c -o src/crun-exec.o `test -f 'src/exec.c' || echo './'`src/exec.c mv -f src/.deps/crun-exec.Tpo src/.deps/crun-exec.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/crun-list.o -MD -MP -MF src/.deps/crun-list.Tpo -c -o src/crun-list.o `test -f 'src/list.c' || echo './'`src/list.c mv -f src/.deps/crun-list.Tpo src/.deps/crun-list.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/crun-create.o -MD -MP -MF src/.deps/crun-create.Tpo -c -o src/crun-create.o `test -f 'src/create.c' || echo './'`src/create.c mv -f src/.deps/crun-create.Tpo src/.deps/crun-create.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/crun-start.o -MD -MP -MF src/.deps/crun-start.Tpo -c -o src/crun-start.o `test -f 'src/start.c' || echo './'`src/start.c mv -f src/.deps/crun-start.Tpo src/.deps/crun-start.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/crun-state.o -MD -MP -MF src/.deps/crun-state.Tpo -c -o src/crun-state.o `test -f 'src/state.c' || echo './'`src/state.c mv -f src/.deps/crun-state.Tpo src/.deps/crun-state.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/crun-update.o -MD -MP -MF src/.deps/crun-update.Tpo -c -o src/crun-update.o `test -f 'src/update.c' || echo './'`src/update.c mv -f src/.deps/crun-update.Tpo src/.deps/crun-update.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/crun-ps.o -MD -MP -MF src/.deps/crun-ps.Tpo -c -o src/crun-ps.o `test -f 'src/ps.c' || echo './'`src/ps.c mv -f src/.deps/crun-ps.Tpo src/.deps/crun-ps.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/crun-checkpoint.o -MD -MP -MF src/.deps/crun-checkpoint.Tpo -c -o src/crun-checkpoint.o `test -f 'src/checkpoint.c' || echo './'`src/checkpoint.c mv -f src/.deps/crun-checkpoint.Tpo src/.deps/crun-checkpoint.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/crun-restore.o -MD -MP -MF src/.deps/crun-restore.Tpo -c -o src/crun-restore.o `test -f 'src/restore.c' || echo './'`src/restore.c mv -f src/.deps/crun-restore.Tpo src/.deps/crun-restore.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/crun-cloned_binary.o -MD -MP -MF src/libcrun/.deps/crun-cloned_binary.Tpo -c -o src/libcrun/crun-cloned_binary.o `test -f 'src/libcrun/cloned_binary.c' || echo './'`src/libcrun/cloned_binary.c mv -f src/libcrun/.deps/crun-cloned_binary.Tpo src/libcrun/.deps/crun-cloned_binary.Po /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/run.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/oci_features.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:29: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘crun_command_exec’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of ‘xmalloc(88)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:245:1: note: (1) entry to ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:264:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:267:37: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:272:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:278:19: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:278:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (8) calling ‘xmalloc0’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (9) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (12) returning to ‘crun_command_exec’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:286:23: note: (13) calling ‘xmalloc0’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (14) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:286:23: note: (17) returning to ‘crun_command_exec’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:287:21: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:289:14: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:290:10: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:292:39: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:295:23: note: (22) calling ‘make_oci_process_user’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:202:1: note: (23) entry to ‘make_oci_process_user’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:207:6: note: (24) following ‘true’ branch (when ‘userspec’ is NULL)... <--[csmock-gcc-wrapper] In file included from /usr/include/bits/types/stack_t.h:23, <--[csmock-gcc-wrapper] from /usr/include/signal.h:313, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:29: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:208:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:295:23: note: (26) returning to ‘crun_command_exec’ from ‘make_oci_process_user’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:297:10: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:300:23: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:300:10: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:303:23: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:303:10: note: (31) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:306:17: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:306:17: note: (33) calling ‘xmalloc’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (34) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (35) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (36) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (37) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:306:17: note: (39) returning to ‘crun_command_exec’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (40) ‘xmalloc(88)’ leaks here; was allocated at (35) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of ‘xmalloc0((long unsigned int)(argc + 1) * 8)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:245:1: note: (1) entry to ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:264:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:267:37: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:272:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:278:19: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:278:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (8) calling ‘xmalloc0’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (9) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (12) returning to ‘crun_command_exec’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:286:23: note: (13) calling ‘xmalloc0’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (14) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (15) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (16) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:286:23: note: (19) returning to ‘crun_command_exec’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (20) ‘xmalloc0((long unsigned int)(argc + 1) * 8)’ leaks here; was allocated at (15) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘make_oci_process_user’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of ‘xmalloc0(56)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:245:1: note: (1) entry to ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:264:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:267:37: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:272:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:278:19: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:278:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (8) calling ‘xmalloc0’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (9) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (12) returning to ‘crun_command_exec’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:286:23: note: (13) calling ‘xmalloc0’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (14) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:286:23: note: (17) returning to ‘crun_command_exec’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:287:21: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:289:14: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:290:10: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:292:39: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:295:23: note: (22) calling ‘make_oci_process_user’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:202:1: note: (23) entry to ‘make_oci_process_user’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:207:6: note: (24) following ‘false’ branch (when ‘userspec’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:210:7: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:210:7: note: (26) calling ‘xmalloc0’ from ‘make_oci_process_user’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (27) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (28) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (29) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:210:7: note: (32) returning to ‘make_oci_process_user’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (33) ‘xmalloc0(56)’ leaks here; was allocated at (28) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of ‘xmalloc0(56)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:245:1: note: (1) entry to ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:264:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:267:37: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:272:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:278:19: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:278:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (8) calling ‘xmalloc0’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (9) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (12) returning to ‘crun_command_exec’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:286:23: note: (13) calling ‘xmalloc0’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (14) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:286:23: note: (17) returning to ‘crun_command_exec’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:287:21: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:289:14: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:290:10: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:292:39: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:295:23: note: (22) calling ‘make_oci_process_user’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:202:1: note: (23) entry to ‘make_oci_process_user’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:207:6: note: (24) following ‘false’ branch (when ‘userspec’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:210:7: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:210:7: note: (26) calling ‘xmalloc0’ from ‘make_oci_process_user’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (27) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (28) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (29) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:210:7: note: (32) returning to ‘make_oci_process_user’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:213:6: note: (33) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:215:7: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:215:6: note: (35) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:217:6: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (37) ‘xmalloc0(56)’ leaks here; was allocated at (28) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of ‘xmalloc0(56)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:245:1: note: (1) entry to ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:264:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:267:37: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:272:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:278:19: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:278:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (8) calling ‘xmalloc0’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (9) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (12) returning to ‘crun_command_exec’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:286:23: note: (13) calling ‘xmalloc0’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (14) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:286:23: note: (17) returning to ‘crun_command_exec’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:287:21: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:289:14: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:290:10: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:292:39: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:295:23: note: (22) calling ‘make_oci_process_user’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:202:1: note: (23) entry to ‘make_oci_process_user’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:207:6: note: (24) following ‘false’ branch (when ‘userspec’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:210:7: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:210:7: note: (26) calling ‘xmalloc0’ from ‘make_oci_process_user’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (27) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (28) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (29) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:210:7: note: (32) returning to ‘make_oci_process_user’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:213:6: note: (33) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:215:7: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:215:6: note: (35) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:217:6: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:217:6: note: (37) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:220:9: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (39) ‘xmalloc0(56)’ leaks here; was allocated at (28) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘crun_command_exec’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of ‘make_oci_process_user(exec_options.user)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:245:1: note: (1) entry to ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:264:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:267:37: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:278:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (6) calling ‘xmalloc0’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (7) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (10) returning to ‘crun_command_exec’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:286:23: note: (11) calling ‘xmalloc0’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (12) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:286:23: note: (15) returning to ‘crun_command_exec’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:287:21: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:289:14: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:290:10: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:292:39: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:295:23: note: (20) calling ‘make_oci_process_user’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:202:1: note: (21) entry to ‘make_oci_process_user’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:207:6: note: (22) following ‘false’ branch (when ‘userspec’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:210:7: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:210:7: note: (24) calling ‘xmalloc0’ from ‘make_oci_process_user’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (25) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (26) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (27) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:210:7: note: (30) returning to ‘make_oci_process_user’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:213:6: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:215:7: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:215:6: note: (33) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (34) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:295:23: note: (35) returning to ‘crun_command_exec’ from ‘make_oci_process_user’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (36) ‘make_oci_process_user(exec_options.user)’ leaks here; was allocated at (26) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘make_oci_process_user’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of ‘xmalloc0(56)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:245:1: note: (1) entry to ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:264:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:267:37: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:272:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:278:19: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:278:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (8) calling ‘xmalloc0’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (9) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (12) returning to ‘crun_command_exec’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:286:23: note: (13) calling ‘xmalloc0’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (14) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:286:23: note: (17) returning to ‘crun_command_exec’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:287:21: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:289:14: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:290:10: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:292:39: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:295:23: note: (22) calling ‘make_oci_process_user’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:202:1: note: (23) entry to ‘make_oci_process_user’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:207:6: note: (24) following ‘false’ branch (when ‘userspec’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:210:7: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:210:7: note: (26) calling ‘xmalloc0’ from ‘make_oci_process_user’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (27) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (28) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (29) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:210:7: note: (32) returning to ‘make_oci_process_user’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:213:6: note: (33) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:215:7: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:215:6: note: (35) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:217:6: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:217:6: note: (37) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:220:9: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:222:6: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:224:7: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (41) ‘xmalloc0(56)’ leaks here; was allocated at (28) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘crun_command_exec’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of ‘xstrdup(*)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:245:1: note: (1) entry to ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:264:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:267:37: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:272:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:278:19: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:278:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (8) calling ‘xmalloc0’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (9) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (12) returning to ‘crun_command_exec’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:286:23: note: (13) calling ‘xmalloc0’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (14) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:286:23: note: (17) returning to ‘crun_command_exec’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:287:21: note: (18) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:288:52: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:288:28: note: (20) calling ‘xstrdup’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (21) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (22) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (24) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (25) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (26) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:288:28: note: (28) returning to ‘crun_command_exec’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (29) ‘xstrdup(*)’ leaks here; was allocated at (24) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of ‘xstrdup(exec_options.process_label)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:245:1: note: (1) entry to ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:264:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:267:37: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:272:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:278:19: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:278:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (8) calling ‘xmalloc0’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (9) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (12) returning to ‘crun_command_exec’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:286:23: note: (13) calling ‘xmalloc0’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (14) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:286:23: note: (17) returning to ‘crun_command_exec’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:287:21: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:289:14: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:290:10: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:292:39: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:295:23: note: (22) calling ‘make_oci_process_user’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:202:1: note: (23) entry to ‘make_oci_process_user’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:207:6: note: (24) following ‘true’ branch (when ‘userspec’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:208:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:295:23: note: (26) returning to ‘crun_command_exec’ from ‘make_oci_process_user’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:297:10: note: (27) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:298:34: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:298:34: note: (29) calling ‘xstrdup’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (30) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (31) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (33) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (34) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (35) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (36) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:298:34: note: (37) returning to ‘crun_command_exec’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (38) ‘xstrdup(exec_options.process_label)’ leaks here; was allocated at (33) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of ‘xstrdup(exec_options.apparmor)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:245:1: note: (1) entry to ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:264:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:267:37: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:272:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:278:19: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:278:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (8) calling ‘xmalloc0’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (9) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:282:17: note: (12) returning to ‘crun_command_exec’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:286:23: note: (13) calling ‘xmalloc0’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (14) entry to ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:286:23: note: (17) returning to ‘crun_command_exec’ from ‘xmalloc0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:287:21: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:289:14: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:290:10: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:292:39: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:295:23: note: (22) calling ‘make_oci_process_user’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:202:1: note: (23) entry to ‘make_oci_process_user’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:207:6: note: (24) following ‘true’ branch (when ‘userspec’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:208:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:295:23: note: (26) returning to ‘crun_command_exec’ from ‘make_oci_process_user’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:297:10: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:300:23: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:300:10: note: (29) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:301:37: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:301:37: note: (31) calling ‘xstrdup’ from ‘crun_command_exec’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (32) entry to ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (33) following ‘false’ branch (when ‘str’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (35) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (36) assuming ‘ret’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (37) following ‘false’ branch (when ‘ret’ is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (38) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/exec.c:301:37: note: (39) returning to ‘crun_command_exec’ from ‘xstrdup’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (40) ‘xstrdup(exec_options.apparmor)’ leaks here; was allocated at (35) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/list.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/create.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/start.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/state.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/update.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/ps.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/checkpoint.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/restore.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/restore.c:34: <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘crun_command_restore’ at src/restore.c:152:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-‘free’ of ‘bundle_cleanup’ [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/restore.c: In function ‘crun_command_restore’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/restore.c:153:22: note: (1) first ‘free’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/restore.c:181:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/restore.c:184:17: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/restore.c:184:6: note: (4) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/restore.c:188:14: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/restore.c:189:10: note: (6) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/restore.c:190:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/restore.c:152:22: note: (8) inlined call to ‘cleanup_freep’ from ‘crun_command_restore’ <--[csmock-gcc-wrapper] In function ‘cleanup_freep’, inlined from ‘crun_command_restore’ at src/restore.c:152:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (9) second ‘free’ here; first ‘free’ was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:43: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘*(void *)p’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second ‘close’ here; first ‘close’ was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c: In function ‘fetchve’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:40: warning: leak of ‘read_file("/proc/self/cmdline", &cmdline_size)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:520:5: note: (1) entry to ‘ensure_cloned_binary’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:527:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:530:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:530:13: note: (4) calling ‘fetchve’ from ‘ensure_cloned_binary’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:231:12: note: (5) entry to ‘fetchve’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:236:19: note: (6) calling ‘read_file’ from ‘fetchve’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:168:14: note: (7) entry to ‘read_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:173:12: note: (8) following ‘false’ branch (when ‘length’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:176:14: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:177:12: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:180:17: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:185:20: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:40: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:24: note: (16) calling ‘xrealloc’ from ‘read_file’ <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:61: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (17) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (19) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:24: note: (22) returning to ‘read_file’ from ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:185:20: note: (23) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (25) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:194:9: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:236:19: note: (27) returning to ‘fetchve’ from ‘read_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:237:12: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:240:13: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:240:13: note: (30) calling ‘parse_xargs’ from ‘fetchve’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:208:12: note: (31) entry to ‘parse_xargs’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:213:12: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (33) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:216:20: note: (34) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:217:20: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:218:27: note: (36) calling ‘xrealloc’ from ‘parse_xargs’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (37) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (38) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:218:27: note: (41) returning to ‘parse_xargs’ from ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:216:20: note: (42) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:217:20: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:218:27: note: (44) calling ‘xrealloc’ from ‘parse_xargs’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.1make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-cgroup-cgroupfs.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup-cgroupfs.Tpo -c -o src/libcrun/libcrun_la-cgroup-cgroupfs.lo `test -f 'src/libcrun/cgroup-cgroupfs.c' || echo './'`src/libcrun/cgroup-cgroupfs.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-cgroup-cgroupfs.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup-cgroupfs.Tpo -c src/libcrun/cgroup-cgroupfs.c -o src/libcrun/libcrun_la-cgroup-cgroupfs.o mv -f src/libcrun/.deps/libcrun_la-cgroup-cgroupfs.Tpo src/libcrun/.deps/libcrun_la-cgroup-cgroupfs.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/blake3/libcrun_la-blake3.lo -MD -MP -MF src/libcrun/blake3/.deps/libcrun_la-blake3.Tpo -c -o src/libcrun/blake3/libcrun_la-blake3.lo `test -f 'src/libcrun/blake3/blake3.c' || echo './'`src/libcrun/blake3/blake3.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/blake3/libcrun_la-blake3.lo -MD -MP -MF src/libcrun/blake3/.deps/libcrun_la-blake3.Tpo -c src/libcrun/blake3/blake3.c -o src/libcrun/blake3/libcrun_la-blake3.o mv -f src/libcrun/blake3/.deps/libcrun_la-blake3.Tpo src/libcrun/blake3/.deps/libcrun_la-blake3.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/blake3/libcrun_la-blake3_portable.lo -MD -MP -MF src/libcrun/blake3/.deps/libcrun_la-blake3_portable.Tpo -c -o src/libcrun/blake3/libcrun_la-blake3_portable.lo `test -f 'src/libcrun/blake3/blake3_portable.c' || echo './'`src/libcrun/blake3/blake3_portable.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/blake3/libcrun_la-blake3_portable.lo -MD -MP -MF src/libcrun/blake3/.deps/libcrun_la-blake3_portable.Tpo -c src/libcrun/blake3/blake3_portable.c -o src/libcrun/blake3/libcrun_la-blake3_portable.o mv -f src/libcrun/blake3/.deps/libcrun_la-blake3_portable.Tpo src/libcrun/blake3/.deps/libcrun_la-blake3_portable.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-cgroup-setup.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup-setup.Tpo -c -o src/libcrun/libcrun_la-cgroup-setup.lo `test -f 'src/libcrun/cgroup-setup.c' || echo './'`src/libcrun/cgroup-setup.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-cgroup-setup.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup-setup.Tpo -c src/libcrun/cgroup-setup.c -o src/libcrun/libcrun_la-cgroup-setup.o mv -f src/libcrun/.deps/libcrun_la-cgroup-setup.Tpo src/libcrun/.deps/libcrun_la-cgroup-setup.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-chroot_realpath.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-chroot_realpath.Tpo -c -o src/libcrun/libcrun_la-chroot_realpath.lo `test -f 'src/libcrun/chroot_realpath.c' || echo './'`src/libcrun/chroot_realpath.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-chroot_realpath.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-chroot_realpath.Tpo -c src/libcrun/chroot_realpath.c -o src/libcrun/libcrun_la-chroot_realpath.o mv -f src/libcrun/.deps/libcrun_la-chroot_realpath.Tpo src/libcrun/.deps/libcrun_la-chroot_realpath.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-cgroup.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup.Tpo -c -o src/libcrun/libcrun_la-cgroup.lo `test -f 'src/libcrun/cgroup.c' || echo './'`src/libcrun/cgroup.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-cgroup.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup.Tpo -c src/libcrun/cgroup.c -o src/libcrun/libcrun_la-cgroup.o mv -f src/libcrun/.deps/libcrun_la-cgroup.Tpo src/libcrun/.deps/libcrun_la-cgroup.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-cloned_binary.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cloned_binary.Tpo -c -o src/libcrun/libcrun_la-cloned_binary.lo `test -f 'src/libcrun/cloned_binary.c' || echo './'`src/libcrun/cloned_binary.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-cloned_binary.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cloned_binary.Tpo -c src/libcrun/cloned_binary.c -o src/libcrun/libcrun_la-cloned_binary.o mv -f src/libcrun/.deps/libcrun_la-cloned_binary.Tpo src/libcrun/.deps/libcrun_la-cloned_binary.Plo 8.2/src/libcrun/utils.h:77:1: note: (45) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (46) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (47) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (48) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:218:27: note: (49) returning to ‘parse_xargs’ from ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:216:20: note: (50) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:222:10: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:240:13: note: (52) returning to ‘fetchve’ from ‘parse_xargs’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:40: note: (53) ‘read_file("/proc/self/cmdline", &cmdline_size)’ leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c: In function ‘parse_xargs’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:222:24: warning: dereference of NULL ‘0’ [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:520:5: note: (1) entry to ‘ensure_cloned_binary’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:523:16: note: (2) ‘argv’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:527:12: note: (3) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:530:13: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:530:13: note: (5) calling ‘fetchve’ from ‘ensure_cloned_binary’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:231:12: note: (6) entry to ‘fetchve’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:236:19: note: (7) calling ‘read_file’ from ‘fetchve’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:168:14: note: (8) entry to ‘read_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:173:12: note: (9) following ‘false’ branch (when ‘length’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:176:14: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:177:12: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:180:17: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:185:20: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:40: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:24: note: (17) calling ‘xrealloc’ from ‘read_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (18) entry to ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (19) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:24: note: (22) returning to ‘read_file’ from ‘xrealloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:185:20: note: (23) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (25) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:194:9: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:236:19: note: (27) returning to ‘fetchve’ from ‘read_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:237:12: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:240:13: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:240:13: note: (30) calling ‘parse_xargs’ from ‘fetchve’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:208:12: note: (31) entry to ‘parse_xargs’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:213:12: note: (32) following ‘false’ branch (when ‘data’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:213:22: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:213:22: note: (34) ‘argv’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:213:19: note: (35) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (36) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:216:20: note: (37) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:222:10: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:222:10: note: (39) ‘argv’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:222:18: note: (40) ‘argv’ is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:222:24: note: (41) dereference of NULL ‘*output + (long unsigned int)num * 8’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c: In function 'libcrun_precreate_cgroup_cgroupfs': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c:82:12: warning: leak of file descriptor 'open(cgroup_path, 720896)' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c:68:6: note: (1) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c:71:9: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c:72:6: note: (3) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c:78:9: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c:79:6: note: (5) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c:82:12: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c:82:12: note: (7) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-cgroupfs.c:82:12: note: (8) 'open(cgroup_path, 720896)' leaks here; was opened at (7) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/blake3/blake3.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/blake3/blake3.c:229: warning: uninitvar(CWE-457): Uninitialized variable: parents_array <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c: In function 'enter_cgroup_v2': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:490:1: warning: leak of 'cgroup_crun_exec_path' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:493:1: note: (1) entry to 'enter_cgroup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:497:6: note: (2) following 'true' branch (when 'cgroup_mode == 1')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:499:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:499:13: note: (4) calling 'enter_cgroup_v2' from 'enter_cgroup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:397:1: note: (5) entry to 'enter_cgroup_v2' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:408:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:411:6: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:419:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:422:9: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:423:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-internal.h:22, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:23: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:426:17: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:439:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:442:3: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:454:10: note: (14) following 'true' branch (when 'init_pid > 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:456:17: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:456:17: note: (16) calling 'read_unified_cgroup_pid' from 'enter_cgroup_v2' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:294:1: note: (17) entry to 'read_unified_cgroup_pid' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:304:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:307:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:307:10: note: (20) when 'strstr' returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:308:6: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:311:8: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:313:8: note: (23) when 'strchr' returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:314:6: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:316:7: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:318:11: note: (26) calling 'xstrdup' from 'read_unified_cgroup_pid' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (27) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (28) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (30) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (31) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (32) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (33) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:318:11: note: (34) returning to 'read_unified_cgroup_pid' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:456:17: note: (35) returning to 'enter_cgroup_v2' from 'read_unified_cgroup_pid' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:490:1: note: (36) 'cgroup_crun_exec_path' leaks here; was allocated at (30) <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.h:24, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:21, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:22: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'read_unified_cgroup_pid': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(from)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:493:1: note: (1) entry to 'enter_cgroup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:497:6: note: (2) following 'true' branch (when 'cgroup_mode == 1')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:499:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:499:13: note: (4) calling 'enter_cgroup_v2' from 'enter_cgroup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:397:1: note: (5) entry to 'enter_cgroup_v2' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:408:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:411:6: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:419:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:422:9: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:423:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:426:17: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:439:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:442:3: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:454:10: note: (14) following 'true' branch (when 'init_pid > 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:456:17: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:456:17: note: (16) calling 'read_unified_cgroup_pid' from 'enter_cgroup_v2' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:294:1: note: (17) entry to 'read_unified_cgroup_pid' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:304:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:307:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:307:10: note: (20) when 'strstr' returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:308:6: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:311:8: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:313:8: note: (23) when 'strchr' returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:314:6: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:316:7: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:318:11: note: (26) calling 'xstrdup' from 'read_unified_cgroup_pid' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (27) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (28) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (30) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (31) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (32) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (33) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:318:11: note: (34) returning to 'read_unified_cgroup_pid' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (35) 'xstrdup(from)' leaks here; was allocated at (30) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c: In function 'initialize_cpuset_subsystem_rec': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:53:11: warning: leak of file descriptor 'open(path, 2686976)' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:493:1: note: (1) entry to 'enter_cgroup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:497:6: note: (2) following 'false' branch (when 'cgroup_mode != 1')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:505:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:505:13: note: (4) calling 'enter_cgroup_v1' from 'enter_cgroup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:323:1: note: (5) entry to 'enter_cgroup_v1' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:338:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:341:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:342:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:352:19: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:353:8: note: (10) following 'true' branch (when 'has_data != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:359:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:371:10: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:373:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:373:10: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:377:13: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:377:13: note: (16) calling 'enter_cgroup_subsystem' from 'enter_cgroup_v1' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:197:1: note: (17) entry to 'enter_cgroup_subsystem' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:204:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:207:6: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:207:6: note: (20) following 'true' branch (when 'create_if_missing != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:209:13: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:210:10: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:219:11: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:219:10: note: (24) following 'true' branch (when the strings are equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:221:17: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:221:17: note: (26) calling 'initialize_cpuset_subsystem' from 'enter_cgroup_subsystem' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:148:1: note: (27) entry to 'initialize_cpuset_subsystem' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:150:33: note: (28) calling 'xstrdup' from 'initialize_cpuset_subsystem' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (29) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (30) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (32) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (33) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:150:33: note: (34) returning to 'initialize_cpuset_subsystem' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:155:10: note: (35) calling 'initialize_cpuset_subsystem_rec' from 'initialize_cpuset_subsystem' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:43:1: note: (36) entry to 'initialize_cpuset_subsystem_rec' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:53:11: note: (37) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:53:11: note: (38) 'open(path, 2686976)' leaks here; was opened at (37) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c: In function 'initialize_cpuset_subsystem': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:155:10: warning: use of NULL where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:493:1: note: (1) entry to 'enter_cgroup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:497:6: note: (2) following 'false' branch (when 'cgroup_mode != 1')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:505:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:505:13: note: (4) calling 'enter_cgroup_v1' from 'enter_cgroup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:323:1: note: (5) entry to 'enter_cgroup_v1' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:325:22: note: (6) 'content' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:338:6: note: (7) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:341:9: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:342:6: note: (9) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:352:19: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:353:8: note: (11) following 'true' branch (when 'has_data != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:359:11: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:371:10: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:373:10: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:373:10: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:377:13: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:377:13: note: (17) calling 'enter_cgroup_subsystem' from 'enter_cgroup_v1' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:197:1: note: (18) entry to 'enter_cgroup_subsystem' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:200:22: note: (19) 'cgroup_path' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:204:6: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:207:6: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:207:6: note: (22) following 'true' branch (when 'create_if_missing != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:209:13: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:210:10: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:219:11: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:219:10: note: (26) following 'true' branch (when the strings are equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:221:17: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:221:17: note: (28) calling 'initialize_cpuset_subsystem' from 'enter_cgroup_subsystem' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:148:1: note: (29) entry to 'initialize_cpuset_subsystem' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:150:33: note: (30) calling 'xstrdup' from 'initialize_cpuset_subsystem' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (31) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (32) following 'true' branch (when 'str' is NULL)... <--[csmock-gcc-wrapper] cc1: note: (33) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:150:33: note: (34) returning to 'initialize_cpuset_subsystem' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:155:10: note: (35) argument 1 ('xstrdup(path)') NULL where non-null expected <--[csmock-gcc-wrapper] : note: argument 1 of '__builtin_strlen' must be non-null /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c: In function 'enter_cgroup_v2': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:461:15: warning: use of NULL 'cgroup_crun_exec_path' where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:493:1: note: (1) entry to 'enter_cgroup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:497:6: note: (2) following 'true' branch (when 'cgroup_mode == 1')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:499:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:499:13: note: (4) calling 'enter_cgroup_v2' from 'enter_cgroup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:397:1: note: (5) entry to 'enter_cgroup_v2' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:399:22: note: (6) 'cgroup_path_procs' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:400:22: note: (7) 'cgroup_path_procs' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:408:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:411:6: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:419:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:422:9: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:423:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:426:17: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:439:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:442:3: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:450:26: note: (16) 'cgroup_crun_exec_path' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:451:26: note: (17) 'cgroup_crun_exec_path' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:454:10: note: (18) following 'true' branch (when 'init_pid > 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:456:17: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:456:17: note: (20) calling 'read_unified_cgroup_pid' from 'enter_cgroup_v2' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:294:1: note: (21) entry to 'read_unified_cgroup_pid' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:299:22: note: (22) 'content' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:307:10: note: (23) when 'strstr' returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:308:6: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:86:25: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:309:12: note: in expansion of macro 'crun_make_error' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:456:17: note: (26) returning to 'enter_cgroup_v2' from 'read_unified_cgroup_pid' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:457:14: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:461:15: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:461:15: note: (29) 'cgroup_crun_exec_path' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:461:15: note: (30) 'cgroup_crun_exec_path' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-setup.c:461:15: note: (31) argument 2 ('cgroup_crun_exec_path') NULL where non-null expected <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.h:23: <--[csmock-gcc-wrapper] /usr/include/string.h:159:12: note: argument 2 of 'strncmp' must be non-null <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/chroot_realpath.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-internal.h:22, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:24: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'libcrun_cgroup_enter': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0(24)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:285:1: note: (1) entry to 'libcrun_cgroup_enter' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:289:64: note: (2) calling 'xmalloc0' from 'libcrun_cgroup_enter' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (4) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (5) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:289:64: note: (8) returning to 'libcrun_cgroup_enter' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (9) 'xmalloc0(24)' leaks here; was allocated at (4) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c: In function 'libcrun_cgroup_destroy': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:204:24: warning: dereference of NULL 'cgroup_manager' [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:195:1: note: (1) entry to 'libcrun_cgroup_destroy' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:197:34: note: (2) 'cgroup_manager' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:200:9: note: (3) calling 'get_cgroup_manager' from 'libcrun_cgroup_destroy' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:66:1: note: (4) entry to 'get_cgroup_manager' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:68:3: note: (5) following 'default:' branch... <--[csmock-gcc-wrapper] cc1: note: (6) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:200:9: note: (7) returning to 'libcrun_cgroup_destroy' from 'get_cgroup_manager' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:201:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:204:24: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:204:24: note: (10) 'cgroup_manager' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:204:24: note: (11) dereference of NULL 'cgroup_manager' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c: In function 'libcrun_update_cgroup_resources': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:220:21: warning: dereference of NULL 'cgroup_manager' [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:208:1: note: (1) entry to 'libcrun_update_cgroup_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:213:34: note: (2) 'cgroup_manager' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:216:9: note: (3) calling 'get_cgroup_manager' from 'libcrun_update_cgroup_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:66:1: note: (4) entry to 'get_cgroup_manager' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:68:3: note: (5) following 'default:' branch... <--[csmock-gcc-wrapper] cc1: note: (6) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:216:9: note: (7) returning to 'libcrun_update_cgroup_resources' from 'get_cgroup_manager' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:217:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:220:21: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:220:21: note: (10) 'cgroup_manager' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:220:21: note: (11) dereference of NULL 'cgroup_manager' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c: In function 'libcrun_cgroup_preenter': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:278:21: warning: dereference of NULL 'cgroup_manager' [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:259:1: note: (1) entry to 'libcrun_cgroup_preenter' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:268:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:271:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:271:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:274:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:274:9: note: (6) calling 'get_cgroup_manager' from 'libcrun_cgroup_preenter' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:66:1: note: (7) entry to 'get_cgroup_manager' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:68:3: note: (8) following 'default:' branch... <--[csmock-gcc-wrapper] cc1: note: (9) ...to here cc1: note: (10) calling 'get_cgroup_manager.part.0' from 'get_cgroup_manager' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:66:1: note: (11) entry to 'get_cgroup_manager.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:83:8: note: (12) 'cgroup_manager' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:83:8: note: (13) 'cgroup_manager' is NULL <--[csmock-gcc-wrapper] cc1: note: (14) returning to 'get_cgroup_manager' from 'get_cgroup_manager.part.0' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:274:9: note: (15) returning to 'libcrun_cgroup_preenter' from 'get_cgroup_manager' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:275:6: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:278:21: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:278:21: note: (18) 'cgroup_manager' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:278:21: note: (19) dereference of NULL 'cgroup_manager' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c: In function 'libcrun_cgroup_enter': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:335:23: warning: dereference of NULL 'cgroup_manager' [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:285:1: note: (1) entry to 'libcrun_cgroup_enter' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:289:64: note: (2) calling 'xmalloc0' from 'libcrun_cgroup_enter' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:289:64: note: (6) returning to 'libcrun_cgroup_enter' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:297:6: note: (7) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:305:7: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:329:9: note: (9) calling 'get_cgroup_manager' from 'libcrun_cgroup_enter' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:66:1: note: (10) entry to 'get_cgroup_manager' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:68:3: note: (11) following 'default:' branch... <--[csmock-gcc-wrapper] cc1: note: (12) ...to here cc1: note: (13) calling 'get_cgroup_manager.part.0' from 'get_cgroup_manager' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:66:1: note: (14) entry to 'get_cgroup_manager.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:83:8: note: (15) 'cgroup_manager' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:83:8: note: (16) 'cgroup_manager' is NULL <--[csmock-gcc-wrapper] cc1: note: (17) returning to 'get_cgroup_manager' from 'get_cgroup_manager.part.0' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:329:9: note: (18) returning to 'libcrun_cgroup_enter' from 'get_cgroup_manager' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:330:6: note: (19) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:333:25: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:335:23: note: (21) 'cgroup_manager' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.c:335:23: note: (22) dereference of NULL 'cgroup_manager' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:43: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c: In function 'fetchve': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:40: warning: leak of 'read_file("/proc/self/cmdline", &cmdline_size)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:520:5: note: (1) entry to 'ensure_cloned_binary' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:527:12: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:530:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:530:13: note: (4) calling 'fetchve' from 'ensure_cloned_binary' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:231:12: note: (5) entry to 'fetchve' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:236:19: note: (6) calling 'read_file' from 'fetchve' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:168:14: note: (7) entry to 'read_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:173:12: note: (8) following 'false' branch (when 'length' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:176:14: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:177:12: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:180:17: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:185:20: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:40: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:24: note: (16) calling 'xrealloc' from 'read_file' <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:61: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (17) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (19) when 'realloc' succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:24: note: (22) returning to 'read_file' from 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:185:20: note: (23) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (25) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:194:9: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:236:19: note: (27) returning to 'fetchve' from 'read_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:237:12: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:240:13: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:240:13: note: (30) calling 'parse_xargs' from 'fetchve' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:208:12: note: (31) entry to 'parse_xargs' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:213:12: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (33) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:216:20: note: (34) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:217:20: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:218:27: note: (36) calling 'xrealloc' from 'parse_xargs' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (37) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (38) when 'realloc' succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (39) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:218:27: note: (41) returning to 'parse_xargs' from 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:216:20: note: (42) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:217:20: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:218:27: note: (44) calling 'xrealloc' from 'parse_xargs' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (45) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (46) when 'realloc' succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (47) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (48) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:218:27: note: (49) returning to 'parse_xargs' from 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:216:20: note: (50) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:222:10: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:240:13: note: (52) returning to 'fetchve' from 'parse_xargs' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:40: note: (53) 'read_file("/proc/self/cmdline", &cmdline_size)' leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c: In function 'parse_xargs': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:222:24: warning: dereference of NULL '0' [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:520:5: note: (1) entry to 'ensure_cloned_binary' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:523:16: note: (2) 'argv' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:527:12: note: (3) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:530:13: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:530:13: note: (5) calling 'fetchve' from 'ensure_cloned_binary' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:231:12: note: (6) entry to 'fetchve' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:236:19: note: (7) calling 'read_file' from 'fetchve' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:168:14: note: (8) entry to 'read_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:173:12: note: (9) following 'false' branch (when 'length' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:176:14: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:177:12: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:180:17: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:185:20: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:40: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:24: note: (17) calling 'xrealloc' from 'read_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (18) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (19) when 'realloc' succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:190:24: note: (22) returning to 'read_file' from 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:185:20: note: (23) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:187:20: note: (25) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:194:9: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:236:19: note: (27) returning to 'fetchve' from 'read_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:237:12: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:240:13: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:240:13: note: (30) calling 'parse_xargs' from 'fetchve' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:208:12: note: (31) entry to 'parse_xargs' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:213:12: note: (32) following 'false' branch (when 'data' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:213:22: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:213:22: note: (34) 'argv' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:213:19: note: (35) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (36) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:216:20: note: (37) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:222:10: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:222:10: note: (39) 'argv' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:222:18: note: (40) 'argv' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cloned_binary.c:222:24: note: (41) dereference of NULL '*output + (long unsigned int)num * 8' <--[csmock-gcc-wrapper] make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-cgroup-resources.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup-resources.Tpo -c -o src/libcrun/libcrun_la-cgroup-resources.lo `test -f 'src/libcrun/cgroup-resources.c' || echo './'`src/libcrun/cgroup-resources.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-cgroup-resources.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup-resources.Tpo -c src/libcrun/cgroup-resources.c -o src/libcrun/libcrun_la-cgroup-resources.o mv -f src/libcrun/.deps/libcrun_la-cgroup-resources.Tpo src/libcrun/.deps/libcrun_la-cgroup-resources.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-cgroup-systemd.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup-systemd.Tpo -c -o src/libcrun/libcrun_la-cgroup-systemd.lo `test -f 'src/libcrun/cgroup-systemd.c' || echo './'`src/libcrun/cgroup-systemd.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-cgroup-systemd.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup-systemd.Tpo -c src/libcrun/cgroup-systemd.c -o src/libcrun/libcrun_la-cgroup-systemd.o mv -f src/libcrun/.deps/libcrun_la-cgroup-systemd.Tpo src/libcrun/.deps/libcrun_la-cgroup-systemd.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-cgroup-utils.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup-utils.Tpo -c -o src/libcrun/libcrun_la-cgroup-utils.lo `test -f 'src/libcrun/cgroup-utils.c' || echo './'`src/libcrun/cgroup-utils.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-cgroup-utils.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup-utils.Tpo -c src/libcrun/cgroup-utils.c -o src/libcrun/libcrun_la-cgroup-utils.o mv -f src/libcrun/.deps/libcrun_la-cgroup-utils.Tpo src/libcrun/.deps/libcrun_la-cgroup-utils.Plo /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-internal.h:22, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:23: <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'check_cgroup_v2_controller_available_wrapper' at src/libcrun/cgroup-resources.c:141:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-'free' of '*(void **)&controllers' [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c: In function 'check_cgroup_v2_controller_available_wrapper': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 1:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to 'update_cgroup_v2_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1293:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1297:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1301:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1304:16: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1323:6: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1325:13: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1325:13: note: (18) calling 'write_cpu_resources' from 'update_cgroup_v2_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:950:1: note: (19) entry to 'write_cpu_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1019:10: note: (20) following 'true' branch (when 'cgroup2 != 0')... <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.h:24, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:21, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:22: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:86:25: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1020:16: note: in expansion of macro 'crun_make_error' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1325:13: note: (22) returning to 'update_cgroup_v2_resources' from 'write_cpu_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1326:10: note: (23) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1329:13: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1329:13: note: (25) calling 'write_cpuset_resources' from 'update_cgroup_v2_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1060:1: note: (26) entry to 'write_cpuset_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1065:6: note: (27) following 'false' branch (when 'cpu' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1068:10: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1068:6: note: (29) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1070:13: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1070:13: note: (31) calling 'write_file_and_check_controllers_at' from 'write_cpuset_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:188:1: note: (32) entry to 'write_file_and_check_controllers_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:194:6: note: (33) following 'true' branch (when 'cgroup2 != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (35) calling 'check_cgroup_v2_controller_available_wrapper' from 'write_file_and_check_controllers_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:131:1: note: (36) entry to 'check_cgroup_v2_controller_available_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:133:6: note: (37) following 'false' branch... <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:24: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:136:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:139:6: note: (39) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (41) calling 'xstrdup' from 'check_cgroup_v2_controller_available_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (42) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (43) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (45) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (46) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (47) returning to 'check_cgroup_v2_controller_available_wrapper' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:152:12: note: (48) when 'strchr' returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:153:10: note: (49) following 'false' branch (when 'it' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:158:11: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:161:10: note: (51) following 'true' branch (when the strings are equal)... <--[csmock-gcc-wrapper] cc1: note: (52) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (53) inlined call to 'cleanup_freep' from 'check_cgroup_v2_controller_available_wrapper' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'check_cgroup_v2_controller_available_wrapper' at src/libcrun/cgroup-resources.c:141:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (54) first 'free' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c: In function 'check_cgroup_v2_controller_available_wrapper': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (55) returning to 'write_file_and_check_controllers_at' from 'check_cgroup_v2_controller_available_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1070:13: note: (56) returning to 'write_cpuset_resources' from 'write_file_and_check_controllers_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1072:10: note: (57) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1075:10: note: (58) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1075:6: note: (59) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1077:13: note: (60) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1077:13: note: (61) calling 'write_file_and_check_controllers_at' from 'write_cpuset_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:188:1: note: (62) entry to 'write_file_and_check_controllers_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:194:6: note: (63) following 'true' branch (when 'cgroup2 != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (64) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (65) calling 'check_cgroup_v2_controller_available_wrapper' from 'write_file_and_check_controllers_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:131:1: note: (66) entry to 'check_cgroup_v2_controller_available_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:133:6: note: (67) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:136:3: note: (68) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:139:6: note: (69) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (71) calling 'xstrdup' from 'check_cgroup_v2_controller_available_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (72) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (73) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (74) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (75) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (76) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (77) returning to 'check_cgroup_v2_controller_available_wrapper' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (78) inlined call to 'cleanup_freep' from 'check_cgroup_v2_controller_available_wrapper' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'check_cgroup_v2_controller_available_wrapper' at src/libcrun/cgroup-resources.c:141:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (79) second 'free' here; first 'free' was at (54) <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'check_cgroup_v2_controller_available_wrapper' at src/libcrun/cgroup-resources.c:141:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-'free' of '*(void **)&controllers' [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c: In function 'check_cgroup_v2_controller_available_wrapper': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 1:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to 'update_cgroup_v2_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1293:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1297:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1301:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1304:16: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1323:6: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1325:13: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1325:13: note: (18) calling 'write_cpu_resources' from 'update_cgroup_v2_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:950:1: note: (19) entry to 'write_cpu_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1019:10: note: (20) following 'true' branch (when 'cgroup2 != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:86:25: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1020:16: note: in expansion of macro 'crun_make_error' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1325:13: note: (22) returning to 'update_cgroup_v2_resources' from 'write_cpu_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1326:10: note: (23) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1329:13: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1329:13: note: (25) calling 'write_cpuset_resources' from 'update_cgroup_v2_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1060:1: note: (26) entry to 'write_cpuset_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1065:6: note: (27) following 'false' branch (when 'cpu' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1068:10: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1068:6: note: (29) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1070:13: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1070:13: note: (31) calling 'write_file_and_check_controllers_at' from 'write_cpuset_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:188:1: note: (32) entry to 'write_file_and_check_controllers_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:194:6: note: (33) following 'true' branch (when 'cgroup2 != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (35) calling 'check_cgroup_v2_controller_available_wrapper' from 'write_file_and_check_controllers_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:131:1: note: (36) entry to 'check_cgroup_v2_controller_available_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:133:6: note: (37) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:136:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:139:6: note: (39) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (41) calling 'xstrdup' from 'check_cgroup_v2_controller_available_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (42) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (43) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (45) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (46) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (47) returning to 'check_cgroup_v2_controller_available_wrapper' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:152:12: note: (48) when 'strchr' returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:153:10: note: (49) following 'false' branch (when 'it' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:158:11: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:161:10: note: (51) following 'true' branch (when the strings are equal)... <--[csmock-gcc-wrapper] cc1: note: (52) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (53) inlined call to 'cleanup_freep' from 'check_cgroup_v2_controller_available_wrapper' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'check_cgroup_v2_controller_available_wrapper' at src/libcrun/cgroup-resources.c:141:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (54) first 'free' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c: In function 'check_cgroup_v2_controller_available_wrapper': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (55) returning to 'write_file_and_check_controllers_at' from 'check_cgroup_v2_controller_available_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1070:13: note: (56) returning to 'write_cpuset_resources' from 'write_file_and_check_controllers_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1072:10: note: (57) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1075:10: note: (58) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1075:6: note: (59) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1077:13: note: (60) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1077:13: note: (61) calling 'write_file_and_check_controllers_at' from 'write_cpuset_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:188:1: note: (62) entry to 'write_file_and_check_controllers_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:194:6: note: (63) following 'true' branch (when 'cgroup2 != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (64) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (65) calling 'check_cgroup_v2_controller_available_wrapper' from 'write_file_and_check_controllers_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:131:1: note: (66) entry to 'check_cgroup_v2_controller_available_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:133:6: note: (67) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:136:3: note: (68) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:139:6: note: (69) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (71) calling 'xstrdup' from 'check_cgroup_v2_controller_available_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (72) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (73) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (74) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (75) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (76) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (77) returning to 'check_cgroup_v2_controller_available_wrapper' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:152:12: note: (78) when 'strchr' returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:153:10: note: (79) following 'false' branch (when 'it' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:158:11: note: (80) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:161:10: note: (81) following 'true' branch (when the strings are equal)... <--[csmock-gcc-wrapper] cc1: note: (82) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (83) inlined call to 'cleanup_freep' from 'check_cgroup_v2_controller_available_wrapper' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'check_cgroup_v2_controller_available_wrapper' at src/libcrun/cgroup-resources.c:141:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (84) second 'free' here; first 'free' was at (54) <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'wfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 1:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to 'update_cgroup_v2_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1293:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1297:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1301:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1304:16: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1333:6: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1335:13: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1335:13: note: (18) calling 'write_blkio_resources' from 'update_cgroup_v2_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:271:1: note: (19) entry to 'write_blkio_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:278:6: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:311:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:311:6: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:320:12: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:320:6: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:322:10: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:322:10: note: (26) following 'true' branch (when 'cgroup2 != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:324:29: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:328:14: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (29) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:324:29: note: (30) inlined call to 'cleanup_closep' from 'write_blkio_resources' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'write_blkio_resources' at src/libcrun/cgroup-resources.c:324:29: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (31) following 'true' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (32) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:324:29: note: (33) inlined call to 'cleanup_closep' from 'write_blkio_resources' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'write_blkio_resources' at src/libcrun/cgroup-resources.c:324:29: cc1: note: (34) calling 'cleanup_closep.part.0' from 'write_blkio_resources' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (35) entry to 'cleanup_closep.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (36) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (37) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (38) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (39) second 'close' here; first 'close' was at (36) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'wfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 1:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to 'update_cgroup_v2_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1293:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1297:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1301:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1304:16: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1333:6: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1335:13: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1335:13: note: (18) calling 'write_blkio_resources' from 'update_cgroup_v2_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:271:1: note: (19) entry to 'write_blkio_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:311:6: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:320:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:383:6: note: (22) following 'true' branch (when 'cgroup2 != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:385:25: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:389:10: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:395:13: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:397:10: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:400:13: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:402:10: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:405:13: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:407:10: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:410:13: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:412:10: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:385:25: note: (33) inlined call to 'cleanup_closep' from 'write_blkio_resources' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'write_blkio_resources' at src/libcrun/cgroup-resources.c:385:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:7: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (35) following 'true' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (36) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:385:25: note: (37) inlined call to 'cleanup_closep' from 'write_blkio_resources' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'write_blkio_resources' at src/libcrun/cgroup-resources.c:385:25: cc1: note: (38) calling 'cleanup_closep.part.0' from 'write_blkio_resources' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (39) entry to 'cleanup_closep.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (40) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (41) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (42) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (43) second 'close' here; first 'close' was at (40) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'check_cgroup_v2_controller_available_wrapper': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(name)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 1:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to 'update_cgroup_v2_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1293:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1297:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1301:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1304:16: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1333:6: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1335:13: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1335:13: note: (18) calling 'write_blkio_resources' from 'update_cgroup_v2_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:271:1: note: (19) entry to 'write_blkio_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:311:6: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:320:12: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:383:6: note: (22) following 'true' branch (when 'cgroup2 != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:385:25: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:389:10: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:391:39: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:392:18: note: (26) calling 'check_cgroup_v2_controller_available_wrapper' from 'write_blkio_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:131:1: note: (27) entry to 'check_cgroup_v2_controller_available_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:133:6: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:136:3: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:139:6: note: (30) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (32) calling 'xstrdup' from 'check_cgroup_v2_controller_available_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (33) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (34) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (36) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (37) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (38) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (39) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (40) returning to 'check_cgroup_v2_controller_available_wrapper' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (41) 'xstrdup(name)' leaks here; was allocated at (36) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:152:12: warning: use of NULL 'controllers' where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 1:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to 'update_cgroup_v2_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1289:22: note: (10) 'cgroup_path' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1293:6: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1296:9: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1297:6: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1300:18: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1301:6: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1304:16: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1333:6: note: (17) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1335:13: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1335:13: note: (19) calling 'write_blkio_resources' from 'update_cgroup_v2_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:271:1: note: (20) entry to 'write_blkio_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:283:10: note: (21) following 'true' branch (when 'cgroup2 != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:291:17: note: (22) inlined call to 'write_cgroup_file' from 'write_blkio_resources' <--[csmock-gcc-wrapper] In function 'write_cgroup_file', inlined from 'write_blkio_resources' at src/libcrun/cgroup-resources.c:291:17: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:65:10: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c: In function 'check_cgroup_v2_controller_available_wrapper': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:313:10: note: (24) following 'true' branch (when 'cgroup2 != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:86:25: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:314:16: note: in expansion of macro 'crun_make_error' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1335:13: note: (26) returning to 'update_cgroup_v2_resources' from 'write_blkio_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1336:10: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1340:16: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1340:6: note: (29) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1342:13: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1342:13: note: (31) calling 'write_hugetlb_resources' from 'update_cgroup_v2_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:479:1: note: (32) entry to 'write_hugetlb_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:485:17: note: (33) following 'true' branch (when 'i < htlb_len')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:487:26: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:487:26: note: (35) 'filename' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:492:32: note: (36) following 'true' branch (when 'cgroup2 != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:494:50: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:497:13: note: (38) calling 'write_file_and_check_controllers_at' from 'write_hugetlb_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:188:1: note: (39) entry to 'write_file_and_check_controllers_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:193:9: note: (40) calling 'write_cgroup_file_or_alias' from 'write_file_and_check_controllers_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:69:1: note: (41) entry to 'write_cgroup_file_or_alias' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:74:6: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (43) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:193:9: note: (44) returning to 'write_file_and_check_controllers_at' from 'write_cgroup_file_or_alias' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:194:6: note: (45) following 'true' branch (when 'cgroup2 != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:195:12: note: (47) calling 'check_cgroup_v2_controller_available_wrapper' from 'write_file_and_check_controllers_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:131:1: note: (48) entry to 'check_cgroup_v2_controller_available_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:133:6: note: (49) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:136:3: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:139:6: note: (51) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (52) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:141:26: note: (53) 'controllers' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:144:13: note: (54) 'controllers' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (55) calling 'xstrdup' from 'check_cgroup_v2_controller_available_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (56) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (57) following 'true' branch (when 'str' is NULL)... <--[csmock-gcc-wrapper] cc1: note: (58) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:150:13: note: (59) returning to 'check_cgroup_v2_controller_available_wrapper' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:152:12: note: (60) argument 1 ('xstrdup(name)') NULL where non-null expected <--[csmock-gcc-wrapper] : note: argument 1 of '__builtin_strchr' must be non-null /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c: In function 'update_cgroup_v2_resources': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1300:18: warning: leak of file descriptor 'open(cgroup_path, 589824)' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 1:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to 'update_cgroup_v2_resources' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1293:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1297:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1300:18: note: (14) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:1300:18: note: (15) 'open(cgroup_path, 589824)' leaks here; was opened at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-systemd.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.h:24, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:21, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-systemd.c:22: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[csmock-gcc-wrapper] make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-criu.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-criu.Tpo -c -o src/libcrun/libcrun_la-criu.lo `test -f 'src/libcrun/criu.c' || echo './'`src/libcrun/criu.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-criu.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-criu.Tpo -c src/libcrun/criu.c -o src/libcrun/libcrun_la-criu.o mv -f src/libcrun/.deps/libcrun_la-criu.Tpo src/libcrun/.deps/libcrun_la-criu.Plo /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-internal.h:22, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:23: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'write_controller_file': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(controllers_len + 1)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:758:1: note: (1) entry to 'write_controller_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:773:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:775:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:776:6: note: (4) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (6) calling 'xmalloc' from 'write_controller_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (7) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (8) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (9) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (12) returning to 'write_controller_file' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (13) 'xmalloc(controllers_len + 1)' leaks here; was allocated at (8) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'maybe_make_cgroup_threaded' at src/libcrun/cgroup-utils.c:79:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-'free' of '*(void **)&content' [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c: In function 'maybe_make_cgroup_threaded': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:873:1: note: (1) entry to 'enable_controllers' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:881:9: note: (2) calling 'read_available_controllers' from 'enable_controllers' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:720:1: note: (3) entry to 'read_available_controllers' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:730:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:733:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:881:9: note: (6) returning to 'enable_controllers' from 'read_available_controllers' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:882:6: note: (7) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:888:9: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:888:9: note: (9) calling 'write_controller_file' from 'enable_controllers' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:758:1: note: (10) entry to 'write_controller_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:773:6: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:775:9: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:776:6: note: (13) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (15) calling 'xmalloc' from 'write_controller_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (16) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (19) returning to 'write_controller_file' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:807:10: note: (20) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (22) calling 'maybe_make_cgroup_threaded' from 'write_controller_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:75:1: note: (23) entry to 'maybe_make_cgroup_threaded' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:86:10: note: (24) inlined call to 'consume_slashes' from 'maybe_make_cgroup_threaded' <--[csmock-gcc-wrapper] In function 'consume_slashes', inlined from 'maybe_make_cgroup_threaded' at src/libcrun/cgroup-utils.c:86:10: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:233:13: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c: In function 'maybe_make_cgroup_threaded': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:88:20: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:88:20: note: (27) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (28) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:79:22: note: (29) inlined call to 'cleanup_freep' from 'maybe_make_cgroup_threaded' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'maybe_make_cgroup_threaded' at src/libcrun/cgroup-utils.c:79:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (30) first 'free' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c: In function 'maybe_make_cgroup_threaded': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (31) returning to 'write_controller_file' from 'maybe_make_cgroup_threaded' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:810:14: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (33) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:817:48: note: (34) following 'true' branch (when 'attempts_left != -1')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:822:11: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:844:14: note: (36) following 'false' branch (when 'repeat == 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:865:14: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:865:14: note: (38) calling 'read_available_controllers' from 'write_controller_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:720:1: note: (39) entry to 'read_available_controllers' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:730:6: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:733:9: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:865:14: note: (42) returning to 'write_controller_file' from 'read_available_controllers' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:888:9: note: (43) returning to 'enable_controllers' from 'write_controller_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:889:6: note: (44) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:892:34: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:892:10: note: (46) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:894:11: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:896:17: note: (48) calling 'write_controller_file' from 'enable_controllers' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:758:1: note: (49) entry to 'write_controller_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:773:6: note: (50) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:775:9: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:776:6: note: (52) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (54) calling 'xmalloc' from 'write_controller_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (55) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (56) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (58) returning to 'write_controller_file' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:807:10: note: (59) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (60) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (61) calling 'maybe_make_cgroup_threaded' from 'write_controller_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:75:1: note: (62) entry to 'maybe_make_cgroup_threaded' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:86:10: note: (63) inlined call to 'consume_slashes' from 'maybe_make_cgroup_threaded' <--[csmock-gcc-wrapper] In function 'consume_slashes', inlined from 'maybe_make_cgroup_threaded' at src/libcrun/cgroup-utils.c:86:10: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:233:13: note: (64) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c: In function 'maybe_make_cgroup_threaded': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:88:20: note: (65) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:88:20: note: (66) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (67) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:79:22: note: (68) inlined call to 'cleanup_freep' from 'maybe_make_cgroup_threaded' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'maybe_make_cgroup_threaded' at src/libcrun/cgroup-utils.c:79:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (69) second 'free' here; first 'free' was at (30) <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'maybe_make_cgroup_threaded' at src/libcrun/cgroup-utils.c:77:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-'free' of '*(void **)&cgroup_path_type' [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c: In function 'maybe_make_cgroup_threaded': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:873:1: note: (1) entry to 'enable_controllers' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:881:9: note: (2) calling 'read_available_controllers' from 'enable_controllers' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:720:1: note: (3) entry to 'read_available_controllers' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:730:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:733:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:881:9: note: (6) returning to 'enable_controllers' from 'read_available_controllers' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:882:6: note: (7) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:888:9: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:888:9: note: (9) calling 'write_controller_file' from 'enable_controllers' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:758:1: note: (10) entry to 'write_controller_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:773:6: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:775:9: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:776:6: note: (13) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (15) calling 'xmalloc' from 'write_controller_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (16) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (19) returning to 'write_controller_file' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:807:10: note: (20) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (22) calling 'maybe_make_cgroup_threaded' from 'write_controller_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:75:1: note: (23) entry to 'maybe_make_cgroup_threaded' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:86:10: note: (24) inlined call to 'consume_slashes' from 'maybe_make_cgroup_threaded' <--[csmock-gcc-wrapper] In function 'consume_slashes', inlined from 'maybe_make_cgroup_threaded' at src/libcrun/cgroup-utils.c:86:10: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:233:13: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c: In function 'maybe_make_cgroup_threaded': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:88:20: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:88:20: note: (27) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (28) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:77:22: note: (29) inlined call to 'cleanup_freep' from 'maybe_make_cgroup_threaded' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'maybe_make_cgroup_threaded' at src/libcrun/cgroup-utils.c:77:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (30) first 'free' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c: In function 'maybe_make_cgroup_threaded': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (31) returning to 'write_controller_file' from 'maybe_make_cgroup_threaded' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:810:14: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (33) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:817:48: note: (34) following 'true' branch (when 'attempts_left != -1')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:822:11: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:844:14: note: (36) following 'false' branch (when 'repeat == 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:865:14: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:865:14: note: (38) calling 'read_available_controllers' from 'write_controller_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:720:1: note: (39) entry to 'read_available_controllers' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:730:6: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:733:9: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:865:14: note: (42) returning to 'write_controller_file' from 'read_available_controllers' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:888:9: note: (43) returning to 'enable_controllers' from 'write_controller_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:889:6: note: (44) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:892:34: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:892:10: note: (46) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:894:11: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:896:17: note: (48) calling 'write_controller_file' from 'enable_controllers' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:758:1: note: (49) entry to 'write_controller_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:773:6: note: (50) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:775:9: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:776:6: note: (52) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (54) calling 'xmalloc' from 'write_controller_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (55) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (56) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (58) returning to 'write_controller_file' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:807:10: note: (59) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (60) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (61) calling 'maybe_make_cgroup_threaded' from 'write_controller_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:75:1: note: (62) entry to 'maybe_make_cgroup_threaded' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:86:10: note: (63) inlined call to 'consume_slashes' from 'maybe_make_cgroup_threaded' <--[csmock-gcc-wrapper] In function 'consume_slashes', inlined from 'maybe_make_cgroup_threaded' at src/libcrun/cgroup-utils.c:86:10: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:233:13: note: (64) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c: In function 'maybe_make_cgroup_threaded': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:88:20: note: (65) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:88:20: note: (66) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (67) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:77:22: note: (68) inlined call to 'cleanup_freep' from 'maybe_make_cgroup_threaded' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'maybe_make_cgroup_threaded' at src/libcrun/cgroup-utils.c:77:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (69) second 'free' here; first 'free' was at (30) <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.h:24, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:21, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:22: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'maybe_make_cgroup_threaded': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(t)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:758:1: note: (1) entry to 'write_controller_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:773:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:775:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:776:6: note: (4) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (6) calling 'xmalloc' from 'write_controller_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (7) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:778:45: note: (10) returning to 'write_controller_file' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:807:10: note: (11) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:809:17: note: (13) calling 'maybe_make_cgroup_threaded' from 'write_controller_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:75:1: note: (14) entry to 'maybe_make_cgroup_threaded' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:88:20: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:91:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:92:6: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:95:9: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:96:6: note: (19) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:99:12: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:106:6: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:109:12: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:109:12: note: (23) calling 'xstrdup' from 'maybe_make_cgroup_threaded' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (24) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (25) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (27) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (28) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (29) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (30) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:109:12: note: (31) returning to 'maybe_make_cgroup_threaded' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (32) 'xstrdup(t)' leaks here; was allocated at (27) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c: In function 'libcrun_get_cgroup_dirfd': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:968:17: warning: leak of file descriptor 'open(path_to_cgroup, 2818048)' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:944:1: note: (1) entry to 'libcrun_get_cgroup_dirfd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:952:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:955:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:955:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:958:6: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:958:6: note: (6) following 'false' branch (when 'status' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:961:30: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:961:7: note: (8) inlined call to 'is_empty_string' from 'libcrun_get_cgroup_dirfd' <--[csmock-gcc-wrapper] In function 'is_empty_string', inlined from 'libcrun_get_cgroup_dirfd' at src/libcrun/cgroup-utils.c:961:7: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:395:20: note: (9) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c: In function 'libcrun_get_cgroup_dirfd': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:964:9: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:965:6: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:968:17: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:968:17: note: (13) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-utils.c:968:17: note: (14) 'open(path_to_cgroup, 2818048)' leaks here; was opened at (13) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:24: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'console_socket_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:185:1: note: (1) entry to 'criu_notify' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:187:6: note: (2) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:192:25: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:197:10: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:200:34: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:203:10: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:208:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:209:10: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:192:25: note: (9) inlined call to 'cleanup_closep' from 'criu_notify' <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:35: <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'criu_notify' at src/libcrun/criu.c:192:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:7: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (11) following 'true' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (12) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:192:25: note: (13) inlined call to 'cleanup_closep' from 'criu_notify' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'criu_notify' at src/libcrun/criu.c:192:25: cc1: note: (14) calling 'cleanup_closep.part.0' from 'criu_notify' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (15) entry to 'cleanup_closep.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (16) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (17) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (18) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (19) second 'close' here; first 'close' was at (16) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'root_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:658:1: note: (1) entry to 'prepare_restore_mounts' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:663:17: note: (2) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:665:23: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:673:10: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (5) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:678:21: note: (6) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:680:30: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:707:17: note: (8) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:708:10: note: (9) assuming 'root_fd' is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:708:10: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:711:10: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:716:14: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:667:25: note: (13) inlined call to 'cleanup_closep' from 'prepare_restore_mounts' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'prepare_restore_mounts' at src/libcrun/criu.c:667:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:7: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (15) following 'true' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (16) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:667:25: note: (17) inlined call to 'cleanup_closep' from 'prepare_restore_mounts' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'prepare_restore_mounts' at src/libcrun/criu.c:667:25: cc1: note: (18) calling 'cleanup_closep.part.0' from 'prepare_restore_mounts' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (19) entry to 'cleanup_closep.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (20) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (21) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (22) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (23) second 'close' here; first 'close' was at (20) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'image_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:390:1: note: (1) entry to 'libcrun_container_checkpoint_linux_criu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:404:9: note: (2) calling 'load_wrapper' from 'libcrun_container_checkpoint_linux_criu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:404:9: note: (9) returning to 'libcrun_container_checkpoint_linux_criu' from 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:405:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:408:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:408:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:428:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:429:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:432:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:432:6: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:435:27: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:435:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:438:9: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:442:14: note: (20) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:443:6: note: (21) assuming 'image_fd' is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:443:6: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:446:18: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:494:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:515:9: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:398:21: note: (26) inlined call to 'cleanup_closep' from 'libcrun_container_checkpoint_linux_criu' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'libcrun_container_checkpoint_linux_criu' at src/libcrun/criu.c:398:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (27) following 'true' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (28) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:398:21: note: (29) inlined call to 'cleanup_closep' from 'libcrun_container_checkpoint_linux_criu' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'libcrun_container_checkpoint_linux_criu' at src/libcrun/criu.c:398:21: cc1: note: (30) calling 'cleanup_closep.part.0' from 'libcrun_container_checkpoint_linux_criu' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (31) entry to 'cleanup_closep.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (32) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (33) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (34) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (35) second 'close' here; first 'close' was at (32) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'image_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:733:1: note: (1) entry to 'libcrun_container_restore_linux_criu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:749:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:755:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:756:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:6: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:27: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:765:14: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:765:14: note: (20) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:766:6: note: (21) assuming 'image_fd' is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:766:6: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:769:18: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:779:8: note: (24) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:774:24: note: (25) inlined call to 'cleanup_freep' from 'libcrun_container_restore_linux_criu' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'libcrun_container_restore_linux_criu' at src/libcrun/criu.c:774:24: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:743:21: note: (27) inlined call to 'cleanup_closep' from 'libcrun_container_restore_linux_criu' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'libcrun_container_restore_linux_criu' at src/libcrun/criu.c:743:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:742:22: note: (29) inlined call to 'cleanup_freep' from 'libcrun_container_restore_linux_criu' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'libcrun_container_restore_linux_criu' at src/libcrun/criu.c:742:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:740:21: note: (31) inlined call to 'cleanup_closep' from 'libcrun_container_restore_linux_criu' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'libcrun_container_restore_linux_criu' at src/libcrun/criu.c:740:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (32) following 'true' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (33) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:740:21: note: (34) inlined call to 'cleanup_closep' from 'libcrun_container_restore_linux_criu' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'libcrun_container_restore_linux_criu' at src/libcrun/criu.c:740:21: cc1: note: (35) calling 'cleanup_closep.part.0' from 'libcrun_container_restore_linux_criu' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (36) entry to 'cleanup_closep.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (37) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (38) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (39) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (40) second 'close' here; first 'close' was at (37) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'libcrun_container_restore_linux_criu': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(*status.bundle)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:733:1: note: (1) entry to 'libcrun_container_restore_linux_criu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:749:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:755:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:756:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:6: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:27: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:765:14: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:766:6: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:769:18: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:779:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:782:11: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:783:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:792:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:793:8: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/json_common.h:9, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.h:23, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:32: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:796:17: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:872:6: note: (28) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:873:37: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:873:22: note: (30) calling 'xstrdup' from 'libcrun_container_restore_linux_criu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (31) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (32) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (34) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (35) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (36) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (37) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:873:22: note: (38) returning to 'libcrun_container_restore_linux_criu' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (39) 'xstrdup(*status.bundle)' leaks here; was allocated at (34) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c: In function 'restore_cgroup_v1_mount': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:298:22: warning: dereference of NULL '0' [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:253:22: note: (1) 'content' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:255:9: note: (2) 'content' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:262:6: note: (3) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:265:6: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:265:6: note: (5) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (6) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:278:6: note: (7) following 'true' branch (when 'has_cgroup_mount != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:281:9: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:282:6: note: (9) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:285:25: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:285:6: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:288:15: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:288:51: note: (13) following 'true' branch (when 'from' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:290:26: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:290:26: note: (15) 'destination' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:291:26: note: (16) 'destination' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:296:19: note: (17) when 'strchr' returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:297:17: note: (18) when 'strchr' returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:298:22: note: (19) dereference of NULL 'strchr(subsystem, 58)' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:300:20: warning: dereference of NULL '0' [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:253:22: note: (1) 'content' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:255:9: note: (2) 'content' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:262:6: note: (3) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:265:6: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:265:6: note: (5) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (6) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:278:6: note: (7) following 'true' branch (when 'has_cgroup_mount != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:281:9: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:282:6: note: (9) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:285:25: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:285:6: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:288:15: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:288:51: note: (13) following 'true' branch (when 'from' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:290:26: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:290:26: note: (15) 'destination' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:291:26: note: (16) 'destination' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:296:19: note: (17) when 'strchr' returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:297:17: note: (18) when 'strchr' returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:300:20: note: (19) dereference of NULL 'strchr(from, 58)' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-utils.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-utils.Tpo -c -o src/libcrun/libcrun_la-utils.lo `test -f 'src/libcrun/utils.c' || echo './'`src/libcrun/utils.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-utils.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-utils.Tpo -c src/libcrun/utils.c -o src/libcrun/libcrun_la-utils.o mv -f src/libcrun/.deps/libcrun_la-utils.Tpo src/libcrun/.deps/libcrun_la-utils.Plo In function 'checkpoint_cgroup_v1_mount': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:365:22: warning: dereference of NULL '0' [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:329:22: note: (1) 'content' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:331:9: note: (2) 'content' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:346:6: note: (3) following 'true' branch (when 'has_cgroup_mount != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:349:9: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:350:6: note: (5) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:353:25: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:353:6: note: (7) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:356:15: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:356:51: note: (9) following 'true' branch (when 'from' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:358:26: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:358:26: note: (11) 'source_path' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:363:19: note: (12) when 'strchr' returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:364:17: note: (13) when 'strchr' returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:365:22: note: (14) dereference of NULL 'strchr(subsystem, 58)' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:367:20: warning: dereference of NULL '0' [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:329:22: note: (1) 'content' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:331:9: note: (2) 'content' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:346:6: note: (3) following 'true' branch (when 'has_cgroup_mount != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:349:9: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:350:6: note: (5) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:353:25: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:353:6: note: (7) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:356:15: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:356:51: note: (9) following 'true' branch (when 'from' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:358:26: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:358:26: note: (11) 'source_path' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:363:19: note: (12) when 'strchr' returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:364:17: note: (13) when 'strchr' returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:367:20: note: (14) dereference of NULL 'strchr(from, 58)' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c: In function 'libcrun_container_checkpoint_linux_criu': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:442:14: warning: leak of file descriptor 'open(*cr_options.image_path, 589824)' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:390:1: note: (1) entry to 'libcrun_container_checkpoint_linux_criu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:404:9: note: (2) calling 'load_wrapper' from 'libcrun_container_checkpoint_linux_criu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:404:9: note: (9) returning to 'libcrun_container_checkpoint_linux_criu' from 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:405:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:408:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:408:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:428:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:429:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:432:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:432:6: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:435:27: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:435:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:438:9: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:442:14: note: (20) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:442:14: note: (21) 'open(*cr_options.image_path, 589824)' leaks here; was opened at (20) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:462:17: warning: leak of file descriptor 'open(*cr_options.work_path, 589824)' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:390:1: note: (1) entry to 'libcrun_container_checkpoint_linux_criu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:404:9: note: (2) calling 'load_wrapper' from 'libcrun_container_checkpoint_linux_criu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:404:9: note: (9) returning to 'libcrun_container_checkpoint_linux_criu' from 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:405:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:408:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:408:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:428:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:429:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:432:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:432:6: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:435:27: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:435:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:438:9: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:443:6: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:446:18: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:460:6: note: (22) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:462:17: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:462:17: note: (24) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:462:17: note: (25) 'open(*cr_options.work_path, 589824)' leaks here; was opened at (24) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c: In function 'prepare_restore_mounts': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:707:17: warning: leak of file descriptor 'open(root, 524288)' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:663:17: note: (1) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:665:23: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:673:10: note: (3) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (4) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:678:21: note: (5) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:680:30: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:707:17: note: (7) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:707:17: note: (8) 'open(root, 524288)' leaks here; was opened at (7) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c: In function 'libcrun_container_restore_linux_criu': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:765:14: warning: leak of file descriptor 'open(*cr_options.image_path, 589824)' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:733:1: note: (1) entry to 'libcrun_container_restore_linux_criu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:749:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:755:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:756:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:6: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:27: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:765:14: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:765:14: note: (20) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:765:14: note: (21) 'open(*cr_options.image_path, 589824)' leaks here; was opened at (20) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:821:17: warning: leak of file descriptor 'open(*cr_options.work_path, 589824)' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:733:1: note: (1) entry to 'libcrun_container_restore_linux_criu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:749:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:755:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:756:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:6: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:27: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:765:14: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:766:6: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:769:18: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:779:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:782:11: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:783:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:792:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:793:8: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:796:17: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:819:6: note: (28) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:821:17: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:821:17: note: (30) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:821:17: note: (31) 'open(*cr_options.work_path, 589824)' leaks here; was opened at (30) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:924:32: warning: leak of file descriptor 'open(**_148.path, 0)' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:733:1: note: (1) entry to 'libcrun_container_restore_linux_criu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:749:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:755:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:756:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:6: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:27: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:765:14: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:766:6: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:769:18: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:779:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:782:11: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:783:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:792:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:793:8: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:796:17: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:877:6: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:880:9: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:881:6: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:884:9: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:885:6: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:898:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:899:6: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:902:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:903:6: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (37) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:915:17: note: (38) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:918:53: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:919:10: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:922:10: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:922:10: note: (42) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:924:32: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:924:32: note: (44) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:924:32: note: (45) 'open(**_148.path, 0)' leaks here; was opened at (44) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:933:32: warning: leak of file descriptor 'open(**_165.path, 0)' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:733:1: note: (1) entry to 'libcrun_container_restore_linux_criu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:748:9: note: (9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:749:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:752:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:755:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:756:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:24: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:759:6: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:27: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:762:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:765:14: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:766:6: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:769:18: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:779:8: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:782:11: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:783:8: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:792:12: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:793:8: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src/yajl/yajl_tree.h:155:49: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:796:17: note: in expansion of macro 'YAJL_IS_ARRAY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:877:6: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:880:9: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:881:6: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:884:9: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:885:6: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:898:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:899:6: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:902:24: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:903:6: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (37) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:915:17: note: (38) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:918:53: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:919:10: note: (40) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:922:10: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:931:10: note: (42) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:933:32: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:933:32: note: (44) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:933:32: note: (45) 'open(**_165.path, 0)' leaks here; was opened at (44) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function 'format_default_id_mapping': <--[gcc] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1560:12: warning: 'from' may be used uninitialized [-Wmaybe-uninitialized] <--[gcc] 1560 | from += used; | ^~ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1544:12: note: 'from' was declared here <--[gcc] 1544 | uint32_t from, available; | ^~~~ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1561:17: warning: 'available' may be used uninitialized [-Wmaybe-uninitialized] <--[gcc] 1561 | available -= used; | ^~ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1544:18: note: 'available' was declared here <--[gcc] 1544 | uint32_t from, available; | ^~~~~~~~~ In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:21: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'read_dir_entries': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(128)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2542:1: note: (1) entry to 'read_dir_entries' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2551:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (4) calling 'xmalloc' from 'read_dir_entries' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (5) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (6) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (7) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (10) returning to 'read_dir_entries' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (11) 'xmalloc(128)' leaks here; was allocated at (6) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'read_all_fd_with_size_hint': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(allocated + 1)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2475:1: note: (1) entry to 'read_file_as_long_or_default' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2483:9: note: (2) calling 'read_all_file' from 'read_file_as_long_or_default' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1050:1: note: (3) entry to 'read_all_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1055:10: note: (4) calling 'read_all_file_at' from 'read_all_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1038:1: note: (5) entry to 'read_all_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1043:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1046:10: note: (7) inlined call to 'read_all_fd' from 'read_all_file_at' <--[csmock-gcc-wrapper] In function 'read_all_fd', inlined from 'read_all_file_at' at src/libcrun/utils.c:1046:10: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:305:10: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:305:10: note: (9) calling 'read_all_fd_with_size_hint' from 'read_all_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function 'read_all_fd_with_size_hint': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:975:1: note: (10) entry to 'read_all_fd_with_size_hint' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:983:6: note: (11) following 'false' branch (when 'size_hint == 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:987:13: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:987:13: note: (13) calling 'get_file_size' from 'read_all_fd_with_size_hint' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:657:1: note: (14) entry to 'get_file_size' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:667:6: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:673:14: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:987:13: note: (17) returning to 'read_all_fd_with_size_hint' from 'get_file_size' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:988:10: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:991:24: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:995:9: note: (20) calling 'xmalloc' from 'read_all_fd_with_size_hint' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (21) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (22) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (23) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:995:9: note: (26) returning to 'read_all_fd_with_size_hint' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (27) 'xmalloc(allocated + 1)' leaks here; was allocated at (22) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'copy_from_fd_to_fd': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(get_page_size())' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:24: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following 'case 32768:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2113:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2115:14: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2118:20: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2119:14: note: (19) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2122:17: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2122:17: note: (21) calling 'copy_from_fd_to_fd' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1279:1: note: (22) entry to 'copy_from_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1304:16: note: (23) calling 'xmalloc' from 'copy_from_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (24) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (25) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (26) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1304:16: note: (29) returning to 'copy_from_fd_to_fd' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (30) 'xmalloc(get_page_size())' leaks here; was allocated at (25) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'copy_xattr': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc((long unsigned int)(xattr_len + 1))' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following 'case 16384:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2136:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2138:14: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2141:19: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2142:14: note: (19) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2145:20: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2146:14: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (23) calling 'copy_xattr' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1988:1: note: (24) entry to 'copy_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1995:6: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2003:6: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2003:6: note: (27) following 'false' branch (when 'xattr_len != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:28: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:9: note: (29) calling 'xmalloc' from 'copy_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (30) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (31) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (32) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (33) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:9: note: (35) returning to 'copy_xattr' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (36) 'xmalloc((long unsigned int)(xattr_len + 1))' leaks here; was allocated at (31) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'safe_read_xattr': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc((long unsigned int)(current_size + 1))' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following 'case 16384:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2136:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2138:14: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2141:19: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2142:14: note: (19) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2145:20: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2146:14: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (23) calling 'copy_xattr' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1988:1: note: (24) entry to 'copy_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1995:6: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2003:6: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2003:6: note: (27) following 'false' branch (when 'xattr_len != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:28: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:9: note: (29) calling 'xmalloc' from 'copy_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (30) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (31) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:9: note: (33) returning to 'copy_xattr' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2009:6: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (35) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2012:27: note: (36) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2014:26: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2017:11: note: (38) calling 'safe_read_xattr' from 'copy_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1953:1: note: (39) entry to 'safe_read_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1960:12: note: (40) calling 'xmalloc' from 'safe_read_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (41) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (42) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (43) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1960:12: note: (46) returning to 'safe_read_xattr' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (47) 'xmalloc((long unsigned int)(current_size + 1))' leaks here; was allocated at (42) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'read_dir_entries': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: warning: leak of 'xrealloc(entries, (n_entries + 1) * 8)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2542:1: note: (1) entry to 'read_dir_entries' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2551:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (4) calling 'xmalloc' from 'read_dir_entries' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (5) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (8) returning to 'read_dir_entries' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2569:13: note: (9) calling 'xrealloc' from 'read_dir_entries' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (10) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (11) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (12) when 'realloc' succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2569:13: note: (15) returning to 'read_dir_entries' from 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: note: (16) 'xrealloc(entries, (n_entries + 1) * 8)' leaks here; was allocated at (11) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: warning: leak of 'xrealloc(entries, entries_size * 16)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2542:1: note: (1) entry to 'read_dir_entries' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2551:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (4) calling 'xmalloc' from 'read_dir_entries' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (5) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (8) returning to 'read_dir_entries' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2558:10: note: (9) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2560:21: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2562:10: note: (11) following 'false' branch (when 'n_entries != entries_size')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2567:24: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2567:30: note: (13) calling 'xstrdup' from 'read_dir_entries' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (14) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (15) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (17) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (18) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2567:30: note: (19) returning to 'read_dir_entries' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2558:10: note: (20) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2560:21: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2562:10: note: (22) following 'true' branch (when 'n_entries == entries_size')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2564:24: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2565:21: note: (24) calling 'xrealloc' from 'read_dir_entries' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (25) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (26) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (27) when 'realloc' succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2565:21: note: (30) returning to 'read_dir_entries' from 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: note: (31) 'xrealloc(entries, entries_size * 16)' leaks here; was allocated at (26) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'safe_read_xattr': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: warning: leak of 'xrealloc(buffer, (long unsigned int)(current_size + 1))' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following 'case 16384:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2136:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2138:14: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2141:19: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2142:14: note: (19) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2145:20: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2146:14: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (23) calling 'copy_xattr' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1988:1: note: (24) entry to 'copy_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1995:6: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2003:6: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2003:6: note: (27) following 'false' branch (when 'xattr_len != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:28: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:9: note: (29) calling 'xmalloc' from 'copy_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (30) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (31) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:9: note: (33) returning to 'copy_xattr' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2009:6: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (35) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2012:27: note: (36) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2014:26: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2017:11: note: (38) calling 'safe_read_xattr' from 'copy_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1953:1: note: (39) entry to 'safe_read_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1960:12: note: (40) calling 'xmalloc' from 'safe_read_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (41) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1960:12: note: (44) returning to 'safe_read_xattr' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1965:10: note: (45) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1968:10: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1968:10: note: (47) following 'false' branch (when 'current_size <= s')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1971:20: note: (48) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1972:16: note: (49) calling 'xrealloc' from 'safe_read_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (50) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (51) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (52) when 'realloc' succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (53) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (54) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1972:16: note: (55) returning to 'safe_read_xattr' from 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: note: (56) 'xrealloc(buffer, (long unsigned int)(current_size + 1))' leaks here; was allocated at (51) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'safe_readlinkat': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: warning: leak of 'xrealloc(tmp_buf, (long unsigned int)(buf_size + 1))' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following 'case 40960:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2161:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2162:17: note: (17) calling 'safe_readlinkat' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:420:1: note: (18) entry to 'safe_readlinkat' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:428:10: note: (19) following 'false' branch (when 'tmp_buf' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:432:45: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:432:17: note: (21) calling 'xrealloc' from 'safe_readlinkat' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (22) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (23) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (24) when 'realloc' succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:432:17: note: (27) returning to 'safe_readlinkat' from 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: note: (28) 'xrealloc(tmp_buf, (long unsigned int)(buf_size + 1))' leaks here; was allocated at (23) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'safe_read_xattr' at src/libcrun/utils.c:1955:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-'free' of 'buffer' [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function 'safe_read_xattr': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following 'case 16384:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2136:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2138:14: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2141:19: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2142:14: note: (19) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2145:20: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2146:14: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (23) calling 'copy_xattr' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1988:1: note: (24) entry to 'copy_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1995:6: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2003:6: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2003:6: note: (27) following 'false' branch (when 'xattr_len != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:28: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:9: note: (29) calling 'xmalloc' from 'copy_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (30) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (31) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:9: note: (33) returning to 'copy_xattr' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2009:6: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (35) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2012:27: note: (36) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2014:26: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2017:11: note: (38) calling 'safe_read_xattr' from 'copy_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1953:1: note: (39) entry to 'safe_read_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1960:12: note: (40) calling 'xmalloc' from 'safe_read_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (41) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (42) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (43) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1960:12: note: (46) returning to 'safe_read_xattr' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1965:10: note: (47) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1968:10: note: (48) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1968:10: note: (49) following 'false' branch (when 'current_size <= s')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1971:20: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1972:16: note: (51) calling 'xrealloc' from 'safe_read_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (52) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (53) first 'free' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (54) when 'realloc' succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (55) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (56) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1972:16: note: (57) returning to 'safe_read_xattr' from 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1955:22: note: (58) inlined call to 'cleanup_freep' from 'safe_read_xattr' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'safe_read_xattr' at src/libcrun/utils.c:1955:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (59) second 'free' here; first 'free' was at (53) <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2096:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-'free' of '*(void **)&target_buf' [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function 'copy_recursive_fd_to_fd': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following 'case 16384:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2136:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2138:14: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2141:19: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2142:14: note: (19) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2145:20: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2146:14: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2151:14: note: (23) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2155:17: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2155:17: note: (25) calling 'copy_recursive_fd_to_fd' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (26) entry to 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (29) following 'true' branch (when 'de' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (31) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (33) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (34) entry to 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (35) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (37) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (40) following 'case 16384:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2136:9: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2138:14: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2141:19: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2142:14: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2145:20: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2146:14: note: (46) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2151:14: note: (48) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2155:17: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2155:17: note: (50) calling 'copy_recursive_fd_to_fd' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (51) entry to 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (52) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (54) following 'true' branch (when 'de' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2096:26: note: (56) inlined call to 'cleanup_freep' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2096:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (57) first 'free' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function 'copy_recursive_fd_to_fd': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2095:25: note: (58) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2095:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (59) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function 'copy_recursive_fd_to_fd': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (60) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2094:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:7: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function 'copy_recursive_fd_to_fd': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (62) following 'true' branch (when 'de' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (63) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2096:26: note: (64) inlined call to 'cleanup_freep' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2096:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (65) second 'free' here; first 'free' was at (57) <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2096:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-'free' of '*(void **)&target_buf' [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function 'copy_recursive_fd_to_fd': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following 'case 16384:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2136:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2138:14: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2141:19: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2142:14: note: (19) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2145:20: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2146:14: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2151:14: note: (23) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2155:17: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2155:17: note: (25) calling 'copy_recursive_fd_to_fd' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (26) entry to 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (29) following 'true' branch (when 'de' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (31) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (33) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (34) entry to 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (35) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (37) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (38) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (40) following 'case 16384:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2136:9: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2138:14: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2141:19: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2142:14: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2145:20: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2146:14: note: (46) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2151:14: note: (48) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2155:17: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2155:17: note: (50) calling 'copy_recursive_fd_to_fd' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (51) entry to 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (52) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (54) following 'true' branch (when 'de' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2096:26: note: (56) inlined call to 'cleanup_freep' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2096:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (57) first 'free' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function 'copy_recursive_fd_to_fd': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2095:25: note: (58) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2095:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (59) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function 'copy_recursive_fd_to_fd': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (60) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2094:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:7: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function 'copy_recursive_fd_to_fd': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (62) following 'true' branch (when 'de' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (63) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (64) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (65) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (66) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (67) entry to 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (68) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (69) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (70) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2096:26: note: (71) inlined call to 'cleanup_freep' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2096:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (72) second 'free' here; first 'free' was at (57) <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'safe_readlinkat' at src/libcrun/utils.c:423:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-'free' of 'tmp_buf' [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function 'safe_readlinkat': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2096:26: note: (6) first 'free' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (7) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (9) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (10) entry to 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (11) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (13) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (16) following 'case 40960:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2161:9: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2162:17: note: (18) calling 'safe_readlinkat' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:420:1: note: (19) entry to 'safe_readlinkat' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:428:10: note: (20) following 'false' branch (when 'tmp_buf' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:432:45: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:432:17: note: (22) passing freed pointer 'tmp_buf' in call to 'xrealloc' from 'safe_readlinkat' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (23) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (24) when 'realloc' succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:432:17: note: (27) returning to 'safe_readlinkat' from 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:423:22: note: (28) inlined call to 'cleanup_freep' from 'safe_readlinkat' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'safe_readlinkat' at src/libcrun/utils.c:423:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (29) second 'free' here; first 'free' was at (6) <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:26: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'destdirfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following 'case 16384:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2136:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2138:14: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2141:19: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2142:14: note: (19) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2145:20: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2146:14: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2150:23: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2151:14: note: (23) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2155:17: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2155:17: note: (25) calling 'copy_recursive_fd_to_fd' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (26) entry to 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2081:21: note: (27) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2081:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (28) following 'true' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (29) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2081:21: note: (30) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2081:21: cc1: note: (31) calling 'cleanup_closep.part.0' from 'copy_recursive_fd_to_fd' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (32) entry to 'cleanup_closep.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (33) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (34) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (35) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (36) second 'close' here; first 'close' was at (33) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'srcfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following 'case 32768:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2113:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2115:14: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2118:20: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2119:14: note: (19) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2122:17: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2123:14: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2127:23: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2127:23: note: (23) calling 'copy_xattr' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1988:1: note: (24) entry to 'copy_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1995:6: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2003:6: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2003:6: note: (27) following 'false' branch (when 'xattr_len != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:28: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:9: note: (29) calling 'xmalloc' from 'copy_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (30) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (31) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2006:9: note: (33) returning to 'copy_xattr' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2009:6: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (35) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2012:27: note: (36) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2014:26: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2017:11: note: (38) calling 'safe_read_xattr' from 'copy_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1953:1: note: (39) entry to 'safe_read_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1960:12: note: (40) calling 'xmalloc' from 'safe_read_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (41) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (42) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:1960:12: note: (44) returning to 'safe_read_xattr' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2017:11: note: (45) returning to 'copy_xattr' from 'safe_read_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2127:23: note: (46) returning to 'copy_recursive_fd_to_fd' from 'copy_xattr' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2128:14: note: (47) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (48) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2182:10: note: (49) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2192:13: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2193:10: note: (51) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2096:26: note: (52) inlined call to 'cleanup_freep' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2096:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2095:25: note: (54) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2095:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (55) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (56) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2094:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:7: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (58) following 'true' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (59) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (60) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2094:25: cc1: note: (61) calling 'cleanup_closep.part.0' from 'copy_recursive_fd_to_fd' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (62) entry to 'cleanup_closep.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (63) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (64) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (65) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (66) second 'close' here; first 'close' was at (63) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'read_dir_entries': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(&*.d_name)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2542:1: note: (1) entry to 'read_dir_entries' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2551:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (4) calling 'xmalloc' from 'read_dir_entries' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (5) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2557:13: note: (8) returning to 'read_dir_entries' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2558:10: note: (9) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2560:21: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2560:10: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2562:10: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2562:10: note: (13) following 'false' branch (when 'n_entries != entries_size')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2567:24: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2567:30: note: (15) calling 'xstrdup' from 'read_dir_entries' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (16) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (17) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (19) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (20) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (21) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (22) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2567:30: note: (23) returning to 'read_dir_entries' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (24) 'xstrdup(&*.d_name)' leaks here; was allocated at (19) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function 'copy_recursive_fd_to_fd': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2085:12: warning: leak of 'fdopendir(srcdirfd)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2085:12: note: (1) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2085:12: note: (2) 'fdopendir(srcdirfd)' leaks here; was allocated at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2088:27: warning: double 'close' of file descriptor 'srcdirfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (1) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (2) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2088:27: note: (3) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2088:7: note: (4) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (5) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2088:27: note: (6) second 'close' here; first 'close' was at (3) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2132:31: warning: double 'close' of file descriptor 'destfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-custom-handler.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-custom-handler.Tpo -c -o src/libcrun/libcrun_la-custom-handler.lo `test -f 'src/libcrun/custom-handler.c' || echo './'`src/libcrun/custom-handler.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-custom-handler.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-custom-handler.Tpo -c src/libcrun/custom-handler.c -o src/libcrun/libcrun_la-custom-handler.o mv -f src/libcrun/.deps/libcrun_la-custom-handler.Tpo src/libcrun/.deps/libcrun_la-custom-handler.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-ebpf.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-ebpf.Tpo -c -o src/libcrun/libcrun_la-ebpf.lo `test -f 'src/libcrun/ebpf.c' || echo './'`src/libcrun/ebpf.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-ebpf.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-ebpf.Tpo -c src/libcrun/ebpf.c -o src/libcrun/libcrun_la-ebpf.o mv -f src/libcrun/.deps/libcrun_la-ebpf.Tpo src/libcrun/.deps/libcrun_la-ebpf.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-container.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-container.Tpo -c -o src/libcrun/libcrun_la-container.lo `test -f 'src/libcrun/container.c' || echo './'`src/libcrun/container.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-container.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-container.Tpo -c src/libcrun/container.c -o src/libcrun/libcrun_la-container.o mv -f src/libcrun/.deps/libcrun_la-container.Tpo src/libcrun/.deps/libcrun_la-container.Plo to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (15) following 'case 32768:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2113:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2115:14: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2118:20: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2119:14: note: (19) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2122:17: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2123:14: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2127:23: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2128:14: note: (23) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (24) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2132:31: note: (25) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2132:11: note: (26) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2132:31: note: (28) second 'close' here; first 'close' was at (25) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2166:17: warning: use of NULL 'target_buf' where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2096:26: note: (6) 'target_buf' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2104:10: note: (7) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (9) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2037:1: note: (10) entry to 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2049:6: note: (11) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2051:11: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2107:13: note: (13) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2108:10: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:20: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2111:7: note: (16) following 'case 40960:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2161:9: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2162:17: note: (18) calling 'safe_readlinkat' from 'copy_recursive_fd_to_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:420:1: note: (19) entry to 'safe_readlinkat' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:428:10: note: (20) following 'false' branch (when 'tmp_buf' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:432:45: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:432:17: note: (22) calling 'xrealloc' from 'safe_readlinkat' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (23) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (24) when 'realloc' succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:432:17: note: (27) returning to 'safe_readlinkat' from 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2162:17: note: (28) returning to 'copy_recursive_fd_to_fd' from 'safe_readlinkat' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2163:14: note: (29) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2166:17: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2166:17: note: (31) 'target_buf' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2166:17: note: (32) 'target_buf' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2166:17: note: (33) argument 1 ('target_buf') NULL where non-null expected <--[csmock-gcc-wrapper] /usr/include/unistd.h:847:12: note: argument 1 of 'symlinkat' must be non-null <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c: In function 'read_file_as_long_or_default': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2491:9: warning: use of NULL 'content' where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2477:22: note: (1) 'content' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2484:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2490:3: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:2491:9: note: (4) argument 1 ('content') NULL where non-null expected <--[csmock-gcc-wrapper] In file included from /usr/include/features.h:511, <--[csmock-gcc-wrapper] from /usr/include/bits/libc-header-start.h:33, <--[csmock-gcc-wrapper] from /usr/include/stdio.h:28, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:22: <--[csmock-gcc-wrapper] /usr/include/stdlib.h:215:17: note: argument 1 of 'strtol' must be non-null <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/custom-handler.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:23: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'read_all_progs': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: warning: leak of 'xrealloc(progs, cur_size * 4)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:363:1: note: (1) entry to 'ebpf_attach_program' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:387:13: note: (2) calling 'read_all_progs' from 'ebpf_attach_program' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:272:1: note: (3) entry to 'read_all_progs' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:282:32: note: (4) following 'true' branch (when 'cur_size <= 4096')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:284:15: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:284:15: note: (6) calling 'xrealloc' from 'read_all_progs' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (7) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (8) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (9) when 'realloc' succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:284:15: note: (12) returning to 'read_all_progs' from 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: note: (13) 'xrealloc(progs, cur_size * 4)' leaks here; was allocated at (8) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'libcrun_ebpf_load': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: warning: leak of 'xrealloc(log, log_size)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:475:1: note: (1) entry to 'libcrun_ebpf_load' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:504:6: note: (2) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:511:13: note: (4) calling 'xrealloc' from 'libcrun_ebpf_load' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (5) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (6) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (7) when 'realloc' succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:511:13: note: (10) returning to 'libcrun_ebpf_load' from 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: note: (11) 'xrealloc(log, log_size)' leaks here; was allocated at (6) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'read_all_progs' at src/libcrun/ebpf.c:275:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-'free' of 'progs' [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c: In function 'read_all_progs': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:363:1: note: (1) entry to 'ebpf_attach_program' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:381:30: note: (2) first 'free' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:387:13: note: (3) calling 'read_all_progs' from 'ebpf_attach_program' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:272:1: note: (4) entry to 'read_all_progs' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:282:32: note: (5) following 'true' branch (when 'cur_size <= 4096')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:284:15: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:284:15: note: (7) passing freed pointer 'progs' in call to 'xrealloc' from 'read_all_progs' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (8) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (9) when 'realloc' succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:284:15: note: (12) returning to 'read_all_progs' from 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:275:26: note: (13) inlined call to 'cleanup_freep' from 'read_all_progs' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'read_all_progs' at src/libcrun/ebpf.c:275:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (14) second 'free' here; first 'free' was at (2) <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'libcrun_ebpf_load' at src/libcrun/ebpf.c:507:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-'free' of 'log' [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c: In function 'libcrun_ebpf_load': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:475:1: note: (1) entry to 'libcrun_ebpf_load' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:504:6: note: (2) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:511:13: note: (4) passing freed pointer 'log' in call to 'xrealloc' from 'libcrun_ebpf_load' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (5) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (6) when 'realloc' succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (7) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:511:13: note: (9) returning to 'libcrun_ebpf_load' from 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:507:26: note: (10) inlined call to 'cleanup_freep' from 'libcrun_ebpf_load' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'libcrun_ebpf_load' at src/libcrun/ebpf.c:507:26: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (11) second 'free' here <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.h:24, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:22: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c: In function 'read_all_progs': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:294:18: warning: infinite loop [CWE-835] [-Wanalyzer-infinite-loop] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:363:1: note: (1) entry to 'ebpf_attach_program' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:272:1: note: (2) entry to 'read_all_progs' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (3) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (4) when 'realloc' succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (5) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (6) when 'realloc' succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (7) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (8) when 'realloc' succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (9) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (10) when 'realloc' succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (11) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (12) when 'realloc' succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (13) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (14) when 'realloc' succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (15) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (16) when 'realloc' succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:294:18: note: (17) infinite loop here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:294:18: note: (18) when 'ret < 0': always following 'true' branch... <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.h:25: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:294:21: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:294:18: note: (20) if it ever follows 'true' branch, it will always do so... <--[csmock-gcc-wrapper] cc1: note: (21) ...to here cc1: note: (22) looping back... /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/ebpf.c:294:18: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:24: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'libcrun_container_get_features': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0(144)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4034:1: note: (1) entry to 'libcrun_container_get_features' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4046:11: note: (2) calling 'xmalloc0' from 'libcrun_container_get_features' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (4) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (5) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4046:11: note: (8) returning to 'libcrun_container_get_features' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (9) 'xmalloc0(144)' leaks here; was allocated at (4) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'retrieve_mount_options': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0((num_mount_options + 1) * 8)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4013:1: note: (1) entry to 'retrieve_mount_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4026:28: note: (2) calling 'xmalloc0' from 'retrieve_mount_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (4) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (5) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4026:28: note: (8) returning to 'retrieve_mount_options' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (9) 'xmalloc0((num_mount_options + 1) * 8)' leaks here; was allocated at (4) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'libcrun_container_load_from_file': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of 'make_container(runtime_spec_schema_config_schema_parse_file(path, 0, & oci_error), path, 0)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4437:1: note: (1) entry to 'libcrun_container_update_intel_rdt' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4445:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4448:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4449:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4452:15: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4452:15: note: (6) calling 'libcrun_container_load_from_file' from 'libcrun_container_update_intel_rdt' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (7) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (10) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (11) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (12) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (13) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (14) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (15) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (18) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:549:6: note: (19) following 'false' branch (when 'path' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (24) 'make_container(runtime_spec_schema_config_schema_parse_file(path, 0, & oci_error), path, 0)' leaks here; was allocated at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'libcrun_container_update_intel_rdt': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of 'libcrun_container_load_from_file(config_file, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4437:1: note: (1) entry to 'libcrun_container_update_intel_rdt' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4445:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4448:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4449:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4452:15: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4452:15: note: (6) calling 'libcrun_container_load_from_file' from 'libcrun_container_update_intel_rdt' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (7) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (10) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (11) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (12) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (13) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (14) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (15) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (18) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:549:6: note: (19) following 'false' branch (when 'path' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4452:15: note: (24) returning to 'libcrun_container_update_intel_rdt' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (25) 'libcrun_container_load_from_file(config_file, err)' leaks here; was allocated at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'libcrun_container_restore': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of 'libcrun_container_load_from_file("config.json", err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4209:1: note: (1) entry to 'libcrun_container_restore' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4221:15: note: (2) calling 'libcrun_container_load_from_file' from 'libcrun_container_restore' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (3) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (6) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (7) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (8) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (9) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (10) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (11) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (14) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:549:6: note: (15) following 'true' branch (when 'path' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (17) calling 'xstrdup' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (18) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (19) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (21) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (22) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (23) returning to 'make_container' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (24) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (26) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4221:15: note: (27) returning to 'libcrun_container_restore' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (28) 'libcrun_container_load_from_file("config.json", err)' leaks here; was allocated at (10) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'libcrun_container_exec_with_options': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of 'libcrun_container_load_from_file(config_file, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (19) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (22) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:549:6: note: (23) following 'false' branch (when 'path' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (25) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (27) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (28) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (29) 'libcrun_container_load_from_file(config_file, err)' leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'read_container_config_from_state': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of 'libcrun_container_load_from_file(config_file, err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3803:1: note: (1) entry to 'libcrun_container_update' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3817:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3820:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3820:9: note: (4) calling 'read_container_config_from_state' from 'libcrun_container_update' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1598:1: note: (5) entry to 'read_container_config_from_state' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1608:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1611:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1612:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1615:16: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1615:16: note: (10) calling 'libcrun_container_load_from_file' from 'read_container_config_from_state' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (19) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (20) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (22) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:549:6: note: (23) following 'false' branch (when 'path' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (25) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (27) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1615:16: note: (28) returning to 'read_container_config_from_state' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (29) 'libcrun_container_load_from_file(config_file, err)' leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'libcrun_container_update': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0(176)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3803:1: note: (1) entry to 'libcrun_container_update' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3817:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3820:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3820:9: note: (4) calling 'read_container_config_from_state' from 'libcrun_container_update' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1598:1: note: (5) entry to 'read_container_config_from_state' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1608:6: note: (6) following 'true' branch... <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.h:24, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:23: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:86:25: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1609:12: note: in expansion of macro 'crun_make_error' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3820:9: note: (8) returning to 'libcrun_container_update' from 'read_container_config_from_state' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3821:6: note: (9) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3824:9: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3829:6: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3832:9: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3833:6: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3836:15: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3837:6: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3843:7: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3843:6: note: (17) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3846:62: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3846:62: note: (19) calling 'xmalloc0' from 'libcrun_container_update' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (20) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (21) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (22) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (23) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3846:62: note: (25) returning to 'libcrun_container_update' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (26) 'xmalloc0(176)' leaks here; was allocated at (21) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0(120)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3803:1: note: (1) entry to 'libcrun_container_update' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3817:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3820:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3820:9: note: (4) calling 'read_container_config_from_state' from 'libcrun_container_update' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1598:1: note: (5) entry to 'read_container_config_from_state' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1608:6: note: (6) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:86:25: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1609:12: note: in expansion of macro 'crun_make_error' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3820:9: note: (8) returning to 'libcrun_container_update' from 'read_container_config_from_state' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3821:6: note: (9) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3824:9: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3829:6: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3832:9: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3833:6: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3836:15: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3837:6: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3843:7: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3843:6: note: (17) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3846:62: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3846:62: note: (19) calling 'xmalloc0' from 'libcrun_container_update' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (20) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3846:62: note: (23) returning to 'libcrun_container_update' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3847:61: note: (24) calling 'xmalloc0' from 'libcrun_container_update' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (25) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (26) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (27) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (28) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3847:61: note: (30) returning to 'libcrun_container_update' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (31) 'xmalloc0(120)' leaks here; was allocated at (26) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'libcrun_container_load_from_file' at src/libcrun/container.c:575:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'libcrun_container_restore': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4209:1: note: (1) entry to 'libcrun_container_restore' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4221:15: note: (2) calling 'libcrun_container_load_from_file' from 'libcrun_container_restore' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (3) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (6) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (7) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (8) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (9) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (12) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:549:6: note: (13) following 'true' branch (when 'path' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (15) calling 'xstrdup' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (16) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (17) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (19) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (20) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (21) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (22) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (23) returning to 'make_container' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (24) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (26) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4221:15: note: (27) returning to 'libcrun_container_restore' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:575:22: note: (28) inlined call to 'cleanup_freep' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'libcrun_container_load_from_file' at src/libcrun/container.c:575:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (29) '' leaks here; was allocated at (19) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'libcrun_container_update_intel_rdt': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4437:1: note: (1) entry to 'libcrun_container_update_intel_rdt' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4445:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4448:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4449:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4452:15: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4452:15: note: (6) calling 'libcrun_container_load_from_file' from 'libcrun_container_update_intel_rdt' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (7) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (10) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (11) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (12) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (13) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:549:6: note: (17) following 'true' branch (when 'path' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (19) calling 'xstrdup' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (20) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (21) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (23) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (24) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (25) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (26) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (27) returning to 'make_container' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (28) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (30) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4452:15: note: (31) returning to 'libcrun_container_update_intel_rdt' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:575:22: note: (32) inlined call to 'cleanup_freep' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'libcrun_container_load_from_file' at src/libcrun/container.c:575:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (33) '' leaks here; was allocated at (23) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:549:6: note: (21) following 'true' branch (when 'path' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (23) calling 'xstrdup' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (24) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (25) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (27) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (28) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (29) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (30) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (31) returning to 'make_container' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (32) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (34) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (35) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:575:22: note: (36) inlined call to 'cleanup_freep' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'libcrun_container_load_from_file' at src/libcrun/container.c:575:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (37) '' leaks here; was allocated at (27) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'read_container_config_from_state': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3803:1: note: (1) entry to 'libcrun_container_update' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3817:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3820:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3820:9: note: (4) calling 'read_container_config_from_state' from 'libcrun_container_update' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1598:1: note: (5) entry to 'read_container_config_from_state' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1608:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1611:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1612:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1615:16: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1615:16: note: (10) calling 'libcrun_container_load_from_file' from 'read_container_config_from_state' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:549:6: note: (21) following 'true' branch (when 'path' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (23) calling 'xstrdup' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (24) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (25) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (27) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (28) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (29) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (30) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (31) returning to 'make_container' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (32) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (34) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1615:16: note: (35) returning to 'read_container_config_from_state' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:575:22: note: (36) inlined call to 'cleanup_freep' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'libcrun_container_load_from_file' at src/libcrun/container.c:575:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (37) '' leaks here; was allocated at (27) <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'console_socket_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:46: <--[csmock-gcc-wrapper] In function 'cgroup_status_freep', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:25: <--[csmock-gcc-wrapper] In function 'libcrun_seccomp_gen_ctx_init', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (50) calling 'initialize_security' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:641:1: note: (51) entry to 'initialize_security' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:645:6: note: (52) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:648:11: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:656:6: note: (54) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:659:9: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (56) returning to 'libcrun_container_exec_with_options' from 'initialize_security' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3694:6: note: (57) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3697:9: note: (58) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3698:6: note: (59) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3702:47: note: (60) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3703:6: note: (61) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (62) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (63) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (64) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3728:6: note: (65) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3732:18: note: (66) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3732:10: note: (67) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3738:13: note: (68) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3739:10: note: (69) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3742:18: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3742:10: note: (71) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3745:49: note: (72) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3746:14: note: (73) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3748:17: note: (74) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3745:29: note: (75) inlined call to 'cleanup_closep' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3745:29: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (76) following 'true' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (77) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3745:29: note: (78) inlined call to 'cleanup_closep' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3745:29: cc1: note: (79) calling 'cleanup_closep.part.0' from 'libcrun_container_exec_with_options' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (80) entry to 'cleanup_closep.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (81) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (82) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (83) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (84) second 'close' here; first 'close' was at (81) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'signalfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'cgroup_status_freep', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'libcrun_seccomp_gen_ctx_init', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (50) calling 'initialize_security' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:641:1: note: (51) entry to 'initialize_security' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:645:6: note: (52) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:648:11: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:656:6: note: (54) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:659:9: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (56) returning to 'libcrun_container_exec_with_options' from 'initialize_security' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3694:6: note: (57) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3697:9: note: (58) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3698:6: note: (59) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3702:47: note: (60) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3703:6: note: (61) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (62) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (63) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (64) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3728:6: note: (65) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (66) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3767:6: note: (67) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3772:35: note: (68) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3772:10: note: (69) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3784:38: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3794:15: note: (71) calling 'wait_for_process' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1969:1: note: (72) entry to 'wait_for_process' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1983:6: note: (73) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1986:20: note: (74) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1997:6: note: (75) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2000:11: note: (76) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2000:6: note: (77) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2007:3: note: (78) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2009:6: note: (79) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2012:14: note: (80) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2013:6: note: (81) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2016:9: note: (82) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2017:6: note: (83) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2020:7: note: (84) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2020:6: note: (85) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2023:11: note: (86) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2023:6: note: (87) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2057:14: note: (88) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2058:6: note: (89) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2060:11: note: (90) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2069:6: note: (91) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1979:67: note: (92) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1972:21: note: (93) inlined call to 'cleanup_closep' from 'wait_for_process' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'wait_for_process' at src/libcrun/container.c:1972:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (94) following 'true' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (95) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1972:21: note: (96) inlined call to 'cleanup_closep' from 'wait_for_process' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'wait_for_process' at src/libcrun/container.c:1972:21: cc1: note: (97) calling 'cleanup_closep.part.0' from 'wait_for_process' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (98) entry to 'cleanup_closep.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (99) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (100) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (101) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (102) second 'close' here; first 'close' was at (99) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'close_and_reset': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: warning: double 'close' of file descriptor 'seccomp_receiver_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3315:1: note: (1) entry to 'exec_process_entrypoint' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3348:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3351:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3352:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3355:14: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3384:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3387:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3388:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3391:16: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3391:6: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3393:21: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3416:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3419:16: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3419:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3421:26: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3433:10: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3436:7: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3437:7: note: (18) calling 'close_and_reset' from 'exec_process_entrypoint' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:202:1: note: (19) entry to 'close_and_reset' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:205:6: note: (20) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (21) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (22) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:13: note: (23) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (24) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (25) second 'close' here; first 'close' was at (22) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: warning: double 'close' of file descriptor 'seccomp_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'cgroup_status_freep', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'close_and_reset': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'libcrun_seccomp_gen_ctx_init', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'close_and_reset': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (50) calling 'initialize_security' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:641:1: note: (51) entry to 'initialize_security' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:645:6: note: (52) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:648:11: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:656:6: note: (54) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:659:9: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (56) returning to 'libcrun_container_exec_with_options' from 'initialize_security' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3694:6: note: (57) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3697:9: note: (58) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3698:6: note: (59) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3702:47: note: (60) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3703:6: note: (61) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (62) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (63) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (64) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3725:6: note: (65) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3726:5: note: (66) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3726:5: note: (67) calling 'close_and_reset' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:202:1: note: (68) entry to 'close_and_reset' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:205:6: note: (69) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (70) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (71) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:13: note: (72) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (73) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (74) second 'close' here; first 'close' was at (71) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: warning: double 'close' of file descriptor 'terminal_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'cgroup_status_freep', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'close_and_reset': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'libcrun_seccomp_gen_ctx_init', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'close_and_reset': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (50) calling 'initialize_security' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:641:1: note: (51) entry to 'initialize_security' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:645:6: note: (52) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:648:11: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:656:6: note: (54) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:659:9: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (56) returning to 'libcrun_container_exec_with_options' from 'initialize_security' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3694:6: note: (57) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3697:9: note: (58) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3698:6: note: (59) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3702:47: note: (60) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3703:6: note: (61) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (62) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (63) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (64) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3728:6: note: (65) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3732:18: note: (66) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3732:10: note: (67) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3738:13: note: (68) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3739:10: note: (69) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3742:18: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3742:10: note: (71) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3745:49: note: (72) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3746:14: note: (73) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3748:17: note: (74) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3749:14: note: (75) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3751:11: note: (76) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3751:11: note: (77) calling 'close_and_reset' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:202:1: note: (78) entry to 'close_and_reset' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:205:6: note: (79) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (80) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (81) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:13: note: (82) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (83) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (84) second 'close' here; first 'close' was at (81) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: warning: double 'close' of file descriptor 'own_seccomp_receiver_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'cgroup_status_freep', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'close_and_reset': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'libcrun_seccomp_gen_ctx_init', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'close_and_reset': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:6: note: (41) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3618:13: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3618:13: note: (43) calling 'get_seccomp_receiver_fd' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2285:1: note: (44) entry to 'get_seccomp_receiver_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2295:6: note: (45) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2300:13: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2301:10: note: (47) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:2304:16: note: (48) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3618:13: note: (49) returning to 'libcrun_container_exec_with_options' from 'get_seccomp_receiver_fd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3621:10: note: (50) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:29: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (52) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (54) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (56) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (58) when 'pipe2' succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (59) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (60) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3677:6: note: (61) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3679:18: note: (62) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3685:10: note: (63) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3687:27: note: (64) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3688:14: note: (65) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (66) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (67) calling 'initialize_security' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:641:1: note: (68) entry to 'initialize_security' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:645:6: note: (69) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:648:11: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:656:6: note: (71) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:659:9: note: (72) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (73) returning to 'libcrun_container_exec_with_options' from 'initialize_security' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3694:6: note: (74) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3697:9: note: (75) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3698:6: note: (76) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3702:47: note: (77) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3703:6: note: (78) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (79) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (80) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (81) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3728:6: note: (82) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (83) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3767:6: note: (84) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3772:35: note: (85) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3772:10: note: (86) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3774:31: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3775:14: note: (88) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3778:17: note: (89) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3778:17: note: (90) calling 'close_and_reset' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:202:1: note: (91) entry to 'close_and_reset' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:205:6: note: (92) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (93) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (94) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:13: note: (95) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (96) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (97) second 'close' here; first 'close' was at (94) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: warning: double 'close' of file descriptor 'seccomp_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3315:1: note: (1) entry to 'exec_process_entrypoint' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3348:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3351:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3352:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3355:14: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3384:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3387:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3388:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3391:16: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3391:6: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3391:73: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3391:39: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3397:57: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3416:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3419:16: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3419:6: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3421:26: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3433:10: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3436:7: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3436:7: note: (20) calling 'close_and_reset' from 'exec_process_entrypoint' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:202:1: note: (21) entry to 'close_and_reset' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:205:6: note: (22) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (23) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (24) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:13: note: (25) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (26) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (27) second 'close' here; first 'close' was at (24) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'libcrun_container_get_features': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup("1.0.0")' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4034:1: note: (1) entry to 'libcrun_container_get_features' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4046:11: note: (2) calling 'xmalloc0' from 'libcrun_container_get_features' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4046:11: note: (6) returning to 'libcrun_container_get_features' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4049:30: note: (7) calling 'xstrdup' from 'libcrun_container_get_features' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (8) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (9) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (11) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (12) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (13) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (14) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4049:30: note: (15) returning to 'libcrun_container_get_features' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (16) 'xstrdup("1.0.0")' leaks here; was allocated at (11) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup("1.1.0+dev")' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4034:1: note: (1) entry to 'libcrun_container_get_features' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4046:11: note: (2) calling 'xmalloc0' from 'libcrun_container_get_features' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4046:11: note: (6) returning to 'libcrun_container_get_features' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4049:30: note: (7) calling 'xstrdup' from 'libcrun_container_get_features' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (8) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (9) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (11) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (12) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4049:30: note: (13) returning to 'libcrun_container_get_features' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4050:30: note: (14) calling 'xstrdup' from 'libcrun_container_get_features' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (15) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (16) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (18) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (19) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (20) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (21) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4050:30: note: (22) returning to 'libcrun_container_get_features' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (23) 'xstrdup("1.1.0+dev")' leaks here; was allocated at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'retrieve_mount_options': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(*.name)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4013:1: note: (1) entry to 'retrieve_mount_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4026:28: note: (2) calling 'xmalloc0' from 'retrieve_mount_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4026:28: note: (6) returning to 'retrieve_mount_options' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4029:24: note: (7) following 'true' branch (when 'num_mount_options > i')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4030:60: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4030:33: note: (9) calling 'xstrdup' from 'retrieve_mount_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (10) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (11) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (13) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (14) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (15) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (16) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4030:33: note: (17) returning to 'retrieve_mount_options' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (18) 'xstrdup(*.name)' leaks here; was allocated at (13) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'libcrun_container_exec_with_options': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(*_70->process.selinux_label)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'cgroup_status_freep', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'libcrun_seccomp_gen_ctx_init', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3677:6: note: (50) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3679:18: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3679:10: note: (52) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3680:34: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3680:34: note: (54) calling 'xstrdup' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (55) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (56) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (58) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (59) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (60) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (61) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3680:34: note: (62) returning to 'libcrun_container_exec_with_options' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (63) 'xstrdup(*_70->process.selinux_label)' leaks here; was allocated at (58) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(*_75->process.apparmor_profile)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'cgroup_status_freep', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'libcrun_seccomp_gen_ctx_init', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3677:6: note: (50) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3679:18: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3682:10: note: (52) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3683:37: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3683:37: note: (54) calling 'xstrdup' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (55) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (56) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (58) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (59) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (60) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (61) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3683:37: note: (62) returning to 'libcrun_container_exec_with_options' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (63) 'xstrdup(*_75->process.apparmor_profile)' leaks here; was allocated at (58) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'libcrun_container_load_from_file': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: warning: leak of '' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4209:1: note: (1) entry to 'libcrun_container_restore' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4221:15: note: (2) calling 'libcrun_container_load_from_file' from 'libcrun_container_restore' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (3) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (6) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (7) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (8) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (9) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (12) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:549:6: note: (13) following 'true' branch (when 'path' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (15) calling 'xstrdup' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (16) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (17) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (19) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (20) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (21) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (22) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:550:30: note: (23) returning to 'make_container' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (24) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (26) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (27) '' leaks here; was allocated at (19) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'container_delete_internal': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1736:15: warning: dereference of NULL 'container' [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4177:1: note: (1) entry to 'libcrun_container_checkpoint' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4183:42: note: (2) 'container' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4183:42: note: (3) 'container' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4186:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4189:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4190:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4192:6: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4192:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4195:9: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4195:9: note: (10) calling 'read_container_config_from_state' from 'libcrun_container_checkpoint' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1598:1: note: (11) entry to 'read_container_config_from_state' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1608:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1611:9: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1615:16: note: (14) calling 'libcrun_container_load_from_file' from 'read_container_config_from_state' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (15) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:86:25: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:580:7: note: in expansion of macro 'crun_make_error' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1615:16: note: (18) returning to 'read_container_config_from_state' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1616:6: note: (19) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:86:25: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1617:12: note: in expansion of macro 'crun_make_error' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4195:9: note: (21) returning to 'libcrun_container_checkpoint' from 'read_container_config_from_state' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4196:6: note: (22) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4198:9: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4198:9: note: (24) 'container' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4199:6: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4202:20: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4202:6: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4203:12: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:4203:12: note: (29) calling 'container_delete_internal' from 'libcrun_container_checkpoint' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1684:1: note: (30) entry to 'container_delete_internal' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1689:42: note: (31) 'container' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1694:6: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1708:19: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1710:6: note: (34) following 'true' branch (when 'force != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1728:15: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1728:6: note: (36) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1730:10: note: (37) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1730:10: note: (38) following 'true' branch (when 'def' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1732:17: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1732:17: note: (40) calling 'read_container_config_from_state' from 'container_delete_internal' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1598:1: note: (41) entry to 'read_container_config_from_state' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1608:6: note: (42) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:86:25: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1609:12: note: in expansion of macro 'crun_make_error' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1732:17: note: (44) returning to 'container_delete_internal' from 'read_container_config_from_state' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1733:14: note: (45) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1736:26: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1736:26: note: (47) 'container' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1736:15: note: (48) dereference of NULL 'container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'exec_process_entrypoint': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3496:23: warning: double 'close' of file descriptor 'pipefd1' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3315:1: note: (1) entry to 'exec_process_entrypoint' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3348:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3351:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3352:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3355:14: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3384:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3387:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3388:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3391:16: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3391:6: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3393:21: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3416:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3419:16: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3441:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3444:9: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3444:9: note: (16) calling 'maybe_chown_std_streams' from 'exec_process_entrypoint' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1018:1: note: (17) entry to 'maybe_chown_std_streams' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1023:17: note: (18) following 'true' branch (when 'i != 3')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1025:13: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1025:13: note: (20) when 'isatty' succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1025:10: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:1023:23: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3444:9: note: (23) returning to 'exec_process_entrypoint' from 'maybe_chown_std_streams' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3445:6: note: (24) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3448:14: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3454:6: note: (26) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3457:6: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3496:23: note: (28) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3496:3: note: (29) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (30) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3496:23: note: (31) second 'close' here; first 'close' was at (28) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: warning: dereference of NULL 'process' [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3293:1: note: (1) entry to 'libcrun_container_exec_process_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3301:10: note: (2) calling 'libcrun_container_exec_with_options' from 'libcrun_container_exec_process_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (3) entry to 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3555:46: note: (4) 'process' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3555:46: note: (5) 'process' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3555:46: note: (6) 'process' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (7) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (9) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (15) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (16) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (19) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (20) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (21) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (22) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (23) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (25) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (26) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (28) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (29) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (30) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (35) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'cgroup_status_freep', inlined from 'libcrun_comake[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-error.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-error.Tpo -c -o src/libcrun/libcrun_la-error.lo `test -f 'src/libcrun/error.c' || echo './'`src/libcrun/error.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-error.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-error.Tpo -c src/libcrun/error.c -o src/libcrun/libcrun_la-error.o mv -f src/libcrun/.deps/libcrun_la-error.Tpo src/libcrun/.deps/libcrun_la-error.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_la-handler-utils.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-handler-utils.Tpo -c -o src/libcrun/handlers/libcrun_la-handler-utils.lo `test -f 'src/libcrun/handlers/handler-utils.c' || echo './'`src/libcrun/handlers/handler-utils.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_la-handler-utils.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-handler-utils.Tpo -c src/libcrun/handlers/handler-utils.c -o src/libcrun/handlers/libcrun_la-handler-utils.o mv -f src/libcrun/handlers/.deps/libcrun_la-handler-utils.Tpo src/libcrun/handlers/.deps/libcrun_la-handler-utils.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_la-krun.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-krun.Tpo -c -o src/libcrun/handlers/libcrun_la-krun.lo `test -f 'src/libcrun/handlers/krun.c' || echo './'`src/libcrun/handlers/krun.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_la-krun.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-krun.Tpo -c src/libcrun/handlers/krun.c -o src/libcrun/handlers/libcrun_la-krun.o mv -f src/libcrun/handlers/.deps/libcrun_la-krun.Tpo src/libcrun/handlers/.deps/libcrun_la-krun.Plo ntainer_exec_with_options' at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (37) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (39) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (41) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (42) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'libcrun_seccomp_gen_ctx_init', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (44) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (45) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:6: note: (46) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:29: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (48) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (50) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (52) dereference of NULL 'process' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3680:32: warning: leak of '*process.selinux_label' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'cgroup_status_freep', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'libcrun_seccomp_gen_ctx_init', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3677:6: note: (50) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3679:18: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3679:10: note: (52) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3680:34: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3680:34: note: (54) calling 'xstrdup' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (55) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (56) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (58) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (59) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (60) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (61) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3680:34: note: (62) returning to 'libcrun_container_exec_with_options' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3680:32: note: (63) '*process.selinux_label' leaks here; was allocated at (58) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3683:35: warning: leak of '*process.apparmor_profile' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'cgroup_status_freep', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'libcrun_seccomp_gen_ctx_init', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3677:6: note: (50) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3679:18: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3682:10: note: (52) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3683:37: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3683:37: note: (54) calling 'xstrdup' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (55) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (56) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (58) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (59) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (60) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (61) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3683:37: note: (62) returning to 'libcrun_container_exec_with_options' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3683:35: note: (63) '*process.apparmor_profile' leaks here; was allocated at (58) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3709:27: warning: double 'close' of file descriptor 'pipefd0' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'cgroup_status_freep', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'libcrun_seccomp_gen_ctx_init', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (47) opened here as read-write <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (48) when 'pipe2' succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (49) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (51) calling 'initialize_security' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:641:1: note: (52) entry to 'initialize_security' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:645:6: note: (53) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:648:11: note: (54) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:656:6: note: (55) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:659:9: note: (56) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (57) returning to 'libcrun_container_exec_with_options' from 'initialize_security' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3694:6: note: (58) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3697:9: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3698:6: note: (60) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3702:47: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3703:6: note: (62) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (63) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (64) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (65) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3709:27: note: (66) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3709:7: note: (67) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (68) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3709:27: note: (69) second 'close' here; first 'close' was at (66) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3720:23: warning: double 'close' of file descriptor 'pipefd1' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3563:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3568:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3572:9: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:554:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3580:22: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3588:21: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'cgroup_status_freep', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3598:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3606:9: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] In function 'libcrun_seccomp_gen_ctx_init', inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3616:18: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:11: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3665:9: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (47) opened here as read-write <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3669:9: note: (48) when 'pipe2' succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3670:6: note: (49) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3672:33: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (51) calling 'initialize_security' from 'libcrun_container_exec_with_options' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:641:1: note: (52) entry to 'initialize_security' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:645:6: note: (53) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:648:11: note: (54) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:656:6: note: (55) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:659:9: note: (56) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3693:9: note: (57) returning to 'libcrun_container_exec_with_options' from 'initialize_security' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3694:6: note: (58) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3697:9: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3698:6: note: (60) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3702:47: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3703:6: note: (62) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (63) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3707:6: note: (64) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (65) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3720:23: note: (66) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3720:3: note: (67) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (68) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.c:3720:23: note: (69) second 'close' here; first 'close' was at (66) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /usr/include/sys/syslog.h:207, <--[gcc] In function 'write_log': from /usr/include/syslog.h:1, <--[gcc] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:41, <--[gcc] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:26, <--[gcc] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:27: <--[gcc] In function 'syslog', inlined from 'log_write_to_syslog' at src/libcrun/error.c:310:5: /usr/include/bits/syslog.h:37:3: warning: 'priority' may be used uninitialized [-Wmaybe-uninitialized] <--[gcc] 37 | __syslog_chk (__pri, __USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c: In function 'log_write_to_syslog': <--[gcc] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:294:7: note: 'priority' was declared here <--[gcc] 294 | int priority; | ^~~~~~~~ cc1: warning: leak of 'make_json_error(output, errno_, verbosity)' [CWE-401] [-Wanalyzer-malloc-leak] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:424:1: note: (1) entry to 'write_log' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:430:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:433:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:434:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:437:6: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:440:3: note: (6) following 'case 1:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:446:5: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:447:14: note: (8) calling 'make_json_error' from 'write_log' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:364:1: note: (9) entry to 'make_json_error' <--[csmock-gcc-wrapper] cc1: note: (10) following 'true' branch... cc1: note: (11) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:388:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:391:3: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:415:6: note: (14) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:416:11: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:416:11: note: (16) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:447:14: note: (17) returning to 'write_log' from 'make_json_error' <--[csmock-gcc-wrapper] cc1: note: (18) 'make_json_error(output, errno_, verbosity)' leaks here; was allocated at (16) /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c: In function 'log_write_to_syslog': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:308:5: warning: use of uninitialized value 'priority' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:294:7: note: (1) region created on stack here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:294:7: note: (2) capacity: 4 bytes <--[csmock-gcc-wrapper] cc1: note: (3) following 'false' branch... /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:307:6: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:307:6: note: (5) following 'true' branch (when 'errno_ == 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:308:5: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:308:5: note: (7) use of uninitialized value 'priority' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:310:5: warning: use of uninitialized value 'priority' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:294:7: note: (1) region created on stack here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:294:7: note: (2) capacity: 4 bytes <--[csmock-gcc-wrapper] cc1: note: (3) following 'false' branch... /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:307:6: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:307:6: note: (5) following 'false' branch (when 'errno_ != 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:310:5: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:310:5: note: (7) use of uninitialized value 'priority' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c: In function 'make_json_error': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:407:3: warning: use of uninitialized value 'level' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:366:15: note: (1) region created on stack here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:366:15: note: (2) capacity: 8 bytes <--[csmock-gcc-wrapper] cc1: note: (3) following 'false' branch... /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:379:24: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:388:6: note: (5) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:391:3: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:407:3: note: (7) use of uninitialized value 'level' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:407:3: warning: use of uninitialized value 'level' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:424:1: note: (1) entry to 'write_log' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:430:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:433:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:434:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:437:6: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:440:3: note: (6) following 'case 1:' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:446:5: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:447:14: note: (8) calling 'make_json_error' from 'write_log' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:364:1: note: (9) entry to 'make_json_error' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:366:15: note: (10) region created on stack here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:366:15: note: (11) capacity: 8 bytes <--[csmock-gcc-wrapper] cc1: note: (12) following 'false' branch... /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:379:24: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:388:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:391:3: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.c:407:3: note: (16) use of uninitialized value 'level' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/handler-utils.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c: In function 'libkrun_load': <--[gcc] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42, <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:262:9: warning: unused variable 'handle' [-Wunused-variable] <--[gcc] 262 | void *handle; | ^~~~~~ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c: In function 'libkrun_configure_container': <--[gcc] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:248:6: warning: 'create_sev' may be used uninitialized [-Wmaybe-uninitialized] <--[gcc] 248 | if (create_sev) | ^ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:180:8: note: 'create_sev' was declared here <--[gcc] 180 | bool create_sev; | ^~~~~~~~~~ from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/container.h:24, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/custom-handler.h:22, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:21: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'rootfsfd_cleanup' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:167:1: note: (1) entry to 'libkrun_configure_container' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:182:6: note: (2) following 'false' branch (when 'rootfs' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:186:37: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:186:37: note: (4) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:187:10: note: (5) assuming 'rootfsfd_cleanup' is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:187:10: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:191:6: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:177:21: note: (8) inlined call to 'cleanup_closep' from 'libkrun_configure_container' <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/custom-handler.h:23: <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'libkrun_configure_container' at src/libcrun/handlers/krun.c:177:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (9) following 'true' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (10) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:177:21: note: (11) inlined call to 'cleanup_closep' from 'libkrun_configure_container' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'libkrun_configure_container' at src/libcrun/handlers/krun.c:177:21: cc1: note: (12) calling 'cleanup_closep.part.0' from 'libkrun_configure_container' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (13) entry to 'cleanup_closep.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (14) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (15) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (16) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (17) second 'close' here; first 'close' was at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c: In function 'libkrun_configure_container': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:186:37: warning: leak of file descriptor 'open(rootfs, 2621440)' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:182:6: note: (1) following 'false' branch (when 'rootfs' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:186:37: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:186:37: note: (3) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:186:37: note: (4) 'open(rootfs, 2621440)' leaks here; was opened at (3) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:248:6: warning: use of uninitialized value 'create_sev' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:180:8: note: (1) region created on stack here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:180:8: note: (2) capacity: 1 byte <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:191:6: note: (3) following 'false' branch (when 'phase != 1')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:215:6: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:215:6: note: (5) following 'false' branch (when 'phase == 2')... <--[csmock-gcc-wrapper] cc1: note: (6) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:225:6: note: (7) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:235:11: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:236:6: note: (9) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:239:9: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:240:6: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:242:14: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:245:6: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:248:6: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/krun.c:248:6: note: (15) use of uninitialized value 'create_sev' here <--[csmock-gcc-wrapper] make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_la-spin.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-spin.Tpo -c -o src/libcrun/handlers/libcrun_la-spin.lo `test -f 'src/libcrun/handlers/spin.c' || echo './'`src/libcrun/handlers/spin.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_la-spin.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-spin.Tpo -c src/libcrun/handlers/spin.c -o src/libcrun/handlers/libcrun_la-spin.o mv -f src/libcrun/handlers/.deps/libcrun_la-spin.Tpo src/libcrun/handlers/.deps/libcrun_la-spin.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_la-mono.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-mono.Tpo -c -o src/libcrun/handlers/libcrun_la-mono.lo `test -f 'src/libcrun/handlers/mono.c' || echo './'`src/libcrun/handlers/mono.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_la-mono.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-mono.Tpo -c src/libcrun/handlers/mono.c -o src/libcrun/handlers/libcrun_la-mono.o mv -f src/libcrun/handlers/.deps/libcrun_la-mono.Tpo src/libcrun/handlers/.deps/libcrun_la-mono.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_la-wasmedge.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-wasmedge.Tpo -c -o src/libcrun/handlers/libcrun_la-wasmedge.lo `test -f 'src/libcrun/handlers/wasmedge.c' || echo './'`src/libcrun/handlers/wasmedge.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_la-wasmedge.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-wasmedge.Tpo -c src/libcrun/handlers/wasmedge.c -o src/libcrun/handlers/libcrun_la-wasmedge.o mv -f src/libcrun/handlers/.deps/libcrun_la-wasmedge.Tpo src/libcrun/handlers/.deps/libcrun_la-wasmedge.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-io_priority.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-io_priority.Tpo -c -o src/libcrun/libcrun_la-io_priority.lo `test -f 'src/libcrun/io_priority.c' || echo './'`src/libcrun/io_priority.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-io_priority.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-io_priority.Tpo -c src/libcrun/io_priority.c -o src/libcrun/libcrun_la-io_priority.o mv -f src/libcrun/.deps/libcrun_la-io_priority.Tpo src/libcrun/.deps/libcrun_la-io_priority.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_la-wasmer.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-wasmer.Tpo -c -o src/libcrun/handlers/libcrun_la-wasmer.lo `test -f 'src/libcrun/handlers/wasmer.c' || echo './'`src/libcrun/handlers/wasmer.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_la-wasmer.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-wasmer.Tpo -c src/libcrun/handlers/wasmer.c -o src/libcrun/handlers/libcrun_la-wasmer.o mv -f src/libcrun/handlers/.deps/libcrun_la-wasmer.Tpo src/libcrun/handlers/.deps/libcrun_la-wasmer.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_la-wasmtime.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-wasmtime.Tpo -c -o src/libcrun/handlers/libcrun_la-wasmtime.lo `test -f 'src/libcrun/handlers/wasmtime.c' || echo './'`src/libcrun/handlers/wasmtime.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_la-wasmtime.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-wasmtime.Tpo -c src/libcrun/handlers/wasmtime.c -o src/libcrun/handlers/libcrun_la-wasmtime.o mv -f src/libcrun/handlers/.deps/libcrun_la-wasmtime.Tpo src/libcrun/handlers/.deps/libcrun_la-wasmtime.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-mount_flags.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-mount_flags.Tpo -c -o src/libcrun/libcrun_la-mount_flags.lo `test -f 'src/libcrun/mount_flags.c' || echo './'`src/libcrun/mount_flags.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-mount_flags.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-mount_flags.Tpo -c src/libcrun/mount_flags.c -o src/libcrun/libcrun_la-mount_flags.o mv -f src/libcrun/.deps/libcrun_la-mount_flags.Tpo src/libcrun/.deps/libcrun_la-mount_flags.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-scheduler.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-scheduler.Tpo -c -o src/libcrun/libcrun_la-scheduler.lo `test -f 'src/libcrun/scheduler.c' || echo './'`src/libcrun/scheduler.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-scheduler.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-scheduler.Tpo -c src/libcrun/scheduler.c -o src/libcrun/libcrun_la-scheduler.o mv -f src/libcrun/.deps/libcrun_la-scheduler.Tpo src/libcrun/.deps/libcrun_la-scheduler.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-signals.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-signals.Tpo -c -o src/libcrun/libcrun_la-signals.lo `test -f 'src/libcrun/signals.c' || echo './'`src/libcrun/signals.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-signals.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-signals.Tpo -c src/libcrun/signals.c -o src/libcrun/libcrun_la-signals.o mv -f src/libcrun/.deps/libcrun_la-signals.Tpo src/libcrun/.deps/libcrun_la-signals.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-seccomp_notify.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-seccomp_notify.Tpo -c -o src/libcrun/libcrun_la-seccomp_notify.lo `test -f 'src/libcrun/seccomp_notify.c' || echo './'`src/libcrun/seccomp_notify.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-seccomp_notify.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-seccomp_notify.Tpo -c src/libcrun/seccomp_notify.c -o src/libcrun/libcrun_la-seccomp_notify.o mv -f src/libcrun/.deps/libcrun_la-seccomp_notify.Tpo src/libcrun/.deps/libcrun_la-seccomp_notify.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-terminal.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-terminal.Tpo -c -o src/libcrun/libcrun_la-terminal.lo `test -f 'src/libcrun/terminal.c' || echo './'`src/libcrun/terminal.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-terminal.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-terminal.Tpo -c src/libcrun/terminal.c -o src/libcrun/libcrun_la-terminal.o mv -f src/libcrun/.deps/libcrun_la-terminal.Tpo src/libcrun/.deps/libcrun_la-terminal.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-intelrdt.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-intelrdt.Tpo -c -o src/libcrun/libcrun_la-intelrdt.lo `test -f 'src/libcrun/intelrdt.c' || echo './'`src/libcrun/intelrdt.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-intelrdt.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-intelrdt.Tpo -c src/libcrun/intelrdt.c -o src/libcrun/libcrun_la-intelrdt.o mv -f src/libcrun/.deps/libcrun_la-intelrdt.Tpo src/libcrun/.deps/libcrun_la-intelrdt.Plo /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/spin.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/mono.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/wasmedge.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/io_priority.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/wasmer.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/handlers/wasmtime.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/mount_flags.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/scheduler.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/signals.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:32: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'libcrun_load_seccomp_notify_plugins': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc((long unsigned int)*(struct seccomp_notify_context_s *).sizes.seccomp_notif)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:83:1: note: (1) entry to 'libcrun_load_seccomp_notify_plugins' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:87:73: note: (2) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:87:73: note: (6) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:92:6: note: (7) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:34: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:15: note: (9) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (10) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (11) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (12) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:15: note: (15) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (16) 'xmalloc((long unsigned int)*(struct seccomp_notify_context_s *).sizes.seccomp_notif)' leaks here; was allocated at (11) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc((long unsigned int)*(struct seccomp_notify_context_s *).sizes.seccomp_notif_resp)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:83:1: note: (1) entry to 'libcrun_load_seccomp_notify_plugins' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:87:73: note: (2) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:87:73: note: (6) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:92:6: note: (7) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:34: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:15: note: (9) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (10) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:15: note: (13) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:96:16: note: (14) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (15) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (16) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (17) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:96:16: note: (20) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (21) 'xmalloc((long unsigned int)*(struct seccomp_notify_context_s *).sizes.seccomp_notif_resp)' leaks here; was allocated at (16) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0(48)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:83:1: note: (1) entry to 'libcrun_load_seccomp_notify_plugins' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:87:73: note: (2) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:87:73: note: (6) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:92:6: note: (7) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:34: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:15: note: (9) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (10) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:15: note: (13) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:96:16: note: (14) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (15) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:96:16: note: (18) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:102:18: note: (19) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (20) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:70:15: note: (21) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (22) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (23) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:102:18: note: (25) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:21: note: (26) 'xmalloc0(48)' leaks here; was allocated at (21) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(plugins)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:83:1: note: (1) entry to 'libcrun_load_seccomp_notify_plugins' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:87:73: note: (2) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:87:73: note: (6) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:92:6: note: (7) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:34: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:15: note: (9) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (10) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:95:15: note: (13) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:96:16: note: (14) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (15) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:96:16: note: (18) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:102:18: note: (19) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:68:1: note: (20) entry to 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:71:6: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:73:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:102:18: note: (23) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:104:7: note: (24) calling 'xstrdup' from 'libcrun_load_seccomp_notify_plugins' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (25) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (26) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (27) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (28) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (29) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (30) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (31) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp_notify.c:104:7: note: (32) returning to 'libcrun_load_seccomp_notify_plugins' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (33) 'xstrdup(plugins)' leaks here; was allocated at (28) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/linux.h:23, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:24: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:40:1: note: (1) entry to 'libcrun_new_terminal' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:44:26: note: (2) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:45:6: note: (3) assuming 'fd' is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:45:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:48:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:44:21: note: (6) inlined call to 'cleanup_closep' from 'libcrun_new_terminal' <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:25: <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'libcrun_new_terminal' at src/libcrun/terminal.c:44:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (7) following 'true' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (8) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:44:21: note: (9) inlined call to 'cleanup_closep' from 'libcrun_new_terminal' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'libcrun_new_terminal' at src/libcrun/terminal.c:44:21: cc1: note: (10) calling 'cleanup_closep.part.0' from 'libcrun_new_terminal' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (11) entry to 'cleanup_closep.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (12) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (13) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (14) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (15) second 'close' here; first 'close' was at (12) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:95:1: note: (1) entry to 'libcrun_set_stdio' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:98:26: note: (2) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:100:6: note: (3) assuming 'fd' is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:100:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (5) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:103:17: note: (6) following 'true' branch (when 'i != 3')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:105:13: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:98:21: note: (8) inlined call to 'cleanup_closep' from 'libcrun_set_stdio' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'libcrun_set_stdio' at src/libcrun/terminal.c:98:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (9) following 'true' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (10) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:98:21: note: (11) inlined call to 'cleanup_closep' from 'libcrun_set_stdio' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'libcrun_set_stdio' at src/libcrun/terminal.c:98:21: cc1: note: (12) calling 'cleanup_closep.part.0' from 'libcrun_set_stdio' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (13) entry to 'cleanup_closep.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (14) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (15) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (16) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (17) second 'close' here; first 'close' was at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'libcrun_set_stdio': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:106:1: warning: leak of file descriptor 'ret' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:95:1: note: (1) entry to 'libcrun_set_stdio' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:100:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:103:17: note: (4) following 'true' branch (when 'i != 3')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:105:13: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:105:13: note: (6) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:106:10: note: (7) assuming 'ret' is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:106:10: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:103:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:103:17: note: (10) following 'true' branch (when 'i != 3')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:105:13: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:105:13: note: (12) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:106:10: note: (13) assuming 'ret' is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:106:10: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:103:23: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:98:21: note: (16) inlined call to 'cleanup_closep' from 'libcrun_set_stdio' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'libcrun_set_stdio' at src/libcrun/terminal.c:98:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (17) following 'true' branch... <--[csmock-gcc-wrapper] In function 'libcrun_set_stdio': cc1: note: (18) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:106:1: note: (19) 'ret' leaks here; was opened at (12) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'libcrun_new_terminal': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(&buf)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:40:1: note: (1) entry to 'libcrun_new_terminal' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:45:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:48:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:49:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:52:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:53:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:56:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:56:10: note: (8) calling 'xstrdup' from 'libcrun_new_terminal' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (9) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (10) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (12) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (13) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (14) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (15) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/terminal.c:56:10: note: (16) returning to 'libcrun_new_terminal' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (17) 'xstrdup(&buf)' leaks here; was allocated at (12) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:23: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'resctl_update': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of 'intelrdt_clean_l3_cache_schema(l3_cache_schema)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:295:1: note: (1) entry to 'resctl_update' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:303:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:306:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:307:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:6: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:6: note: (6) following 'true' branch (when 'l3_cache_schema' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:26: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:26: note: (8) when 'strstr' returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:23: note: (9) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:311:49: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:311:49: note: (11) calling 'intelrdt_clean_l3_cache_schema' from 'resctl_update' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:210:1: note: (12) entry to 'intelrdt_clean_l3_cache_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:215:9: note: (13) calling 'xmalloc' from 'intelrdt_clean_l3_cache_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (14) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (15) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (16) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:215:9: note: (19) returning to 'intelrdt_clean_l3_cache_schema' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:311:49: note: (20) returning to 'resctl_update' from 'intelrdt_clean_l3_cache_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (21) 'intelrdt_clean_l3_cache_schema(l3_cache_schema)' leaks here; was allocated at (15) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'resctl_create': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of 'intelrdt_clean_l3_cache_schema(l3_cache_schema)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:233:1: note: (1) entry to 'resctl_create' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:241:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:243:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:243:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:246:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:247:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:250:11: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:251:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:6: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:6: note: (10) following 'true' branch (when 'l3_cache_schema' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:26: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:26: note: (12) when 'strstr' returns non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:23: note: (13) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:255:49: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:255:49: note: (15) calling 'intelrdt_clean_l3_cache_schema' from 'resctl_create' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:210:1: note: (16) entry to 'intelrdt_clean_l3_cache_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:215:9: note: (17) calling 'xmalloc' from 'intelrdt_clean_l3_cache_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (18) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (19) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (20) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:215:9: note: (23) returning to 'intelrdt_clean_l3_cache_schema' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:255:49: note: (24) returning to 'resctl_create' from 'intelrdt_clean_l3_cache_schema' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (25) 'intelrdt_clean_l3_cache_schema(l3_cache_schema)' leaks here; was allocated at (19) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'compare_rdt_configurations': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc((n_parts_a + 1) * 8)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:233:1: note: (1) entry to 'resctl_create' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:241:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:243:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:243:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:246:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:247:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:250:11: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:251:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:6: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:6: note: (10) following 'true' branch (when 'l3_cache_schema' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:26: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:26: note: (12) when 'strstr' returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:23: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:259:43: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:259:6: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:268:6: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:268:6: note: (17) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:269:12: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:269:12: note: (19) calling 'validate_rdt_configuration' from 'resctl_create' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:158:1: note: (20) entry to 'validate_rdt_configuration' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:166:6: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:169:9: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:170:6: note: (23) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:173:7: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:174:10: note: (25) following 'true' branch (when 'it' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:178:10: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:178:10: note: (27) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:179:15: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:179:15: note: (29) calling 'compare_rdt_configurations' from 'validate_rdt_configuration' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:98:1: note: (30) entry to 'compare_rdt_configurations' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:108:8: note: (31) when 'strchr' returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:109:19: note: (32) following 'false' branch (when 'it' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:111:8: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:111:8: note: (34) when 'strchr' returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:112:19: note: (35) following 'false' branch (when 'it' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:114:15: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:117:6: note: (37) following 'false' branch (when 'n_parts_a == n_parts_b')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:120:56: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:120:8: note: (39) calling 'xmalloc' from 'compare_rdt_configurations' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (40) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (41) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (42) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (43) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:120:8: note: (45) returning to 'compare_rdt_configurations' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (46) 'xmalloc((n_parts_a + 1) * 8)' leaks here; was allocated at (41) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/linux.h:23, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:22: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:295:1: note: (1) entry to 'resctl_update' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:303:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:306:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:307:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:6: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:6: note: (6) following 'true' branch (when 'l3_cache_schema' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:26: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:26: note: (8) when 'strstr' returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:23: note: (9) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:313:8: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:313:8: note: (11) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:314:6: note: (12) assuming 'fd' is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:314:6: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:317:9: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:299:21: note: (15) inlined call to 'cleanup_closep' from 'resctl_update' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'resctl_update' at src/libcrun/intelrdt.c:299:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (16) following 'true' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (17) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:299:21: note: (18) inlined call to 'cleanup_closep' from 'resctl_update' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'resctl_update' at src/libcrun/intelrdt.c:299:21: cc1: note: (19) calling 'cleanup_closep.part.0' from 'resctl_update' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (20) entry to 'cleanup_closep.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (21) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (22) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (23) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (24) second 'close' here; first 'close' was at (21) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'compare_rdt_configurations': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(a)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:233:1: note: (1) entry to 'resctl_create' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:241:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:243:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:243:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:246:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:247:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:250:11: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:251:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:6: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:6: note: (10) following 'true' branch (when 'l3_cache_schema' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:26: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:26: note: (12) when 'strstr' returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:23: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:259:43: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:259:6: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:268:6: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:268:6: note: (17) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:269:12: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:269:12: note: (19) calling 'validate_rdt_configuration' from 'resctl_create' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:158:1: note: (20) entry to 'validate_rdt_configuration' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:166:6: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:169:9: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:170:6: note: (23) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:173:7: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:174:10: note: (25) following 'true' branch (when 'it' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:178:10: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:178:10: note: (27) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:179:15: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:179:15: note: (29) calling 'compare_rdt_configurations' from 'validate_rdt_configuration' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:98:1: note: (30) entry to 'compare_rdt_configurations' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:108:8: note: (31) when 'strchr' returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:109:19: note: (32) following 'false' branch (when 'it' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:111:8: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:111:8: note: (34) when 'strchr' returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:112:19: note: (35) following 'false' branch (when 'it' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:114:15: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:117:6: note: (37) following 'false' branch (when 'n_parts_a == n_parts_b')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:120:56: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:120:8: note: (39) calling 'xmalloc' from 'compare_rdt_configurations' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (40) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (41) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:120:8: note: (43) returning to 'compare_rdt_configurations' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:122:18: note: (44) calling 'xstrdup' from 'compare_rdt_configurations' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (45) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (46) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (48) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (49) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (50) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (51) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:122:18: note: (52) returning to 'compare_rdt_configurations' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (53) 'xstrdup(a)' leaks here; was allocated at (48) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(b)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:233:1: note: (1) entry to 'resctl_create' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:241:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:243:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:243:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:246:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:247:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:250:11: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:251:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:6: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:6: note: (10) following 'true' branch (when 'l3_cache_schema' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:26: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:26: note: (12) when 'strstr' returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:254:23: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:259:43: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:259:6: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:268:6: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:268:6: note: (17) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:269:12: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:269:12: note: (19) calling 'validate_rdt_configuration' from 'resctl_create' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:158:1: note: (20) entry to 'validate_rdt_configuration' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:166:6: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:169:9: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:170:6: note: (23) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:173:7: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:174:10: note: (25) following 'true' branch (when 'it' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:178:10: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:178:10: note: (27) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:179:15: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:179:15: note: (29) calling 'compare_rdt_configurations' from 'validate_rdt_configuration' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:98:1: note: (30) entry to 'compare_rdt_configurations' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:108:8: note: (31) when 'strchr' returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:109:19: note: (32) following 'false' branch (when 'it' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:111:8: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:111:8: note: (34) when 'strchr' returns NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:112:19: note: (35) following 'false' branch (when 'it' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:114:15: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:117:6: note: (37) following 'false' branch (when 'n_parts_a == n_parts_b')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:120:56: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:120:8: note: (39) calling 'xmalloc' from 'compare_rdt_configurations' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (40) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (41) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:120:8: note: (43) returning to 'compare_rdt_configurations' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:122:18: note: (44) calling 'xstrdup' from 'compare_rdt_configurations' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (45) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (46) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (47) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (48) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (49) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:122:18: note: (50) returning to 'compare_rdt_configurations' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:136:18: note: (51) calling 'xstrdup' from 'compare_rdt_configurations' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (52) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (53) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (54) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (55) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (56) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (57) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (58) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:136:18: note: (59) returning to 'compare_rdt_configurations' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (60) 'xstrdup(b)' leaks here; was allocated at (55) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c: In function 'resctl_update': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:313:8: warning: leak of file descriptor 'open(path, 524289)' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:303:6: note: (1) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:306:9: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:307:6: note: (3) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:6: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:310:6: note: (5) following 'false' branch (when 'l3_cache_schema' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:313:8: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:313:8: note: (7) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/intelrdt.c:313:8: note: (8) 'open(path, 524289)' leaks here; was opened at (7) <--[csmock-gcc-wrapper] make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-seccomp.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-seccomp.Tpo -c -o src/libcrun/libcrun_la-seccomp.lo `test -f 'src/libcrun/seccomp.c' || echo './'`src/libcrun/seccomp.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-seccomp.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-seccomp.Tpo -c src/libcrun/seccomp.c -o src/libcrun/libcrun_la-seccomp.o mv -f src/libcrun/.deps/libcrun_la-seccomp.Tpo src/libcrun/.deps/libcrun_la-seccomp.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-status.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-status.Tpo -c -o src/libcrun/libcrun_la-status.lo `test -f 'src/libcrun/status.c' || echo './'`src/libcrun/status.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-status.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-status.Tpo -c src/libcrun/status.c -o src/libcrun/libcrun_la-status.o mv -f src/libcrun/.deps/libcrun_la-status.Tpo src/libcrun/.deps/libcrun_la-status.Plo /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:25: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'libcrun_copy_seccomp': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(in_size + 1)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:836:1: note: (1) entry to 'libcrun_copy_seccomp' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:845:14: note: (2) calling 'xmalloc' from 'libcrun_copy_seccomp' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (3) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (4) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (5) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:845:14: note: (8) returning to 'libcrun_copy_seccomp' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (9) 'xmalloc(in_size + 1)' leaks here; was allocated at (4) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'evict_cache': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: warning: leak of 'xrealloc(entries, (n_entries + 1) * 88)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:492:1: note: (1) entry to 'evict_cache' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:500:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:503:30: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:506:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (5) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:514:6: note: (6) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:522:11: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:523:10: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:526:20: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:529:14: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:531:25: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:554:25: note: (12) calling 'xrealloc' from 'evict_cache' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (13) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (14) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (15) when 'realloc' succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:554:25: note: (18) returning to 'evict_cache' from 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: note: (19) 'xrealloc(entries, (n_entries + 1) * 88)' leaks here; was allocated at (14) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'evict_cache' at src/libcrun/seccomp.c:516:40: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: warning: double-'free' of 'entries' [CWE-415] [-Wanalyzer-double-free] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function 'evict_cache': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:492:1: note: (1) entry to 'evict_cache' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:500:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:503:30: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:506:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (5) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:514:6: note: (6) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:522:11: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:523:10: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:526:20: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:529:14: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:531:25: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:554:25: note: (12) passing freed pointer 'entries' in call to 'xrealloc' from 'evict_cache' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:77:1: note: (13) entry to 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:79:15: note: (14) when 'realloc' succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:6: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:82:10: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:554:25: note: (17) returning to 'evict_cache' from 'xrealloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:517:24: note: (18) inlined call to 'cleanup_dirp' from 'evict_cache' <--[csmock-gcc-wrapper] In function 'cleanup_dirp', inlined from 'evict_cache' at src/libcrun/seccomp.c:517:24: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:197:6: note: (19) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:198:5: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function 'evict_cache': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:516:40: note: (21) inlined call to 'cleanup_freep' from 'evict_cache' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'evict_cache' at src/libcrun/seccomp.c:516:40: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (22) second 'free' here <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:23, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:23: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'dirfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:859:1: note: (1) entry to 'libcrun_open_seccomp_bpf' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:868:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:871:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:871:11: note: (4) calling 'open_rundir_dirfd' from 'libcrun_open_seccomp_bpf' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:455:1: note: (5) entry to 'open_rundir_dirfd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:461:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (7) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:31: note: (8) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:11: note: (9) assuming 'open(libcrun_get_state_directory(state_root, 0), 2686976)' is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:465:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:457:22: note: (11) inlined call to 'cleanup_freep' from 'open_rundir_dirfd' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'open_rundir_dirfd' at src/libcrun/seccomp.c:457:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:871:11: note: (13) returning to 'libcrun_open_seccomp_bpf' from 'open_rundir_dirfd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:872:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:876:49: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:861:21: note: (16) inlined call to 'cleanup_closep' from 'libcrun_open_seccomp_bpf' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'libcrun_open_seccomp_bpf' at src/libcrun/seccomp.c:861:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (17) following 'true' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (18) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:861:21: note: (19) inlined call to 'cleanup_closep' from 'libcrun_open_seccomp_bpf' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'libcrun_open_seccomp_bpf' at src/libcrun/seccomp.c:861:21: cc1: note: (20) calling 'cleanup_closep.part.0' from 'libcrun_open_seccomp_bpf' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (21) entry to 'cleanup_closep.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (22) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (23) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (24) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (25) second 'close' here; first 'close' was at (22) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'memfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:200:1: note: (1) entry to 'libcrun_apply_seccomp' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:214:6: note: (2) following 'false' branch (when 'infd >= 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:217:17: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:217:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:221:6: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:242:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:245:28: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:248:6: note: (8) following 'true' branch (when 'listener_receiver_fd >= 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:250:25: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:268:10: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:24: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:269:38: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:250:25: note: (12) inlined call to 'cleanup_closep' from 'libcrun_apply_seccomp' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'libcrun_apply_seccomp' at src/libcrun/seccomp.c:250:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (13) following 'true' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (14) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:250:25: note: (15) inlined call to 'cleanup_closep' from 'libcrun_apply_seccomp' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'libcrun_apply_seccomp' at src/libcrun/seccomp.c:250:25: cc1: note: (16) calling 'cleanup_closep.part.0' from 'libcrun_apply_seccomp' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (17) entry to 'cleanup_closep.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (18) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (19) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (20) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (21) second 'close' here; first 'close' was at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'dirfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:572:1: note: (1) entry to 'store_seccomp_cache' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:580:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:583:7: note: (3) inlined call to 'is_empty_string' from 'store_seccomp_cache' <--[csmock-gcc-wrapper] In function 'is_empty_string', inlined from 'store_seccomp_cache' at src/libcrun/seccomp.c:583:7: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:395:24: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:395:20: note: (5) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:586:39: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:586:11: note: (7) calling 'open_rundir_dirfd' from 'store_seccomp_cache' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:455:1: note: (8) entry to 'open_rundir_dirfd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:461:6: note: (9) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (10) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:31: note: (11) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:11: note: (12) assuming 'open(libcrun_get_state_directory(state_root, 0), 2686976)' is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:465:6: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:457:22: note: (14) inlined call to 'cleanup_freep' from 'open_rundir_dirfd' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'open_rundir_dirfd' at src/libcrun/seccomp.c:457:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:586:11: note: (16) returning to 'store_seccomp_cache' from 'open_rundir_dirfd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:587:6: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:591:48: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:577:21: note: (19) inlined call to 'cleanup_closep' from 'store_seccomp_cache' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'store_seccomp_cache' at src/libcrun/seccomp.c:577:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (20) following 'true' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (21) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:577:21: note: (22) inlined call to 'cleanup_closep' from 'store_seccomp_cache' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'store_seccomp_cache' at src/libcrun/seccomp.c:577:21: cc1: note: (23) calling 'cleanup_closep.part.0' from 'store_seccomp_cache' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (24) entry to 'cleanup_closep.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (25) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (26) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (28) second 'close' here; first 'close' was at (25) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'close_and_reset': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: warning: double 'close' of file descriptor 'memfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:200:1: note: (1) entry to 'libcrun_apply_seccomp' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:214:6: note: (2) following 'false' branch (when 'infd >= 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:217:17: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:217:6: note: (4) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:221:6: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:242:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:245:28: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:248:6: note: (8) following 'true' branch (when 'listener_receiver_fd >= 0')... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:250:25: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:261:10: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:267:13: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:268:10: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:271:13: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:273:10: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:277:7: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:277:7: note: (16) calling 'close_and_reset' from 'libcrun_apply_seccomp' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:202:1: note: (17) entry to 'close_and_reset' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:205:6: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (19) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (20) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:13: note: (21) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (22) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:207:33: note: (23) second 'close' here; first 'close' was at (20) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function 'libcrun_open_seccomp_bpf': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:461:21: warning: leak of file descriptor 'open_rundir_dirfd(*container_50->context.state_root, err)' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:859:1: note: (1) entry to 'libcrun_open_seccomp_bpf' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:868:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:871:11: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:871:11: note: (4) calling 'open_rundir_dirfd' from 'libcrun_open_seccomp_bpf' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:455:1: note: (5) entry to 'open_rundir_dirfd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:461:6: note: (6) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (7) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:31: note: (8) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:11: note: (9) assuming 'open(libcrun_get_state_directory(state_root, 0), 2686976)' is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:465:6: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:457:22: note: (11) inlined call to 'cleanup_freep' from 'open_rundir_dirfd' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'open_rundir_dirfd' at src/libcrun/seccomp.c:457:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function 'libcrun_open_seccomp_bpf': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:871:11: note: (13) returning to 'libcrun_open_seccomp_bpf' from 'open_rundir_dirfd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:461:21: note: (14) 'open_rundir_dirfd(*container_50->context.state_root, err)' leaks here; was opened at (8) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function 'store_seccomp_cache': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:461:21: warning: leak of file descriptor 'open_rundir_dirfd(*container_44->context.state_root, err)' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:572:1: note: (1) entry to 'store_seccomp_cache' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:580:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:583:7: note: (3) inlined call to 'is_empty_string' from 'store_seccomp_cache' <--[csmock-gcc-wrapper] In function 'is_empty_string', inlined from 'store_seccomp_cache' at src/libcrun/seccomp.c:583:7: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:395:24: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:395:20: note: (5) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function 'store_seccomp_cache': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:586:39: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:586:11: note: (7) calling 'open_rundir_dirfd' from 'store_seccomp_cache' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:455:1: note: (8) entry to 'open_rundir_dirfd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:461:6: note: (9) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (10) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:31: note: (11) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:11: note: (12) assuming 'open(libcrun_get_state_directory(state_root, 0), 2686976)' is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:465:6: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:457:22: note: (14) inlined call to 'cleanup_freep' from 'open_rundir_dirfd' <--[csmock-gcc-wrapper] In function 'cleanup_freep', inlined from 'open_rundir_dirfd' at src/libcrun/seccomp.c:457:22: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:89:3: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function 'store_seccomp_cache': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:586:11: note: (16) returning to 'store_seccomp_cache' from 'open_rundir_dirfd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:461:21: note: (17) 'open_rundir_dirfd(*container_44->context.state_root, err)' leaks here; was opened at (11) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function 'open_rundir_dirfd': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:31: warning: leak of file descriptor 'open(libcrun_get_state_directory(state_root, 0), 2686976)' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:461:6: note: (1) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (2) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:31: note: (3) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:31: note: (4) 'open(libcrun_get_state_directory(state_root, 0), 2686976)' leaks here; was opened at (3) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:465:6: warning: leak of file descriptor '' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:461:6: note: (1) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (2) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:31: note: (3) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:464:11: note: (4) assuming 'open(libcrun_get_state_directory(state_root, 0), 2686976)' is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:465:6: note: (5) '' leaks here; was opened at (3) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c: In function 'evict_cache': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:522:11: warning: leak of 'fdopendir(cache_dir_fd)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:500:6: note: (1) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:503:30: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:506:6: note: (3) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (4) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:514:6: note: (5) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:522:11: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:522:11: note: (7) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:522:11: note: (8) 'fdopendir(cache_dir_fd)' leaks here; was allocated at (7) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:562:7: warning: use of NULL 'entries' where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:500:6: note: (1) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:503:30: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:506:6: note: (3) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (4) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:514:6: note: (5) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:522:11: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:523:10: note: (7) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:526:20: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.c:562:7: note: (9) argument 1 ('entries') NULL where non-null expected <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/seccomp.h:22: <--[csmock-gcc-wrapper] /usr/include/stdlib.h:970:13: note: argument 1 of 'qsort' must be non-null <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c: In function 'libcrun_container_delete_status': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:557:1: warning: leak of file descriptor 'rundir_dfd' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:525:1: note: (1) entry to 'libcrun_container_delete_status' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:532:9: note: (2) calling 'get_run_directory' from 'libcrun_container_delete_status' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:52:33: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:56:14: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:63:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:532:9: note: (10) returning to 'libcrun_container_delete_status' from 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:533:6: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (12) ...to here In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/error.h:42, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.h:24, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:21: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:536:36: note: (13) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:536:16: note: (14) assuming 'open(get_run_directory(state_root), 2686976)' is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:537:6: note: (15) following 'true' branch... <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:24, <--[csmock-gcc-wrapper] from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:22: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:538:34: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:529:21: note: (17) inlined call to 'cleanup_closep' from 'libcrun_container_delete_status' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'libcrun_container_delete_status' at src/libcrun/status.c:529:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (18) following 'false' branch... <--[csmock-gcc-wrapper] In function 'libcrun_container_delete_status': cc1: note: (19) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:557:1: note: (20) 'rundir_dfd' leaks here; was opened at (13) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'libcrun_get_containers_list': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(16)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:575:1: note: (1) entry to 'libcrun_get_containers_list' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:579:29: note: (2) calling 'get_run_directory' from 'libcrun_get_containers_list' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:52:33: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:56:14: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:63:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:579:29: note: (10) returning to 'libcrun_get_containers_list' from 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:584:6: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:587:15: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:587:30: note: (13) following 'true' branch (when 'next' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:590:26: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:594:10: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:597:54: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:598:10: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:601:16: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:602:10: note: (19) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:607:10: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:607:10: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:613:24: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:613:24: note: (23) calling 'xmalloc' from 'libcrun_get_containers_list' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (24) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (25) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (26) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:613:24: note: (29) returning to 'libcrun_get_containers_list' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (30) 'xmalloc(16)' leaks here; was allocated at (25) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(16)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:575:1: note: (1) entry to 'libcrun_get_containers_list' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:579:29: note: (2) calling 'get_run_directory' from 'libcrun_get_containers_list' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:52:33: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:56:14: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:63:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:579:29: note: (10) returning to 'libcrun_get_containers_list' from 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:584:6: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:587:15: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:587:30: note: (13) following 'true' branch (when 'next' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:590:26: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:594:10: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:597:54: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:598:10: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:601:16: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:602:10: note: (19) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:607:10: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:607:10: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:613:24: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:613:24: note: (23) calling 'xmalloc' from 'libcrun_get_containers_list' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (24) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (25) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (26) assuming 'res' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (27) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:613:24: note: (29) returning to 'libcrun_get_containers_list' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:614:30: note: (30) calling 'xstrdup' from 'libcrun_get_containers_list' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (31) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (32) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (34) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (35) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:614:30: note: (36) returning to 'libcrun_get_containers_list' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (37) 'xmalloc(16)' leaks here; was allocated at (25) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:643:1: note: (1) entry to 'libcrun_check_pid_valid' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:649:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:652:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:652:9: note: (4) calling 'read_pid_stat' from 'libcrun_check_pid_valid' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:109:1: note: (5) entry to 'read_pid_stat' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:119:8: note: (6) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:120:6: note: (7) assuming 'fd' is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:120:6: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:131:9: note: (9) inlined call to 'read_all_fd' from 'read_pid_stat' <--[csmock-gcc-wrapper] In function 'read_all_fd', inlined from 'read_pid_stat' at src/libcrun/status.c:131:9: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:305:10: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:112:21: note: (11) inlined call to 'cleanup_closep' from 'read_pid_stat' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'read_pid_stat' at src/libcrun/status.c:112:21: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (13) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:112:21: note: (14) inlined call to 'cleanup_closep' from 'read_pid_stat' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'read_pid_stat' at src/libcrun/status.c:112:21: cc1: note: (15) calling 'cleanup_closep.part.0' from 'read_pid_stat' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (16) entry to 'cleanup_closep.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (17) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (18) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (19) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (20) second 'close' here; first 'close' was at (17) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'fd_cleanup' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:525:1: note: (1) entry to 'libcrun_container_delete_status' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:532:9: note: (2) calling 'get_run_directory' from 'libcrun_container_delete_status' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:52:33: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:53:10: note: (8) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:55:17: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:56:14: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:63:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:532:9: note: (12) returning to 'libcrun_container_delete_status' from 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:533:6: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (14) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:537:6: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:540:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:541:6: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:544:9: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:544:9: note: (19) calling 'rmdirfd' from 'libcrun_container_delete_status' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:467:1: note: (20) entry to 'rmdirfd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:472:46: note: (21) inlined call to 'cleanup_closep' from 'rmdirfd' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'rmdirfd' at src/libcrun/status.c:472:46: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (22) following 'true' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (23) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:472:46: note: (24) inlined call to 'cleanup_closep' from 'rmdirfd' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'rmdirfd' at src/libcrun/status.c:472:46: cc1: note: (25) calling 'cleanup_closep.part.0' from 'rmdirfd' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (26) entry to 'cleanup_closep.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (27) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: (28) following 'true' branch... <--[csmock-gcc-wrapper] cc1: note: (29) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (30) second 'close' here; first 'close' was at (27) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'cfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:525:1: note: (1) entry to 'libcrun_container_delete_status' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:532:9: note: (2) calling 'get_run_directory' from 'libcrun_container_delete_status' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crumake[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' depbase=`echo tests/init.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT tests/init.o -MD -MP -MF $depbase.Tpo -c -o tests/init.o tests/init.c &&\ mv -f $depbase.Tpo $depbase.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT tests/tests_libcrun_utils-tests_libcrun_utils.o -MD -MP -MF tests/.deps/tests_libcrun_utils-tests_libcrun_utils.Tpo -c -o tests/tests_libcrun_utils-tests_libcrun_utils.o `test -f 'tests/tests_libcrun_utils.c' || echo './'`tests/tests_libcrun_utils.c mv -f tests/.deps/tests_libcrun_utils-tests_libcrun_utils.Tpo tests/.deps/tests_libcrun_utils-tests_libcrun_utils.Po make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' rm -f libcrun_testing.a ar cru libcrun_testing.a src/libcrun/libcrun_testing_a-utils.o src/libcrun/blake3/libcrun_testing_a-blake3.o src/libcrun/blake3/libcrun_testing_a-blake3_portable.o src/libcrun/libcrun_testing_a-cgroup-cgroupfs.o src/libcrun/libcrun_testing_a-cgroup-resources.o src/libcrun/libcrun_testing_a-cgroup-setup.o src/libcrun/libcrun_testing_a-cgroup-systemd.o src/libcrun/libcrun_testing_a-cgroup-utils.o src/libcrun/libcrun_testing_a-cgroup.o src/libcrun/libcrun_testing_a-chroot_realpath.o src/libcrun/libcrun_testing_a-cloned_binary.o src/libcrun/libcrun_testing_a-container.o src/libcrun/libcrun_testing_a-criu.o src/libcrun/libcrun_testing_a-custom-handler.o src/libcrun/libcrun_testing_a-ebpf.o src/libcrun/libcrun_testing_a-error.o src/libcrun/handlers/libcrun_testing_a-handler-utils.o src/libcrun/handlers/libcrun_testing_a-krun.o src/libcrun/handlers/libcrun_testing_a-mono.o src/libcrun/handlers/libcrun_testing_a-spin.o src/libcrun/handlers/libcrun_testing_a-wasmedge.o src/libcrun/handlers/libcrun_testing_a-wasmer.o src/libcrun/handlers/libcrun_testing_a-wasmtime.o src/libcrun/libcrun_testing_a-intelrdt.o src/libcrun/libcrun_testing_a-io_priority.o src/libcrun/libcrun_testing_a-linux.o src/libcrun/libcrun_testing_a-mount_flags.o src/libcrun/libcrun_testing_a-scheduler.o src/libcrun/libcrun_testing_a-seccomp.o src/libcrun/libcrun_testing_a-seccomp_notify.o src/libcrun/libcrun_testing_a-signals.o src/libcrun/libcrun_testing_a-status.o src/libcrun/libcrun_testing_a-terminal.o libocispec/libocispec.la ranlib libcrun_testing.a make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=link gcc -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/tests_libcrun_errors tests/tests_libcrun_errors-tests_libcrun_errors.o libcrun_testing.a -lsystemd -lseccomp -lcap -lyajl libtool: link: gcc -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/tests_libcrun_errors tests/tests_libcrun_errors-tests_libcrun_errors.o libcrun_testing.a -lsystemd -lseccomp -lcap -lyajl make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=link gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -static-libgcc -all-static -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/init tests/init.o libtool: link: gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -static-libgcc -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/init tests/init.o make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=link gcc -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/tests_libcrun_intelrdt tests/tests_libcrun_intelrdt-tests_libcrun_intelrdt.o libcrun_testing.a -lsystemd -lseccomp -lcap -lyajl libtool: link: gcc -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/tests_libcrun_intelrdt tests/tests_libcrun_intelrdt-tests_libcrun_intelrdt.o libcrun_testing.a -lsystemd -lseccomp -lcap -lyajl make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=link gcc -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/tests_libcrun_utils tests/tests_libcrun_utils-tests_libcrun_utils.o libcrun_testing.a -lsystemd -lseccomp -lcap -lyajl libtool: link: gcc -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/tests_libcrun_utils tests/tests_libcrun_utils-tests_libcrun_utils.o libcrun_testing.a -lsystemd -lseccomp -lcap -lyajl make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=link gcc -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/tests_libcrun_fuzzer tests/tests_libcrun_fuzzer-tests_libcrun_fuzzer.o libcrun_testing.a -lsystemd -lseccomp -lcap -lyajl libocispec/libocispec.la libtool: link: gcc -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/tests_libcrun_fuzzer tests/tests_libcrun_fuzzer-tests_libcrun_fuzzer.o libcrun_testing.a -lsystemd -lseccomp -lcap libocispec/.libs/libocispec.a -lyajl make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' n-1.18.2/src/libcrun/status.c:52:33: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:53:10: note: (8) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:55:17: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:56:14: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:63:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:532:9: note: (12) returning to 'libcrun_container_delete_status' from 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:533:6: note: (13) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (14) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:537:6: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:540:9: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:541:6: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:544:9: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:544:9: note: (19) calling 'rmdirfd' from 'libcrun_container_delete_status' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:467:1: note: (20) entry to 'rmdirfd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:475:6: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:479:14: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:481:26: note: (23) following 'true' branch (when 'de' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:483:22: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:483:10: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:487:13: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:488:10: note: (27) following 'true' branch (when 'ret < 0')... <--[csmock-gcc-wrapper] cc1: note: (28) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:504:14: note: (29) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:506:33: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:509:18: note: (31) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:512:21: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:512:21: note: (33) calling 'rmdirfd' from 'rmdirfd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:467:1: note: (34) entry to 'rmdirfd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:475:6: note: (35) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:476:34: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:472:46: note: (37) inlined call to 'cleanup_closep' from 'rmdirfd' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'rmdirfd' at src/libcrun/status.c:472:46: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (38) following 'true' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (39) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:472:46: note: (40) inlined call to 'cleanup_closep' from 'rmdirfd' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'rmdirfd' at src/libcrun/status.c:472:46: cc1: note: (41) calling 'cleanup_closep.part.0' from 'rmdirfd' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (42) entry to 'cleanup_closep.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (43) first 'close' here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:472:46: note: (44) inlined call to 'cleanup_closep' from 'rmdirfd' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'rmdirfd' at src/libcrun/status.c:472:46: cc1: note: (45) returning to 'rmdirfd' from 'cleanup_closep.part.0' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:470:20: note: (46) inlined call to 'cleanup_dirp' from 'rmdirfd' <--[csmock-gcc-wrapper] In function 'cleanup_dirp', inlined from 'rmdirfd' at src/libcrun/status.c:470:20: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:197:6: note: (47) following 'false' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (48) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:512:21: note: (49) returning to 'rmdirfd' from 'rmdirfd' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:506:33: note: (50) inlined call to 'cleanup_closep' from 'rmdirfd' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'rmdirfd' at src/libcrun/status.c:506:33: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (51) following 'true' branch... <--[csmock-gcc-wrapper] In function 'cleanup_closep.part.0': cc1: note: (52) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:506:33: note: (53) inlined call to 'cleanup_closep' from 'rmdirfd' <--[csmock-gcc-wrapper] In function 'cleanup_closep', inlined from 'rmdirfd' at src/libcrun/status.c:506:33: cc1: note: (54) calling 'cleanup_closep.part.0' from 'rmdirfd' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (55) entry to 'cleanup_closep.part.0' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (56) second 'close' here; first 'close' was at (43) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function 'libcrun_get_containers_list': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(&*next.d_name)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:575:1: note: (1) entry to 'libcrun_get_containers_list' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:579:29: note: (2) calling 'get_run_directory' from 'libcrun_get_containers_list' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:52:33: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:56:14: note: (8) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:63:12: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:579:29: note: (10) returning to 'libcrun_get_containers_list' from 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:584:6: note: (11) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:587:15: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:587:30: note: (13) following 'true' branch (when 'next' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:590:26: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:594:10: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:597:54: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:598:10: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:601:16: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:602:10: note: (19) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:607:10: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:607:10: note: (21) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:613:24: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:613:24: note: (23) calling 'xmalloc' from 'libcrun_get_containers_list' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (24) entry to 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (25) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:613:24: note: (27) returning to 'libcrun_get_containers_list' from 'xmalloc' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:614:30: note: (28) calling 'xstrdup' from 'libcrun_get_containers_list' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (29) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (30) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (32) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (33) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (34) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (35) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:614:30: note: (36) returning to 'libcrun_get_containers_list' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (37) 'xstrdup(&*next.d_name)' leaks here; was allocated at (32) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c: In function 'libcrun_container_delete_status': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: warning: leak of 'get_run_directory(state_root)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:525:1: note: (1) entry to 'libcrun_container_delete_status' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:532:9: note: (2) calling 'get_run_directory' from 'libcrun_container_delete_status' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (4) following 'true' branch (when 'state_root' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:49:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:49:12: note: (6) calling 'xstrdup' from 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:215:1: note: (7) entry to 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:218:6: note: (8) following 'false' branch (when 'str' is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:221:9: note: (10) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (11) assuming 'ret' is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: note: (12) following 'false' branch (when 'ret' is non-NULL)... <--[csmock-gcc-wrapper] cc1: note: (13) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:49:12: note: (14) returning to 'get_run_directory' from 'xstrdup' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:63:12: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:63:6: note: (17) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:66:9: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:532:9: note: (19) returning to 'libcrun_container_delete_status' from 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (20) 'get_run_directory(state_root)' leaks here; was allocated at (10) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c: In function 'read_pid_stat': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:119:8: warning: leak of file descriptor 'open(&pid_stat_file, 524288)' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:643:1: note: (1) entry to 'libcrun_check_pid_valid' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:649:6: note: (2) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:652:9: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:652:9: note: (4) calling 'read_pid_stat' from 'libcrun_check_pid_valid' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:109:1: note: (5) entry to 'read_pid_stat' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:119:8: note: (6) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:119:8: note: (7) 'open(&pid_stat_file, 524288)' leaks here; was opened at (6) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c: In function 'rmdirfd': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:474:7: warning: leak of 'fdopendir(fd)' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:474:7: note: (1) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:474:7: note: (2) 'fdopendir(fd)' leaks here; was allocated at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c: In function 'libcrun_container_delete_status': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:536:36: warning: leak of file descriptor 'open(get_run_directory(state_root), 2686976)' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:525:1: note: (1) entry to 'libcrun_container_delete_status' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:532:9: note: (2) calling 'get_run_directory' from 'libcrun_container_delete_status' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:52:33: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:53:10: note: (8) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:55:17: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:56:14: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:63:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:67:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:69:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:532:9: note: (14) returning to 'libcrun_container_delete_status' from 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:533:6: note: (15) following 'false' branch... <--[csmock-gcc-wrapper] cc1: note: (16) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:536:36: note: (17) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:536:36: note: (18) 'open(get_run_directory(state_root), 2686976)' leaks here; was opened at (17) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c: In function 'libcrun_get_containers_list': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:583:9: warning: use of NULL where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:575:1: note: (1) entry to 'libcrun_get_containers_list' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:579:29: note: (2) calling 'get_run_directory' from 'libcrun_get_containers_list' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:45:9: note: (4) 'root' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (5) following 'false' branch (when 'state_root' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (7) 'root' is NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (8) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:52:33: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:53:10: note: (10) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:55:17: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:56:14: note: (12) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:58:15: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:579:29: note: (14) returning to 'libcrun_get_containers_list' from 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:583:9: note: (15) argument 1 ('get_run_directory(state_root)') NULL where non-null expected <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:27: <--[csmock-gcc-wrapper] /usr/include/dirent.h:141:13: note: argument 1 of 'opendir' must be non-null <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:583:9: warning: leak of 'opendir(get_run_directory(state_root))' [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:575:1: note: (1) entry to 'libcrun_get_containers_list' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:579:29: note: (2) calling 'get_run_directory' from 'libcrun_get_containers_list' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:52:33: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:53:10: note: (8) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:55:17: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:56:14: note: (10) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:63:12: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:67:6: note: (12) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:69:10: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:579:29: note: (14) returning to 'libcrun_get_containers_list' from 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:583:9: note: (15) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:583:9: note: (16) 'opendir(get_run_directory(state_root))' leaks here; was allocated at (15) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c: In function 'libcrun_status_create_exec_fifo': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:693:8: warning: leak of file descriptor 'open(fifo_path, 526336)' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:678:1: note: (1) entry to 'libcrun_status_create_exec_fifo' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:680:34: note: (2) calling 'libcrun_get_state_directory' from 'libcrun_status_create_exec_fifo' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:73:1: note: (3) entry to 'libcrun_get_state_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:78:29: note: (4) calling 'get_run_directory' from 'libcrun_get_state_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (5) entry to 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (6) following 'false' branch (when 'state_root' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (8) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:52:33: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:78:29: note: (10) returning to 'libcrun_get_state_directory' from 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:81:6: note: (11) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:83:7: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:680:34: note: (13) returning to 'libcrun_status_create_exec_fifo' from 'libcrun_get_state_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:685:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:688:3: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:690:6: note: (16) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:693:8: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:693:8: note: (18) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:693:8: note: (19) 'open(fifo_path, 526336)' leaks here; was opened at (18) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c: In function 'libcrun_status_write_exec_fifo': <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:715:8: warning: leak of file descriptor 'open(fifo_path, 524289)' [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:701:1: note: (1) entry to 'libcrun_status_write_exec_fifo' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:703:34: note: (2) calling 'libcrun_get_state_directory' from 'libcrun_status_write_exec_fifo' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:73:1: note: (3) entry to 'libcrun_get_state_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:78:29: note: (4) calling 'get_run_directory' from 'libcrun_get_state_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:42:1: note: (5) entry to 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:48:6: note: (6) following 'false' branch (when 'state_root' is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:12: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:50:6: note: (8) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:52:33: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:78:29: note: (10) returning to 'libcrun_get_state_directory' from 'get_run_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:81:6: note: (11) following 'true' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:83:7: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:703:34: note: (13) returning to 'libcrun_status_write_exec_fifo' from 'libcrun_get_state_directory' <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:712:6: note: (14) following 'false' branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:715:8: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:715:8: note: (16) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/status.c:715:8: note: (17) 'open(fifo_path, 524289)' leaks here; was opened at (16) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c: In function ‘main’: <--[gcc] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:305:3: warning: ‘strncpy’ specified bound 108 equals destination size [-Wstringop-truncation] <--[gcc] 305 | strncpy (notify_socket_unix_name.sun_path, notify_socket_name, | ^ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c: In function ‘write_to’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:165:6: warning: leak of file descriptor ‘open(path, 1)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:161:12: note: (1) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:162:6: note: (2) assuming ‘open(path, 1)’ is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:162:6: note: (3) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:165:7: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:165:6: note: (5) ‘open(path, 1)’ leaks here; was opened at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c: In function ‘check_idmapped_mounts’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:209:6: warning: leak of file descriptor ‘open(&proc_path, 0)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:176:1: note: (1) entry to ‘check_idmapped_mounts’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:187:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:189:6: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:189:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:197:3: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:198:3: note: (6) calling ‘write_to’ from ‘check_idmapped_mounts’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:159:1: note: (7) entry to ‘write_to’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:162:6: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:165:7: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:165:6: note: (10) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:167:7: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:167:6: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:169:1: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:198:3: note: (14) returning to ‘check_idmapped_mounts’ from ‘write_to’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:200:3: note: (15) calling ‘write_to’ from ‘check_idmapped_mounts’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:159:1: note: (16) entry to ‘write_to’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:162:6: note: (17) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:165:7: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:165:6: note: (19) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:167:7: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:167:6: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:169:1: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:200:3: note: (23) returning to ‘check_idmapped_mounts’ from ‘write_to’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:203:8: note: (24) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:204:6: note: (25) assuming ‘open(&proc_path, 0)’ is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:204:6: note: (26) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:207:18: note: (27) inlined call to ‘syscall_open_tree’ from ‘check_idmapped_mounts’ <--[csmock-gcc-wrapper] In function ‘syscall_open_tree’, inlined from ‘check_idmapped_mounts’ at tests/init.c:207:18: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:132:16: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c: In function ‘check_idmapped_mounts’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:209:6: note: (29) ‘open(&proc_path, 0)’ leaks here; was opened at (24) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c: In function ‘cat’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:241:11: warning: leak of FILE ‘fopen(file, "rbe")’ [CWE-775] [-Wanalyzer-file-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:224:13: note: (1) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:226:6: note: (2) assuming ‘fopen(file, "rbe")’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:226:6: note: (3) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (4) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:231:10: note: (5) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:241:11: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:241:11: note: (7) ‘fopen(file, "rbe")’ leaks here; was opened at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:241:11: warning: leak of ‘fopen(file, "rbe")’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:224:13: note: (1) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:226:6: note: (2) assuming ‘fopen(file, "rbe")’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:226:6: note: (3) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (4) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:231:10: note: (5) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:241:11: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:241:11: note: (7) ‘fopen(file, "rbe")’ leaks here; was allocated at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c: In function ‘main’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:627:10: warning: leak of file descriptor ‘open(&path, 1)’ [CWE-775] [-Wanalyzer-fd-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:380:6: note: (1) following ‘false’ branch (when ‘argc > 1’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:383:7: note: (2) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:383:6: note: (3) following ‘false’ branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:388:7: note: (4) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:388:6: note: (5) following ‘false’ branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:396:7: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:396:6: note: (7) following ‘false’ branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:404:7: note: (8) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:404:6: note: (9) following ‘false’ branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:417:7: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:417:6: note: (11) following ‘false’ branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:424:7: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:424:6: note: (13) following ‘false’ branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:441:7: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:441:6: note: (15) following ‘false’ branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:448:7: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:448:6: note: (17) following ‘false’ branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:458:7: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:458:6: note: (19) following ‘false’ branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:503:7: note: (20) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:503:6: note: (21) following ‘false’ branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:516:7: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:516:6: note: (23) following ‘false’ branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:529:7: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:529:6: note: (25) following ‘false’ branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:539:7: note: (26) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:539:6: note: (27) following ‘false’ branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:552:7: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:552:6: note: (29) following ‘false’ branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:566:7: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:566:6: note: (31) following ‘false’ branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:580:7: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:580:6: note: (33) following ‘false’ branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:590:7: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:590:6: note: (35) following ‘false’ branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:597:7: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:597:6: note: (37) following ‘false’ branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:601:7: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:601:6: note: (39) following ‘false’ branch (when the strings are non-equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:607:7: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:607:6: note: (41) following ‘true’ branch (when the strings are equal)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:613:10: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:613:10: note: (43) following ‘false’ branch (when ‘argc != 2’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:616:7: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:618:10: note: (45) following ‘false’ branch (when ‘ret >= 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:621:7: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:623:12: note: (47) opened here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:624:10: note: (48) assuming ‘open(&path, 1)’ is a valid file descriptor (>= 0) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:624:10: note: (49) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:626:13: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/init.c:627:10: note: (51) ‘open(&path, 1)’ leaks here; was opened at (47) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] In file included from /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:20: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘test_write_read_file’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning: leak of ‘xmalloc(1024)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:190:1: note: (1) entry to ‘test_write_read_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:198:32: note: (2) calling ‘xmalloc’ from ‘test_write_read_file’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:59:1: note: (3) entry to ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:61:15: note: (4) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (5) assuming ‘res’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:6: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:64:10: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:198:32: note: (8) returning to ‘test_write_read_file’ from ‘xmalloc’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: note: (9) ‘xmalloc(1024)’ leaks here; was allocated at (4) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘*(void *)p’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:39:32: note: in definition of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (1) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:39:32: note: in definition of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:40:27: note: (2) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: in expansion of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] cc1: note: (3) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (4) second ‘close’ here; first ‘close’ was at (1) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:39:32: note: in definition of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘pipefd1’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:39:32: note: in definition of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:74:1: note: (1) entry to ‘test_send_receive_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:82:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:85:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:88:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:91:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:92:6: note: (6) following ‘false’ branch (when ‘pid >= 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:95:6: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:95:6: note: (8) following ‘true’ branch (when ‘pid != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:97:25: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:101:11: note: (10) opened here as read-write <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:101:11: note: (11) when ‘pipe’ succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:101:10: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:104:22: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:98:25: note: (14) inlined call to ‘cleanup_closep’ from ‘test_send_receive_fd’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘test_send_receive_fd’ at tests/tests_libcrun_utils.c:98:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (15) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (16) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:98:25: note: (17) inlined call to ‘cleanup_closep’ from ‘test_send_receive_fd’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘test_send_receive_fd’ at tests/tests_libcrun_utils.c:98:25: cc1: note: (18) calling ‘cleanup_closep.part.0’ from ‘test_send_receive_fd’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (19) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (20) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:39:32: note: in definition of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:40:27: note: (21) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: in expansion of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] cc1: note: (22) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (23) second ‘close’ here; first ‘close’ was at (20) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:39:32: note: in definition of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: warning: double ‘close’ of file descriptor ‘pipefd0’ [CWE-1341] [-Wanalyzer-fd-double-close] <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:39:32: note: in definition of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:74:1: note: (1) entry to ‘test_send_receive_fd’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:82:6: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:85:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:88:6: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:91:9: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:92:6: note: (6) following ‘false’ branch (when ‘pid >= 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:95:6: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:95:6: note: (8) following ‘true’ branch (when ‘pid != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:97:25: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:101:11: note: (10) opened here as read-write <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:101:11: note: (11) when ‘pipe’ succeeds <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:101:10: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:104:22: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:98:25: note: (14) inlined call to ‘cleanup_closep’ from ‘test_send_receive_fd’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘test_send_receive_fd’ at tests/tests_libcrun_utils.c:98:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:97:25: note: (16) inlined call to ‘cleanup_closep’ from ‘test_send_receive_fd’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘test_send_receive_fd’ at tests/tests_libcrun_utils.c:97:25: /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:7: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:104:6: note: (18) following ‘true’ branch... <--[csmock-gcc-wrapper] In function ‘cleanup_closep.part.0’: cc1: note: (19) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/tests/tests_libcrun_utils.c:97:25: note: (20) inlined call to ‘cleanup_closep’ from ‘test_send_receive_fd’ <--[csmock-gcc-wrapper] In function ‘cleanup_closep’, inlined from ‘test_send_receive_fd’ at tests/tests_libcrun_utils.c:97:25: cc1: note: (21) calling ‘cleanup_closep.part.0’ from ‘test_send_receive_fd’ /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: In function ‘cleanup_closep.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:101:1: note: (22) entry to ‘cleanup_closep.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (23) first ‘close’ here <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:39:32: note: in definition of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:40:27: note: (24) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:5: note: in expansion of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] cc1: note: (25) ...to here /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:105:25: note: (26) second ‘close’ here; first ‘close’ was at (23) <--[csmock-gcc-wrapper] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:39:32: note: in definition of macro ‘TEMP_FAILURE_RETRY’ <--[csmock-gcc-wrapper] make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-linux.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-linux.Tpo -c -o src/libcrun/libcrun_la-linux.lo `test -f 'src/libcrun/linux.c' || echo './'`src/libcrun/linux.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-linux.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-linux.Tpo -c src/libcrun/linux.c -o src/libcrun/libcrun_la-linux.o mv -f src/libcrun/.deps/libcrun_la-linux.Tpo src/libcrun/.deps/libcrun_la-linux.Plo make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/linux.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/linux.c:3680: error: uninitvar(CWE-457): Uninitialized variable: code <--[cppcheck] /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/src/libcrun/linux.c: internal warning: child 12662 timed out after 30s <--[csmock-gcc-wrapper] cswrap: error: child 12662 (/usr/bin/csmock-gcc-wrapper) terminated by signal 15 (timed out) make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=link gcc -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,--version-script=/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libcrun.lds -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o libcrun.la -rpath /usr/local/lib src/libcrun/libcrun_la-utils.lo src/libcrun/blake3/libcrun_la-blake3.lo src/libcrun/blake3/libcrun_la-blake3_portable.lo src/libcrun/libcrun_la-cgroup-cgroupfs.lo src/libcrun/libcrun_la-cgroup-resources.lo src/libcrun/libcrun_la-cgroup-setup.lo src/libcrun/libcrun_la-cgroup-systemd.lo src/libcrun/libcrun_la-cgroup-utils.lo src/libcrun/libcrun_la-cgroup.lo src/libcrun/libcrun_la-chroot_realpath.lo src/libcrun/libcrun_la-cloned_binary.lo src/libcrun/libcrun_la-container.lo src/libcrun/libcrun_la-criu.lo src/libcrun/libcrun_la-custom-handler.lo src/libcrun/libcrun_la-ebpf.lo src/libcrun/libcrun_la-error.lo src/libcrun/handlers/libcrun_la-handler-utils.lo src/libcrun/handlers/libcrun_la-krun.lo src/libcrun/handlers/libcrun_la-mono.lo src/libcrun/handlers/libcrun_la-spin.lo src/libcrun/handlers/libcrun_la-wasmedge.lo src/libcrun/handlers/libcrun_la-wasmer.lo src/libcrun/handlers/libcrun_la-wasmtime.lo src/libcrun/libcrun_la-intelrdt.lo src/libcrun/libcrun_la-io_priority.lo src/libcrun/libcrun_la-linux.lo src/libcrun/libcrun_la-mount_flags.lo src/libcrun/libcrun_la-scheduler.lo src/libcrun/libcrun_la-seccomp.lo src/libcrun/libcrun_la-seccomp_notify.lo src/libcrun/libcrun_la-signals.lo src/libcrun/libcrun_la-status.lo src/libcrun/libcrun_la-terminal.lo libocispec/libocispec.la -lsystemd -lseccomp -lcap -lyajl libtool: link: (cd .libs/libcrun.lax/libocispec.a && ar x "/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/.libs/libocispec.a") libtool: link: ar cr .libs/libcrun.a src/libcrun/libcrun_la-utils.o src/libcrun/blake3/libcrun_la-blake3.o src/libcrun/blake3/libcrun_la-blake3_portable.o src/libcrun/libcrun_la-cgroup-cgroupfs.o src/libcrun/libcrun_la-cgroup-resources.o src/libcrun/libcrun_la-cgroup-setup.o src/libcrun/libcrun_la-cgroup-systemd.o src/libcrun/libcrun_la-cgroup-utils.o src/libcrun/libcrun_la-cgroup.o src/libcrun/libcrun_la-chroot_realpath.o src/libcrun/libcrun_la-cloned_binary.o src/libcrun/libcrun_la-container.o src/libcrun/libcrun_la-criu.o src/libcrun/libcrun_la-custom-handler.o src/libcrun/libcrun_la-ebpf.o src/libcrun/libcrun_la-error.o src/libcrun/handlers/libcrun_la-handler-utils.o src/libcrun/handlers/libcrun_la-krun.o src/libcrun/handlers/libcrun_la-mono.o src/libcrun/handlers/libcrun_la-spin.o src/libcrun/handlers/libcrun_la-wasmedge.o src/libcrun/handlers/libcrun_la-wasmer.o src/libcrun/handlers/libcrun_la-wasmtime.o src/libcrun/libcrun_la-intelrdt.o src/libcrun/libcrun_la-io_priority.o src/libcrun/libcrun_la-linux.o src/libcrun/libcrun_la-mount_flags.o src/libcrun/libcrun_la-scheduler.o src/libcrun/libcrun_la-seccomp.o src/libcrun/libcrun_la-seccomp_notify.o src/libcrun/libcrun_la-signals.o src/libcrun/libcrun_la-status.o src/libcrun/libcrun_la-terminal.o .libs/libcrun.lax/libocispec.a/basic_test_double_array.o .libs/libcrun.lax/libocispec.a/basic_test_double_array_item.o .libs/libcrun.lax/libocispec.a/basic_test_top_array_int.o .libs/libcrun.lax/libocispec.a/basic_test_top_array_string.o .libs/libcrun.lax/libocispec.a/basic_test_top_double_array_int.o .libs/libcrun.lax/libocispec.a/basic_test_top_double_array_obj.o .libs/libcrun.lax/libocispec.a/basic_test_top_double_array_refobj.o .libs/libcrun.lax/libocispec.a/basic_test_top_double_array_string.o .libs/libcrun.lax/libocispec.a/image_manifest_items_image_manifest_items_schema.o .libs/libcrun.lax/libocispec.a/image_spec_schema_config_schema.o .libs/libcrun.lax/libocispec.a/image_spec_schema_content_descriptor.o .libs/libcrun.lax/libocispec.a/image_spec_schema_defs.o .libs/libcrun.lax/libocispec.a/image_spec_schema_defs_descriptor.o .libs/libcrun.lax/libocispec.a/image_spec_schema_image_index_schema.o .libs/libcrun.lax/libocispec.a/image_spec_schema_image_layout_schema.o .libs/libcrun.lax/libocispec.a/image_spec_schema_image_manifest_schema.o .libs/libcrun.lax/libocispec.a/json_common.o .libs/libcrun.lax/libocispec.a/read-file.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_config_linux.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_config_schema.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_config_solaris.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_config_vm.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_config_windows.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_config_zos.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_defs.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_defs_linux.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_defs_vm.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_defs_windows.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_defs_zos.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_features_linux.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_features_schema.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_state_schema.o libtool: link: ranlib .libs/libcrun.a libtool: link: rm -fr .libs/libcrun.lax libtool: link: ( cd ".libs" && rm -f "libcrun.la" && ln -s "../libcrun.la" "libcrun.la" ) make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /bin/sh ./libtool --tag=CC --mode=link gcc -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o crun src/crun-crun.o src/crun-run.o src/crun-delete.o src/crun-kill.o src/crun-pause.o src/crun-unpause.o src/crun-oci_features.o src/crun-spec.o src/crun-exec.o src/crun-list.o src/crun-create.o src/crun-start.o src/crun-state.o src/crun-update.o src/crun-ps.o src/crun-checkpoint.o src/crun-restore.o src/libcrun/crun-cloned_binary.o libcrun.la -lsystemd -lseccomp -lcap -lyajl libtool: link: gcc -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -I /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/src -D CRUN_LIBDIR=\"/usr/local/lib/crun\" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o crun src/crun-crun.o src/crun-run.o src/crun-delete.o src/crun-kill.o src/crun-pause.o src/crun-unpause.o src/crun-oci_features.o src/crun-spec.o src/crun-exec.o src/crun-list.o src/crun-create.o src/crun-start.o src/crun-state.o src/crun-update.o src/crun-ps.o src/crun-checkpoint.o src/crun-restore.o src/libcrun/crun-cloned_binary.o ./.libs/libcrun.a -lsystemd -lseccomp -lcap -lyajl make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' + RPM_EC=0 ++ jobs -p + exit 0 Finish: chroot ['/bin/su mockbuild -l -c "PATH=/usr/lib64/cscppc:/usr/lib64/csgcca:/usr/lib64/cswrap:\\$PATH CSWRAP_CAP_FILE=\\$\'/builddir/cswrap-capture.err\' CSWRAP_TIMEOUT=\\$\'30\' CSWRAP_TIMEOUT_FOR=\\$\'::cppcheck:csmock-gcc-wrapper\' CSWRAP_ADD_CFLAGS=\\$\'-Wno-unknown-pragmas\' CSWRAP_DEL_CFLAGS=\\$\'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register\' CSWRAP_ADD_CXXFLAGS=\\$\'\' CSWRAP_DEL_CXXFLAGS=\\$\'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register\' CSGCCA_ADD_OPTS=\\$\'-fdiagnostics-text-art-charset=none\' CSGCCA_ANALYZER_BIN=\\$\'csmock-gcc-wrapper\' sh -c \\"rpmbuild -bc --nodeps --short-circuit /builddir/build/SPECS/crun.spec \'--define\' \'_unpackaged_files_terminate_build 0\' \'--define\' \'apidocs 0\' \'--define\' \'with_publican 0\' \'--without\' \'docs\' \'--without\' \'langpacks\' \'--define\' \'libguestfs_runtests 0\' \'--define\' \'runselftest 0\' \'--without\' \'test\' \'--without\' \'testsuite\'\\""'] Finish: run >>> 2024-11-12 23:33:29 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--chroot" "rpmbuild --nocheck" >>> 2024-11-12 23:33:30 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--chroot" "/bin/su mockbuild -l -c \"PATH=/usr/lib64/cscppc:/usr/lib64/csgcca:/usr/lib64/cswrap:\\\$PATH CSWRAP_CAP_FILE=\\\$'/builddir/cswrap-capture.err' CSWRAP_TIMEOUT=\\\$'30' CSWRAP_TIMEOUT_FOR=\\\$'::cppcheck:csmock-gcc-wrapper' CSWRAP_ADD_CFLAGS=\\\$'-Wno-unknown-pragmas' CSWRAP_DEL_CFLAGS=\\\$'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register' CSWRAP_ADD_CXXFLAGS=\\\$'' CSWRAP_DEL_CXXFLAGS=\\\$'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register' CSGCCA_ADD_OPTS=\\\$'-fdiagnostics-text-art-charset=none' CSGCCA_ANALYZER_BIN=\\\$'csmock-gcc-wrapper' sh -c \\\"rpmbuild -bi --nodeps --short-circuit /builddir/build/SPECS/crun.spec '--define' '_unpackaged_files_terminate_build 0' '--define' 'apidocs 0' '--define' 'with_publican 0' '--without' 'docs' '--without' 'langpacks' '--define' 'libguestfs_runtests 0' '--define' 'runselftest 0' '--without' 'test' '--without' 'testsuite' '--nocheck' '--define' 'libguestfs_runtests 0' '--define' 'runselftest 0' '--without' 'test' '--without' 'testsuite'\\\"\"" INFO: mock.py version 5.9 starting (python version = 3.9.20, NVR = mock-5.9-1.el9), args: /usr/libexec/mock/mock -r fedora-rawhide-gcc-latest-x86_64 --plugin-option=tmpfs:keep_mounted=True --config-opts=print_main_output=True --chroot '/bin/su mockbuild -l -c "PATH=/usr/lib64/cscppc:/usr/lib64/csgcca:/usr/lib64/cswrap:\$PATH CSWRAP_CAP_FILE=\$'"'"'/builddir/cswrap-capture.err'"'"' CSWRAP_TIMEOUT=\$'"'"'30'"'"' CSWRAP_TIMEOUT_FOR=\$'"'"'::cppcheck:csmock-gcc-wrapper'"'"' CSWRAP_ADD_CFLAGS=\$'"'"'-Wno-unknown-pragmas'"'"' CSWRAP_DEL_CFLAGS=\$'"'"'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register'"'"' CSWRAP_ADD_CXXFLAGS=\$'"'"''"'"' CSWRAP_DEL_CXXFLAGS=\$'"'"'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register'"'"' CSGCCA_ADD_OPTS=\$'"'"'-fdiagnostics-text-art-charset=none'"'"' CSGCCA_ANALYZER_BIN=\$'"'"'csmock-gcc-wrapper'"'"' sh -c \"rpmbuild -bi --nodeps --short-circuit /builddir/build/SPECS/crun.spec '"'"'--define'"'"' '"'"'_unpackaged_files_terminate_build 0'"'"' '"'"'--define'"'"' '"'"'apidocs 0'"'"' '"'"'--define'"'"' '"'"'with_publican 0'"'"' '"'"'--without'"'"' '"'"'docs'"'"' '"'"'--without'"'"' '"'"'langpacks'"'"' '"'"'--define'"'"' '"'"'libguestfs_runtests 0'"'"' '"'"'--define'"'"' '"'"'runselftest 0'"'"' '"'"'--without'"'"' '"'"'test'"'"' '"'"'--without'"'"' '"'"'testsuite'"'"' '"'"'--nocheck'"'"' '"'"'--define'"'"' '"'"'libguestfs_runtests 0'"'"' '"'"'--define'"'"' '"'"'runselftest 0'"'"' '"'"'--without'"'"' '"'"'test'"'"' '"'"'--without'"'"' '"'"'testsuite'"'"'\""' Start(bootstrap): init plugins INFO: selinux enabled Finish(bootstrap): init plugins Start: init plugins INFO: selinux enabled Finish: init plugins INFO: Signal handler active Start: run Mock Version: 5.9 INFO: Mock Version: 5.9 Start(bootstrap): chroot init INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata INFO: Package manager dnf5 detected and used (fallback) Finish(bootstrap): chroot init Start: chroot init INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin INFO: Package manager dnf5 detected and used (direct choice) Finish: chroot init INFO: Running in chroot: ['/bin/su mockbuild -l -c "PATH=/usr/lib64/cscppc:/usr/lib64/csgcca:/usr/lib64/cswrap:\\$PATH CSWRAP_CAP_FILE=\\$\'/builddir/cswrap-capture.err\' CSWRAP_TIMEOUT=\\$\'30\' CSWRAP_TIMEOUT_FOR=\\$\'::cppcheck:csmock-gcc-wrapper\' CSWRAP_ADD_CFLAGS=\\$\'-Wno-unknown-pragmas\' CSWRAP_DEL_CFLAGS=\\$\'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register\' CSWRAP_ADD_CXXFLAGS=\\$\'\' CSWRAP_DEL_CXXFLAGS=\\$\'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register\' CSGCCA_ADD_OPTS=\\$\'-fdiagnostics-text-art-charset=none\' CSGCCA_ANALYZER_BIN=\\$\'csmock-gcc-wrapper\' sh -c \\"rpmbuild -bi --nodeps --short-circuit /builddir/build/SPECS/crun.spec \'--define\' \'_unpackaged_files_terminate_build 0\' \'--define\' \'apidocs 0\' \'--define\' \'with_publican 0\' \'--without\' \'docs\' \'--without\' \'langpacks\' \'--define\' \'libguestfs_runtests 0\' \'--define\' \'runselftest 0\' \'--without\' \'test\' \'--without\' \'testsuite\' \'--nocheck\' \'--define\' \'libguestfs_runtests 0\' \'--define\' \'runselftest 0\' \'--without\' \'test\' \'--without\' \'testsuite\'\\""'] Start: chroot ['/bin/su mockbuild -l -c "PATH=/usr/lib64/cscppc:/usr/lib64/csgcca:/usr/lib64/cswrap:\\$PATH CSWRAP_CAP_FILE=\\$\'/builddir/cswrap-capture.err\' CSWRAP_TIMEOUT=\\$\'30\' CSWRAP_TIMEOUT_FOR=\\$\'::cppcheck:csmock-gcc-wrapper\' CSWRAP_ADD_CFLAGS=\\$\'-Wno-unknown-pragmas\' CSWRAP_DEL_CFLAGS=\\$\'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register\' CSWRAP_ADD_CXXFLAGS=\\$\'\' CSWRAP_DEL_CXXFLAGS=\\$\'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register\' CSGCCA_ADD_OPTS=\\$\'-fdiagnostics-text-art-charset=none\' CSGCCA_ANALYZER_BIN=\\$\'csmock-gcc-wrapper\' sh -c \\"rpmbuild -bi --nodeps --short-circuit /builddir/build/SPECS/crun.spec \'--define\' \'_unpackaged_files_terminate_build 0\' \'--define\' \'apidocs 0\' \'--define\' \'with_publican 0\' \'--without\' \'docs\' \'--without\' \'langpacks\' \'--define\' \'libguestfs_runtests 0\' \'--define\' \'runselftest 0\' \'--without\' \'test\' \'--without\' \'testsuite\' \'--nocheck\' \'--define\' \'libguestfs_runtests 0\' \'--define\' \'runselftest 0\' \'--without\' \'test\' \'--without\' \'testsuite\'\\""'] setting SOURCE_DATE_EPOCH=1730332800 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.2WVdSR + umask 022 + cd /builddir/build/BUILD/crun-1.18.2-build + '[' /builddir/build/BUILD/crun-1.18.2-build/BUILDROOT '!=' / ']' + rm -rf /builddir/build/BUILD/crun-1.18.2-build/BUILDROOT ++ dirname /builddir/build/BUILD/crun-1.18.2-build/BUILDROOT + mkdir -p /builddir/build/BUILD/crun-1.18.2-build + mkdir /builddir/build/BUILD/crun-1.18.2-build/BUILDROOT + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd crun-1.18.2 + /usr/bin/make install DESTDIR=/builddir/build/BUILD/crun-1.18.2-build/BUILDROOT 'INSTALL=/usr/bin/install -p' prefix=/usr /usr/bin/make install-recursive make[1]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' Making install in libocispec make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' /usr/bin/make install-recursive make[3]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' Making install in yajl make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' make[5]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' make[5]: Nothing to be done for 'install-exec-am'. make[5]: Nothing to be done for 'install-data-am'. make[5]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec/yajl' make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[5]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[5]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[3]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/libocispec' make[2]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[3]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /usr/bin/mkdir -p '/builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/lib' /bin/sh ./libtool --mode=install /usr/bin/install -p libcrun.la '/builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/lib' libtool: install: /usr/bin/install -p .libs/libcrun.lai /builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/lib/libcrun.la libtool: install: /usr/bin/install -p .libs/libcrun.a /builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/lib/libcrun.a libtool: install: chmod 644 /builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/lib/libcrun.a libtool: install: ranlib /builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/lib/libcrun.a libtool: warning: remember to run 'libtool --finish /usr/local/lib' /usr/bin/mkdir -p '/builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/bin' /bin/sh ./libtool --mode=install /usr/bin/install -p crun '/builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/bin' libtool: install: /usr/bin/install -p crun /builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/bin/crun /usr/bin/make install-exec-hook make[4]: Entering directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' ln -s -f crun /builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/bin/krun ln -s -f crun /builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/bin/crun-wasm make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' /usr/bin/mkdir -p '/builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/share/man/man1' /usr/bin/install -p -m 644 crun.1 krun.1 '/builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/share/man/man1' make[3]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' make[1]: Leaving directory '/builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2' + rm -rf /builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/lib + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 1.18.2-1.fc42 --unique-debug-suffix -1.18.2-1.fc42.x86_64 --unique-debug-src-base crun-1.18.2-1.fc42.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2 find-debuginfo: starting Extracting debug info from 1 files DWARF-compressing 1 files sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. Creating .debug symlinks for symlinks to ELF files Copying sources found by 'debugedit -l' to /usr/src/debug/crun-1.18.2-1.fc42.x86_64 find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/bin/add-determinism --brp -j8 /builddir/build/BUILD/crun-1.18.2-build/BUILDROOT Scanned 21 directories and 124 files, processed 0 inodes, 0 modified (0 replaced + 0 rewritten), 0 unsupported format, 0 errors Reading /builddir/build/BUILD/crun-1.18.2-build/SPECPARTS/rpm-debuginfo.specpart Processing files: crun-1.18.2-1.fc42.x86_64 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.TcAUTC + umask 022 + cd /builddir/build/BUILD/crun-1.18.2-build + cd crun-1.18.2 + LICENSEDIR=/builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/share/licenses/crun + export LC_ALL=C.UTF-8 + LC_ALL=C.UTF-8 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/share/licenses/crun + cp -pr /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/COPYING /builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/share/licenses/crun + RPM_EC=0 ++ jobs -p + exit 0 Provides: crun = 1.18.2-1.fc42 crun(x86-64) = 1.18.2-1.fc42 oci-runtime Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.11)(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.15)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.27)(64bit) libc.so.6(GLIBC_2.28)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.2)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.38)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.5)(64bit) libc.so.6(GLIBC_2.6)(64bit) libc.so.6(GLIBC_2.7)(64bit) libc.so.6(GLIBC_2.8)(64bit) libc.so.6(GLIBC_2.9)(64bit) libc.so.6(GLIBC_ABI_DT_RELR)(64bit) libcap.so.2()(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libgcc_s.so.1(GCC_3.3.1)(64bit) libseccomp.so.2()(64bit) libsystemd.so.0()(64bit) libsystemd.so.0(LIBSYSTEMD_209)(64bit) libsystemd.so.0(LIBSYSTEMD_221)(64bit) libsystemd.so.0(LIBSYSTEMD_237)(64bit) libsystemd.so.0(LIBSYSTEMD_246)(64bit) libyajl.so.2()(64bit) rtld(GNU_HASH) Recommends: criu >= 3.17.1 criu-libs Processing files: crun-krun-1.18.2-1.fc42.x86_64 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.wXahPP + umask 022 + cd /builddir/build/BUILD/crun-1.18.2-build + cd crun-1.18.2 + LICENSEDIR=/builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/share/licenses/crun-krun + export LC_ALL=C.UTF-8 + LC_ALL=C.UTF-8 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/share/licenses/crun-krun + cp -pr /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/COPYING /builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/share/licenses/crun-krun + RPM_EC=0 ++ jobs -p + exit 0 Provides: crun-krun = 1.18.2-1.fc42 crun-krun(x86-64) = 1.18.2-1.fc42 krun = 1.18.2-1.fc42 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: crun-wasm-1.18.2-1.fc42.x86_64 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.PGrH4H + umask 022 + cd /builddir/build/BUILD/crun-1.18.2-build + cd crun-1.18.2 + LICENSEDIR=/builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/share/licenses/crun-wasm + export LC_ALL=C.UTF-8 + LC_ALL=C.UTF-8 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/share/licenses/crun-wasm + cp -pr /builddir/build/BUILD/crun-1.18.2-build/crun-1.18.2/COPYING /builddir/build/BUILD/crun-1.18.2-build/BUILDROOT/usr/share/licenses/crun-wasm + RPM_EC=0 ++ jobs -p + exit 0 Provides: crun-wasm = 1.18.2-1.fc42 crun-wasm(x86-64) = 1.18.2-1.fc42 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: wasmedge Processing files: crun-debugsource-1.18.2-1.fc42.x86_64 Provides: crun-debugsource = 1.18.2-1.fc42 crun-debugsource(x86-64) = 1.18.2-1.fc42 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: crun-debuginfo-1.18.2-1.fc42.x86_64 Provides: crun-debuginfo = 1.18.2-1.fc42 crun-debuginfo(x86-64) = 1.18.2-1.fc42 debuginfo(build-id) = 866706b266264da3118690c33c17aee207e09708 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: crun-debugsource(x86-64) = 1.18.2-1.fc42 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILD/crun-1.18.2-build/BUILDROOT Finish: chroot ['/bin/su mockbuild -l -c "PATH=/usr/lib64/cscppc:/usr/lib64/csgcca:/usr/lib64/cswrap:\\$PATH CSWRAP_CAP_FILE=\\$\'/builddir/cswrap-capture.err\' CSWRAP_TIMEOUT=\\$\'30\' CSWRAP_TIMEOUT_FOR=\\$\'::cppcheck:csmock-gcc-wrapper\' CSWRAP_ADD_CFLAGS=\\$\'-Wno-unknown-pragmas\' CSWRAP_DEL_CFLAGS=\\$\'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register\' CSWRAP_ADD_CXXFLAGS=\\$\'\' CSWRAP_DEL_CXXFLAGS=\\$\'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register\' CSGCCA_ADD_OPTS=\\$\'-fdiagnostics-text-art-charset=none\' CSGCCA_ANALYZER_BIN=\\$\'csmock-gcc-wrapper\' sh -c \\"rpmbuild -bi --nodeps --short-circuit /builddir/build/SPECS/crun.spec \'--define\' \'_unpackaged_files_terminate_build 0\' \'--define\' \'apidocs 0\' \'--define\' \'with_publican 0\' \'--without\' \'docs\' \'--without\' \'langpacks\' \'--define\' \'libguestfs_runtests 0\' \'--define\' \'runselftest 0\' \'--without\' \'test\' \'--without\' \'testsuite\' \'--nocheck\' \'--define\' \'libguestfs_runtests 0\' \'--define\' \'runselftest 0\' \'--without\' \'test\' \'--without\' \'testsuite\'\\""'] Finish: run >>> 2024-11-12 23:33:32 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--chroot" "shopt -s nullglob && SC_RESULTS_DIR=/builddir/shellcheck-results SC_BATCH=1 SC_TIMEOUT=30 /usr/share/csmock/scripts/run-shellcheck.sh /builddir/build/BUILDROOT/* /builddir/build/BUILD/*/BUILDROOT/*" Looking for shell scripts... done >>> 2024-11-12 23:33:33 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--chroot" "LANG=en_US.utf8 /usr/share/csmock/scripts/find-unicode-control.py -d -v /builddir/build/BUILD -p bidi --notests >/builddir/unicontrol-capture.err 2>/builddir/unicontrol-capture.log" >>> 2024-11-12 23:33:37 '/usr/bin/mock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '--plugin-option=tmpfs:keep_mounted=True' '--config-opts=print_main_output=True' '--quiet' '--shell' 'tar -c --remove-files '/builddir/cswrap-capture.err' '/builddir/shellcheck-results' '/builddir/unicontrol-capture.err' '/builddir/unicontrol-capture.log' '/builddir/clippy-output.txt'' | tar -xC '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/raw-results' tar: Removing leading `/' from member names tar: Removing leading `/' from hard link targets >>> 2024-11-12 23:33:38 cat '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/raw-results/builddir/cswrap-capture.err' | csgrep --mode=json --quiet --path '^/builddir/build/BUILD/' --remove-duplicates | csgrep --mode=json --invert-match --checker CPPCHECK_WARNING --event 'cppcheckError|internalAstError|normalCheckLevelMaxBranches|preprocessorErrorDirective|syntaxError|unknownMacro' | csgrep --mode=json --invert-match --checker COMPILER_WARNING --event error > '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/uni-results/cswrap-capture.js' >>> 2024-11-12 23:33:39 set -o pipefail; /usr/share/csmock/scripts/convert-clippy.py < /tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/raw-results/builddir/clippy-output.txt | csgrep --remove-duplicates > /tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/uni-results/clippy-capture.err >>> 2024-11-12 23:33:39 cd /tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/raw-results/builddir/shellcheck-results && csgrep --mode=json --remove-duplicates --quiet --invert-match --event '^info|style|warning\[SC1090\]' *.json > /tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/uni-results/shellcheck-capture.json >>> 2024-11-12 23:33:39 csgrep --mode=json '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/raw-results/builddir/unicontrol-capture.err' > '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/uni-results/unicontrol-capture.js' scan.ini: time-finished = 2024-11-12 23:33:39 scan.ini: exit-code = 0 >>> 2024-11-12 23:33:39 cslinker --quiet --cwelist '/usr/share/csmock/cwe-map.csv' --inifile '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/scan.ini' '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/uni-results'/* > '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/scan-results-all.js' >>> 2024-11-12 23:33:39 '/usr/bin/mock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '--plugin-option=tmpfs:keep_mounted=True' '--config-opts=print_main_output=True' '--quiet' '--shell' 'csgrep --mode=json --embed-context 3 '--warning-rate-limit=1024' '--limit-msg-len=512'' <'/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/scan-results-all.js' >'/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/scan-results-all.js.tmp' >>> 2024-11-12 23:33:41 "/usr/bin/mock" "-r" "fedora-rawhide-gcc-latest-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--clean" >>> 2024-11-12 23:33:43 cat '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/scan-results-all.js' | sed -r 's;/builddir/build/BUILD(ROOT/[^/]+|/[^/]+/BUILDROOT)/;/builddir/build/BUILD//;' | csgrep --mode=json --path '^/builddir/build/BUILD/' --strip-path-prefix /builddir/build/BUILD/ | csgrep --mode=json --invert-match --path '^ksh-.*[0-9]+\.c$' | csgrep --mode=json --invert-match --path 'CMakeFiles/CMakeTmp|conftest.c' | cssort --key=path > '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/scan-results.js' >>> 2024-11-12 23:33:45 cat '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/scan-results-all.js' | sed -r 's;/builddir/build/BUILD(ROOT/[^/]+|/[^/]+/BUILDROOT)/;/builddir/build/BUILD//;' | csgrep --mode=json --strip-path-prefix /builddir/build/BUILD/ | csdiff --show-internal '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/scan-results.js' - | cssort > '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/suppressed-results.js' >>> 2024-11-12 23:33:46 csgrep --mode=grep --invert-match --event "internal warning" --prune-events=1 '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/suppressed-results.js' > '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/suppressed-results.err' >>> 2024-11-12 23:33:46 csgrep --mode=json --invert-match --event "internal warning" --prune-events=1 '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/suppressed-results.js' | cshtml - > '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/suppressed-results.html' >>> 2024-11-12 23:33:46 csgrep --mode=evtstat --invert-match --event "internal warning" --prune-events=1 '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/suppressed-results.js' | tee '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/debug/suppressed-results-summary.txt' >>> 2024-11-12 23:33:46 csgrep --mode=grep --invert-match --event "internal warning" --prune-events=1 '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/scan-results.js' > '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/scan-results.err' >>> 2024-11-12 23:33:46 csgrep --mode=json --invert-match --event "internal warning" --prune-events=1 '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/scan-results.js' | cshtml - > '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/scan-results.html' >>> 2024-11-12 23:33:46 csgrep --mode=evtstat --invert-match --event "internal warning" --prune-events=1 '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/scan-results.js' | tee '/tmp/csmock_42lglbg/crun-1.18.2-1.fc42/scan-results-summary.txt' 6 COMPILER_WARNING warning[-Wmaybe-uninitialized] 1 COMPILER_WARNING warning[-Wstringop-truncation] 2 COMPILER_WARNING warning[-Wunused-variable] 189 CPPCHECK_WARNING error[memleak] 1 CPPCHECK_WARNING error[uninitvar] 1 CPPCHECK_WARNING warning[uninitvar] 19 GCC_ANALYZER_WARNING warning[-Wanalyzer-double-free] 51 GCC_ANALYZER_WARNING warning[-Wanalyzer-fd-double-close] 51 GCC_ANALYZER_WARNING warning[-Wanalyzer-fd-leak] 2 GCC_ANALYZER_WARNING warning[-Wanalyzer-file-leak] 1 GCC_ANALYZER_WARNING warning[-Wanalyzer-infinite-loop] 256 GCC_ANALYZER_WARNING warning[-Wanalyzer-malloc-leak] 12 GCC_ANALYZER_WARNING warning[-Wanalyzer-null-argument] 30 GCC_ANALYZER_WARNING warning[-Wanalyzer-null-dereference] 8 GCC_ANALYZER_WARNING warning[-Wanalyzer-use-of-uninitialized-value] <<< 2024-11-12 23:33:46 csmock exit code: 0