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/tmpg8468kpt/libbpf-1.5.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpg8468kpt/libbpf-1.5.0-1.fc42.src.rpm' scan.ini: host = ip-172-16-1-134.us-west-2.compute.internal scan.ini: store-results-to = /tmp/tmpg8468kpt/libbpf-1.5.0-1.fc42.tar.xz scan.ini: time-created = 2024-11-13 01:17:58 scan.ini: enabled-plugins = clippy, cppcheck, gcc, shellcheck, unicontrol scan.ini: mock-config = fedora-rawhide-gcc-latest-x86_64 scan.ini: project-name = libbpf-1.5.0-1.fc42 >>> 2024-11-13 01:17:58 rpm -qa | sort -V > '/tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/rpm-list-host.txt' scan.ini: analyzer-version-unicontrol = 0.0.2 >>> 2024-11-13 01:17:58 "/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-13 01:18:00 "/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/csmockikao6le6/libbpf-1.5.0-1.fc42.src.rpm" Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1730332800 Wrote: /builddir/build/SRPMS/libbpf-1.5.0-1.fc42.src.rpm Updating and loading repositories: Copr repository 100% | 13.5 KiB/s | 1.5 KiB | 00m00s fedora 100% | 459.2 KiB/s | 9.6 KiB | 00m00s Repositories loaded. Package Arch Version Repository Size Installing: elfutils-devel x86_64 0.192-3.fc42 fedora 181.4 KiB elfutils-libelf-devel x86_64 0.192-3.fc42 fedora 49.5 KiB gcc x86_64 14.2.1-6.fc42 fedora 104.3 MiB make x86_64 1:4.4.1-9.fc42 fedora 1.8 MiB Installing dependencies: annobin-docs noarch 12.70-1.fc42 fedora 97.7 KiB annobin-plugin-gcc x86_64 12.70-1.fc42 fedora 985.6 KiB cmake-filesystem x86_64 3.30.5-1.fc42 fedora 0.0 B cpp x86_64 14.2.1-6.fc42 fedora 35.0 MiB gcc-plugin-annobin x86_64 14.2.1-6.fc42 fedora 57.6 KiB glibc-devel x86_64 2.40.9000-16.fc42 fedora 2.3 MiB kernel-headers x86_64 6.12.0-0.rc7.58.fc42 fedora 6.4 MiB libmpc x86_64 1.3.1-6.fc41 fedora 164.7 KiB libxcrypt-devel x86_64 4.4.36-10.fc42 fedora 30.5 KiB libzstd-devel x86_64 1.5.6-2.fc41 fedora 202.4 KiB xz-devel x86_64 1:5.6.3-2.fc42 fedora 255.6 KiB zlib-ng-compat-devel x86_64 2.2.2-1.fc42 fedora 106.8 KiB Transaction Summary: Installing: 16 packages Total size of inbound packages is 53 MiB. Need to download 0 B. After this operation, 152 MiB extra will be used (install 152 MiB, remove 0 B). [1/1] gcc-0:14.2.1-6.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] make-1:4.4.1-9.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] elfutils-devel-0:0.192-3.fc42.x86 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] elfutils-libelf-devel-0:0.192-3.f 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] cpp-0:14.2.1-6.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] libmpc-0:1.3.1-6.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] glibc-devel-0:2.40.9000-16.fc42.x 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] libxcrypt-devel-0:4.4.36-10.fc42. 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] libzstd-devel-0:1.5.6-2.fc41.x86_ 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] zlib-ng-compat-devel-0:2.2.2-1. 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] cmake-filesystem-0:3.30.5-1.fc4 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] xz-devel-1:5.6.3-2.fc42.x86_64 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] kernel-headers-0:6.12.0-0.rc7.5 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] annobin-plugin-gcc-0:12.70-1.fc 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] gcc-plugin-annobin-0:14.2.1-6.f 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] annobin-docs-0:12.70-1.fc42.noa 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [16/16] Total 100% | 0.0 B/s | 0.0 B | 00m00s Running transaction [ 1/18] Verify package files 100% | 94.0 B/s | 16.0 B | 00m00s [ 2/18] Prepare transaction 100% | 727.0 B/s | 16.0 B | 00m00s [ 3/18] Installing libzstd-devel-0:1.5. 100% | 33.1 MiB/s | 203.2 KiB | 00m00s [ 4/18] Installing libmpc-0:1.3.1-6.fc4 100% | 32.5 MiB/s | 166.2 KiB | 00m00s [ 5/18] Installing cpp-0:14.2.1-6.fc42. 100% | 342.9 MiB/s | 35.0 MiB | 00m00s [ 6/18] Installing annobin-docs-0:12.70 100% | 16.1 MiB/s | 98.8 KiB | 00m00s [ 7/18] Installing kernel-headers-0:6.1 100% | 113.7 MiB/s | 6.6 MiB | 00m00s [ 8/18] Installing libxcrypt-devel-0:4. 100% | 6.4 MiB/s | 32.9 KiB | 00m00s [ 9/18] Installing glibc-devel-0:2.40.9 100% | 80.3 MiB/s | 2.3 MiB | 00m00s [10/18] Installing xz-devel-1:5.6.3-2.f 100% | 42.2 MiB/s | 259.4 KiB | 00m00s [11/18] Installing cmake-filesystem-0:3 100% | 912.6 KiB/s | 7.3 KiB | 00m00s [12/18] Installing zlib-ng-compat-devel 100% | 21.2 MiB/s | 108.3 KiB | 00m00s [13/18] Installing elfutils-libelf-deve 100% | 10.7 MiB/s | 55.0 KiB | 00m00s [14/18] Installing make-1:4.4.1-9.fc42. 100% | 120.0 MiB/s | 1.8 MiB | 00m00s [15/18] Installing gcc-0:14.2.1-6.fc42. 100% | 373.9 MiB/s | 104.3 MiB | 00m00s [16/18] Installing annobin-plugin-gcc-0 100% | 60.3 MiB/s | 987.3 KiB | 00m00s [17/18] Installing gcc-plugin-annobin-0 100% | 4.1 MiB/s | 59.2 KiB | 00m00s [18/18] Installing elfutils-devel-0:0.1 100% | 99.7 KiB/s | 183.2 KiB | 00m02s Complete! >>> 2024-11-13 01:18:06 "/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.6 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: expat x86_64 2.6.4-1.fc42 fedora 285.5 KiB libb2 x86_64 0.98.1-12.fc41 fedora 42.2 KiB mpdecimal x86_64 2.5.1-16.fc41 fedora 204.9 KiB pcre x86_64 8.45-1.fc41.7 fedora 545.8 KiB 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 tinyxml2 x86_64 9.0.0-5.fc41 fedora 103.8 KiB tzdata noarch 2024a-9.fc41 fedora 1.7 MiB Transaction Summary: Installing: 12 packages Total size of inbound packages is 89 MiB. Need to download 0 B. After this operation, 371 MiB extra will be used (install 371 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 [1/6] python3-0:3.13.0-1.fc42.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] python3-libs-0:3.13.0-1.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] expat-0:2.6.4-1.fc42.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] libb2-0:0.98.1-12.fc41.x86_64 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] mpdecimal-0:2.5.1-16.fc41.x86_6 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] python-pip-wheel-0:24.2-2.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] tzdata-0:2024a-9.fc41.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [12/12] Total 100% | 0.0 B/s | 0.0 B | 00m00s Running transaction [ 1/14] Verify package files 100% | 35.0 B/s | 12.0 B | 00m00s [ 2/14] Prepare transaction 100% | 260.0 B/s | 12.0 B | 00m00s [ 3/14] Installing tzdata-0:2024a-9.fc4 100% | 29.9 MiB/s | 1.9 MiB | 00m00s [ 4/14] Installing python-pip-wheel-0:2 100% | 248.3 MiB/s | 1.2 MiB | 00m00s [ 5/14] Installing mpdecimal-0:2.5.1-16 100% | 40.2 MiB/s | 206.0 KiB | 00m00s [ 6/14] Installing libb2-0:0.98.1-12.fc 100% | 14.1 MiB/s | 43.3 KiB | 00m00s [ 7/14] Installing expat-0:2.6.4-1.fc42 100% | 28.1 MiB/s | 287.6 KiB | 00m00s [ 8/14] Installing python3-libs-0:3.13. 100% | 232.7 MiB/s | 40.7 MiB | 00m00s [ 9/14] Installing python3-0:3.13.0-1.f 100% | 8.2 MiB/s | 33.5 KiB | 00m00s [10/14] Installing tinyxml2-0:9.0.0-5.f 100% | 25.6 MiB/s | 104.9 KiB | 00m00s [11/14] Installing pcre-0:8.45-1.fc41.7 100% | 107.0 MiB/s | 548.1 KiB | 00m00s [12/14] Installing cppcheck-0:2.16.0-1. 100% | 216.5 MiB/s | 10.4 MiB | 00m00s [13/14] Installing ShellCheck-0:0.10.0- 100% | 349.2 MiB/s | 20.6 MiB | 00m00s [14/14] Installing gcc-latest-0:15.0.0- 100% | 109.7 MiB/s | 295.4 MiB | 00m03s Warning: skipped PGP checks for 1 package from repository: copr_base Complete! >>> 2024-11-13 01:18:12 '/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/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/rpm-list-mock.txt >>> 2024-11-13 01:18:13 '/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/csmockikao6le6/rpm-list-mock-provides.txt >>> 2024-11-13 01:18:14 "/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/csmockikao6le6/libbpf-1.5.0-1.fc42.src.rpm" "/builddir/libbpf-1.5.0-1.fc42.src.rpm" >>> 2024-11-13 01:18: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" "chown mockbuild -R /builddir" >>> 2024-11-13 01:18:16 "/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/libbpf-1.5.0-1.fc42.src.rpm'\"" Updating / installing... libbpf-2:1.5.0-1.fc42 ######################################## >>> 2024-11-13 01:18: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" "/bin/su mockbuild -l -c \"rpmbuild -bs --nodeps /builddir/build/SPECS/libbpf.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/libbpf-1.5.0-1.fc42.src.rpm || :'\"" setting SOURCE_DATE_EPOCH=1730332800 Wrote: /builddir/build/SRPMS/libbpf-1.5.0-1.fc42.src.rpm renamed 'libbpf-1.5.0-1.fc42.src.rpm' -> '/builddir/libbpf-1.5.0-1.fc42.src.rpm' >>> 2024-11-13 01:18:18 "/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/libbpf-1.5.0-1.fc42.src.rpm" "/tmp/csmockikao6le6/libbpf-1.5.0-1.fc42.src.rpm" >>> 2024-11-13 01:18: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/csmockikao6le6/libbpf-1.5.0-1.fc42.src.rpm" Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1730332800 Wrote: /builddir/build/SRPMS/libbpf-1.5.0-1.fc42.src.rpm Updating and loading repositories: fedora 100% | 507.6 KiB/s | 9.6 KiB | 00m00s Copr repository 100% | 16.9 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package "elfutils-devel-0.192-3.fc42.x86_64" is already installed. Package "elfutils-libelf-devel-0.192-3.fc42.x86_64" is already installed. Package "gcc-14.2.1-6.fc42.x86_64" is already installed. Package "make-1:4.4.1-9.fc42.x86_64" is already installed. Nothing to do. >>> 2024-11-13 01:18:22 "/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% | 482.2 KiB/s | 9.6 KiB | 00m00s Copr repository 100% | 6.9 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-13 01:18:24 '/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/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/rpm-list-mock.txt >>> 2024-11-13 01:18:25 '/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/csmockikao6le6/rpm-list-mock-provides.txt >>> 2024-11-13 01:18:26 "/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% | 507.6 KiB/s | 9.6 KiB | 00m00s Copr repository 100% | 4.7 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% | 294.0 B/s | 5.0 B | 00m00s [3/7] Installing boost-system-0:1.83.0- 100% | 3.4 MiB/s | 17.3 KiB | 00m00s [4/7] Installing boost-atomic-0:1.83.0- 100% | 4.3 MiB/s | 22.0 KiB | 00m00s [5/7] Installing boost-filesystem-0:1.8 100% | 36.3 MiB/s | 148.6 KiB | 00m00s [6/7] Installing boost-program-options- 100% | 66.8 MiB/s | 273.8 KiB | 00m00s [7/7] Installing csdiff-0:3.5.2-1.fc42. 100% | 37.6 MiB/s | 3.7 MiB | 00m00s Complete! >>> 2024-11-13 01:18:28 "/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: Copr repository 100% | 16.3 KiB/s | 1.5 KiB | 00m00s fedora 100% | 535.8 KiB/s | 9.6 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 libedit x86_64 3.1-53.20240808cvs.fc41 fedora 244.1 KiB 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 llvm-libs x86_64 19.1.0-1.fc42 fedora 124.5 MiB 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: 9 packages Total size of inbound packages is 105 MiB. Need to download 0 B. After this operation, 388 MiB extra will be used (install 388 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] llvm-libs-0:19.1.0-1.fc42.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] rust-std-static-0:1.82.0-1.fc42.x 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] llhttp-0:9.2.1-2.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] libedit-0:3.1-53.20240808cvs.fc41 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [9/9] Total 100% | 0.0 B/s | 0.0 B | 00m00s Running transaction [ 1/11] Verify package files 100% | 27.0 B/s | 9.0 B | 00m00s [ 2/11] Prepare transaction 100% | 500.0 B/s | 9.0 B | 00m00s [ 3/11] Installing libssh2-0:1.11.1-1.f 100% | 31.7 MiB/s | 324.5 KiB | 00m00s [ 4/11] Installing libedit-0:3.1-53.202 100% | 34.3 MiB/s | 245.8 KiB | 00m00s [ 5/11] Installing llvm-libs-0:19.1.0-1 100% | 405.4 MiB/s | 124.5 MiB | 00m00s [ 6/11] Installing rust-std-static-0:1. 100% | 427.3 MiB/s | 143.6 MiB | 00m00s [ 7/11] Installing rust-0:1.82.0-1.fc42 100% | 314.7 MiB/s | 87.8 MiB | 00m00s [ 8/11] Installing llhttp-0:9.2.1-2.fc4 100% | 4.0 MiB/s | 73.8 KiB | 00m00s [ 9/11] Installing libgit2-0:1.8.4-1.fc 100% | 91.0 MiB/s | 1.3 MiB | 00m00s [10/11] Installing cargo-0:1.82.0-1.fc4 100% | 352.3 MiB/s | 19.4 MiB | 00m00s [11/11] Installing clippy-0:1.82.0-1.fc 100% | 4.9 MiB/s | 11.0 MiB | 00m02s Complete! >>> 2024-11-13 01:18:34 "/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% | 535.8 KiB/s | 9.6 KiB | 00m00s Copr repository 100% | 16.3 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% | 250.0 B/s | 1.0 B | 00m00s [3/3] Installing python3-file-magic-0:5 100% | 574.7 KiB/s | 31.0 KiB | 00m00s Complete! >>> 2024-11-13 01:18: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" "python3-six" Updating and loading repositories: fedora 100% | 482.2 KiB/s | 9.6 KiB | 00m00s Copr repository 100% | 4.6 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% | 333.0 B/s | 1.0 B | 00m00s [3/3] Installing python3-six-0:1.16.0-2 100% | 3.9 MiB/s | 120.7 KiB | 00m00s Complete! >>> 2024-11-13 01:18:38 '/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/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/rpm-list-mock.txt >>> 2024-11-13 01:18: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' 'rpm -qa --provides' | sort -V > /tmp/csmockikao6le6/rpm-list-mock-provides.txt >>> 2024-11-13 01:18:40 "/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-13 01:18:41 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/csmockikao6le6/libbpf-1.5.0-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-13 01:18:42 "/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-13 01:18: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" "/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-13 01:18: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 \"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-13 01:18:47 "/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-13 01:18:48 "/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-13 01:18:50 "/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/csmockikao6le6/libbpf-1.5.0-1.fc42.src.rpm'" Updating / installing... libbpf-2:1.5.0-1.fc42 ######################################## >>> 2024-11-13 01:18:51 "/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-13 01:18:52 "/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 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-13 01:18:53 "/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/libbpf.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/libbpf.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/libbpf.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/libbpf.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.eD9n14 + umask 022 + cd /builddir/build/BUILD/libbpf-1.5.0-build + test -d /builddir/build/BUILD/libbpf-1.5.0-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILD/libbpf-1.5.0-build + /usr/bin/rm -rf /builddir/build/BUILD/libbpf-1.5.0-build + /usr/bin/mkdir -p /builddir/build/BUILD/libbpf-1.5.0-build + /usr/bin/mkdir -p /builddir/build/BUILD/libbpf-1.5.0-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.rQyQMA + umask 022 + cd /builddir/build/BUILD/libbpf-1.5.0-build + cd /builddir/build/BUILD/libbpf-1.5.0-build + rm -rf libbpf-1.5.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/v1.5.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd libbpf-1.5.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Finish: chroot ['/bin/su mockbuild -l -c "rpmbuild -bp --nodeps /builddir/build/SPECS/libbpf.spec \'--define\' \'_unpackaged_files_terminate_build 0\' \'--define\' \'apidocs 0\' \'--define\' \'with_publican 0\' \'--without\' \'docs\' \'--without\' \'langpacks\'"'] Finish: run >>> 2024-11-13 01:18:54 "/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-13 01:18:55 "/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/libbpf.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/libbpf.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/libbpf.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/libbpf.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.J5Xkwe + umask 022 + cd /builddir/build/BUILD/libbpf-1.5.0-build + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=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 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=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 -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 -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 libbpf-1.5.0 + /usr/bin/make -O -j8 V=1 VERBOSE=1 -C ./src PREFIX=/usr INCLUDEDIR=/usr/include DESTDIR=/builddir/build/BUILD/libbpf-1.5.0-build/BUILDROOT make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' mkdir -p staticobjs make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' mkdir -p sharedobjs make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' sed -e "s|@PREFIX@|/usr|" \ -e "s|@LIBDIR@|$\{prefix\}/lib64|" \ -e "s|@VERSION@|1.5.0|" \ < libbpf.pc.template > libbpf.pc make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c str_error.c -o staticobjs/str_error.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c nlattr.c -o staticobjs/nlattr.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/nlattr.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c libbpf_probes.c -o staticobjs/libbpf_probes.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_probes.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c libbpf_errno.c -o staticobjs/libbpf_errno.o /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c bpf_prog_linfo.c -o staticobjs/bpf_prog_linfo.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c: In function ‘dissect_jited_func’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:79:64: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:100:24: note: (1) entry to ‘bpf_prog_linfo__new’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:108:12: note: (2) following ‘false’ branch (when ‘nr_linfo != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:115:17: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:115:12: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:119:22: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:120:12: note: (6) following ‘false’ branch (when ‘prog_linfo’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:124:30: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:128:12: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:130:57: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:133:12: note: (10) following ‘false’ branch (when ‘nr_jited_func != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:134:18: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:133:28: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:135:17: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:134:36: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:136:17: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:135:50: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:137:17: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:136:60: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:138:18: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:137:55: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:139:18: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:138:32: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:144:35: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:148:12: note: (24) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:150:9: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:154:47: note: (26) capacity: ‘(long unsigned int)*info.nr_jited_ksyms * 4’ bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:156:12: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:163:44: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:165:12: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:168:13: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:168:13: note: (31) calling ‘dissect_jited_func’ from ‘bpf_prog_linfo__new’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:22:12: note: (32) entry to ‘dissect_jited_func’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:39:12: note: (33) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:42:19: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:47:27: note: (35) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:76:12: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:76:12: note: (37) following ‘false’ branch (when ‘f == nr_jited_func’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:79:19: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:79:64: note: (39) write of 4 bytes at offset ‘(long unsigned int)(*info.nr_jited_ksyms + 4294967295) * 4’ exceeds the buffer <--[csmock-gcc-wrapper] At top level: cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c hashmap.c -o staticobjs/hashmap.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/hashmap.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c netlink.c -o staticobjs/netlink.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/netlink.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c ringbuf.c -o staticobjs/ringbuf.o /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/ringbuf.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c strset.c -o staticobjs/strset.o /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/strset.c:131: error: uninitvar(CWE-457): Uninitialized variable: old_off <--[cppcheck] make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c bpf.c -o staticobjs/bpf.o /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c zip.c -o staticobjs/zip.o /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c elf.c -o staticobjs/elf.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/elf.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c gen_loader.c -o staticobjs/gen_loader.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c features.c -o staticobjs/features.o /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/features.c:325: error: uninitvar(CWE-457): Uninitialized variable: name <--[cppcheck] make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c usdt.c -o staticobjs/usdt.o /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:910: error: uninitvar(CWE-457): Uninitialized variable: tmp <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c: In function ‘bpf_link_usdt_detach’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:874:44: warning: leak of ‘*man.free_spec_ids’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:821:12: note: (1) entry to ‘bpf_link_usdt_detach’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:849:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:856:37: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:859:32: note: (4) inlined call to ‘libbpf_reallocarray’ from ‘bpf_link_usdt_detach’ <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:21: <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘bpf_link_usdt_detach’ at usdt.c:859:18: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (5) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (7) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (8) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c: In function ‘bpf_link_usdt_detach’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:870:20: note: (9) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:872:41: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:874:44: note: (11) ‘*man.free_spec_ids’ leaks here; was allocated at (7) <--[csmock-gcc-wrapper] At top level: cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c btf_iter.c -o staticobjs/btf_iter.o /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c btf_relocate.c -o staticobjs/btf_relocate.o /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf_relocate.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c bpf.c -o sharedobjs/bpf.o /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c libbpf_errno.c -o sharedobjs/libbpf_errno.o /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c relo_core.c -o staticobjs/relo_core.o /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/relo_core.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c netlink.c -o sharedobjs/netlink.o /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/netlink.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c str_error.c -o sharedobjs/str_error.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c nlattr.c -o sharedobjs/nlattr.o /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/nlattr.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c libbpf_probes.c -o sharedobjs/libbpf_probes.o /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_probes.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c bpf_prog_linfo.c -o sharedobjs/bpf_prog_linfo.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c: In function ‘dissect_jited_func’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:79:64: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:100:24: note: (1) entry to ‘bpf_prog_linfo__new’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:108:12: note: (2) following ‘false’ branch (when ‘nr_linfo != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:115:17: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:115:12: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:119:22: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:120:12: note: (6) following ‘false’ branch (when ‘prog_linfo’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:124:30: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:128:12: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:130:57: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:133:12: note: (10) following ‘false’ branch (when ‘nr_jited_func != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:134:18: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:133:28: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:135:17: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:134:36: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:136:17: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:135:50: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:137:17: note: (17) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:136:60: note: (18) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:138:18: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:137:55: note: (20) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:139:18: note: (21) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:138:32: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:144:35: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:148:12: note: (24) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:150:9: note: (25) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:154:47: note: (26) capacity: ‘(long unsigned int)*info.nr_jited_ksyms * 4’ bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:156:12: note: (27) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:163:44: note: (28) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:165:12: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:168:13: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:168:13: note: (31) calling ‘dissect_jited_func’ from ‘bpf_prog_linfo__new’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:22:12: note: (32) entry to ‘dissect_jited_func’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:39:12: note: (33) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:42:19: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:47:27: note: (35) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:76:12: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:76:12: note: (37) following ‘false’ branch (when ‘f == nr_jited_func’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:79:19: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/bpf_prog_linfo.c:79:64: note: (39) write of 4 bytes at offset ‘(long unsigned int)(*info.nr_jited_ksyms + 4294967295) * 4’ exceeds the buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] At top level: cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c hashmap.c -o sharedobjs/hashmap.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/hashmap.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c ringbuf.c -o sharedobjs/ringbuf.o /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/ringbuf.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c btf_dump.c -o staticobjs/btf_dump.o /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf_dump.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c linker.c -o staticobjs/linker.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:1571: error: ctunullpointer(CWE-476): Null pointer dereference: main_def <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:1571: error: ctunullpointer(CWE-476): Null pointer dereference: extra_def <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c: In function ‘add_new_sym’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:286:15: warning: leak of ‘realloc(*symtab.raw_data, __real__ )’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:1880:12: note: (1) entry to ‘linker_append_elf_sym’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:1902:19: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:1915:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:1915:12: note: (4) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:1916:17: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2034:12: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2037:19: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2037:19: note: (8) calling ‘add_new_sym’ from ‘linker_append_elf_sym’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:272:19: note: (9) entry to ‘add_new_sym’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:278:16: note: (10) inlined call to ‘libbpf_reallocarray’ from ‘add_new_sym’ <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:21: <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘add_new_sym’ at linker.c:278:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (13) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (14) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c: In function ‘add_new_sym’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:279:12: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:282:20: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:286:15: note: (17) ‘realloc(*symtab.raw_data, __real__ )’ leaks here; was allocated at (13) <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c: In function ‘linker_append_btf’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2439:45: warning: dereference of NULL ‘0’ [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2294:12: note: (1) entry to ‘linker_append_btf’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2300:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2303:40: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2307:12: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (5) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2406:23: note: (6) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2412:31: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2413:20: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2415:34: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2430:31: note: (10) following ‘true’ branch (when ‘j < n’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2431:31: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2436:28: note: (12) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2437:73: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2438:44: note: (14) calling ‘find_glob_sym’ from ‘linker_append_btf’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:1331:25: note: (15) entry to ‘find_glob_sym’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:1337:23: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (17) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2438:44: note: (18) returning to ‘linker_append_btf’ from ‘find_glob_sym’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2439:45: note: (19) dereference of NULL ‘find_glob_sym(linker, btf__str_by_offset(*linker.btf, *.name_off))’ <--[csmock-gcc-wrapper] At top level: cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c strset.c -o sharedobjs/strset.o /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/strset.c:131: error: uninitvar(CWE-457): Uninitialized variable: old_off <--[cppcheck] make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c gen_loader.c -o sharedobjs/gen_loader.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c btf.c -o staticobjs/btf.o /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1805: error: uninitvar(CWE-457): Uninitialized variable: mapped_off <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:4997: error: uninitvar(CWE-457): Uninitialized variable: cand_id <--[cppcheck] In file included from /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:16: <--[csmock-gcc-wrapper] In function ‘IS_ERR’, inlined from ‘libbpf_ptr’ at libbpf_internal.h:604:6: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:25:29: warning: leak of ‘btf_new_empty(0)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:11:27: note: in definition of macro ‘IS_ERR_VALUE’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_ptr’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:984:15: note: (8) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (9) assuming ‘btf’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (10) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (12) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (16) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (17) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:22: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (18) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (19) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (20) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:604:13: note: (21) inlined call to ‘IS_ERR’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] In function ‘IS_ERR’, inlined from ‘libbpf_ptr’ at libbpf_internal.h:604:6: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:25:29: note: (22) ‘btf_new_empty(0)’ leaks here; was allocated at (8) <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:11:27: note: in definition of macro ‘IS_ERR_VALUE’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h: In function ‘libbpf_ptr’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: warning: leak of ‘’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (12) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (13) assuming ‘calloc(1, (long unsigned int))’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (16) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (17) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (18) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (19) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (20) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (21) ‘’ leaks here; was allocated at (12) <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:9: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (12) capacity: 25 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (15) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (16) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (17) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (20) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (21) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (23) inlined call to ‘btf__endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__endianness’, inlined from ‘btf__distill_base’ at btf.c:5561:2: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:738:27: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (25) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (26) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (27) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (28) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (29) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (33) inlined call to ‘btf__type_cnt’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__type_cnt’, inlined from ‘btf__distill_base’ at btf.c:5575:24: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:615:19: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5590:15: note: (35) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (36) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (37) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (41) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (42) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (43) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (45) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (46) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (47) calling ‘btf__str_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (48) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (49) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (50) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (52) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (53) returning to ‘btf_add_distilled_types’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (54) following ‘case 4 ... 5:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5442:17: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5448:28: note: (56) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:39: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:36: note: (58) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (60) calling ‘btf_add_composite’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2171:12: note: (61) entry to ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (62) calling ‘btf_ensure_modifiable’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (63) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (64) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (65) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (66) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (67) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (68) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (69) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (71) returning to ‘btf_add_composite’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:12: note: (72) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (73) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (74) calling ‘btf_add_type_mem’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (75) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (76) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (77) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (78) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (79) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (80) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (81) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (82) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (83) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (84) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (85) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (86) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:9: note: (88) out-of-bounds write from byte 25 till byte 39 but region ends at byte 25 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:9: note: write of 15 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:9: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (14) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (15) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (16) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (19) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (20) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (22) inlined call to ‘btf__endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__endianness’, inlined from ‘btf__distill_base’ at btf.c:5561:2: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:738:27: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (24) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (25) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (26) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (28) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (32) inlined call to ‘btf__type_cnt’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__type_cnt’, inlined from ‘btf__distill_base’ at btf.c:5575:24: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:615:19: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5591:12: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (36) calling ‘btf__new_empty_split’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1027:13: note: (37) entry to ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (38) calling ‘btf_new_empty’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (39) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (40) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (42) following ‘true’ branch (when ‘base_btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:996:31: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (44) capacity: 24 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (45) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (47) returning to ‘btf__new_empty_split’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (48) calling ‘libbpf_ptr’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (49) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:604:12: note: (50) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (52) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (54) returning to ‘btf__new_empty_split’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (55) returning to ‘btf__distill_base’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5600:12: note: (56) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5604:23: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5613:15: note: (58) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (59) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (60) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (62) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (63) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (64) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (65) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (66) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (67) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (68) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (69) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (70) calling ‘btf__str_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (71) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (72) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (73) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (74) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (75) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (76) returning to ‘btf_add_distilled_types’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (77) following ‘case 4 ... 5:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5442:17: note: (78) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5448:28: note: (79) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:39: note: (80) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:36: note: (81) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (82) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (83) calling ‘btf_add_composite’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2171:12: note: (84) entry to ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (85) calling ‘btf_ensure_modifiable’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (86) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (87) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (88) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (89) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (90) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (91) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (92) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (93) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (94) returning to ‘btf_add_composite’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:12: note: (95) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (96) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (97) calling ‘btf_add_type_mem’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (98) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (99) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (100) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (101) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (102) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (103) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (104) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (105) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (106) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (107) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (108) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (109) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (110) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:9: note: (111) out-of-bounds write from byte 24 till byte 39 but region ends at byte 24 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:9: note: write of 16 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2193:21: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (12) capacity: 25 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (15) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (16) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (17) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (20) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (21) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (23) inlined call to ‘btf__endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__endianness’, inlined from ‘btf__distill_base’ at btf.c:5561:2: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:738:27: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (25) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (26) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (27) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (28) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (29) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (33) inlined call to ‘btf__type_cnt’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__type_cnt’, inlined from ‘btf__distill_base’ at btf.c:5575:24: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:615:19: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5590:15: note: (35) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (36) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (37) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (41) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (42) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (43) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (45) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (46) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (47) calling ‘btf__str_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (48) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (49) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (50) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (52) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (53) returning to ‘btf_add_distilled_types’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (54) following ‘case 4 ... 5:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5442:17: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5448:28: note: (56) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:39: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:36: note: (58) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (60) calling ‘btf_add_composite’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2171:12: note: (61) entry to ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (62) calling ‘btf_ensure_modifiable’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (63) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (64) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (65) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (66) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (67) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (68) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (69) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (71) returning to ‘btf_add_composite’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:12: note: (72) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (73) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (74) calling ‘btf_add_type_mem’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (75) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (76) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (77) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (78) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (79) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (80) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (81) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (82) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (83) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (84) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (85) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (86) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (88) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (89) returning to ‘btf_add_composite’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2181:12: note: (90) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2184:12: note: (91) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2193:21: note: (92) out-of-bounds write from byte 25 till byte 27 but region ends at byte 25 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2193:21: note: write of 3 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2193:21: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (14) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (15) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (16) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (19) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (20) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (22) inlined call to ‘btf__endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__endianness’, inlined from ‘btf__distill_base’ at btf.c:5561:2: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:738:27: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (24) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (25) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (26) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (28) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (32) inlined call to ‘btf__type_cnt’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__type_cnt’, inlined from ‘btf__distill_base’ at btf.c:5575:24: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:615:19: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5591:12: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (36) calling ‘btf__new_empty_split’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1027:13: note: (37) entry to ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (38) calling ‘btf_new_empty’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (39) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (40) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (42) following ‘true’ branch (when ‘base_btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:996:31: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (44) capacity: 24 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (45) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (47) returning to ‘btf__new_empty_split’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (48) calling ‘libbpf_ptr’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (49) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:604:12: note: (50) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (52) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (54) returning to ‘btf__new_empty_split’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (55) returning to ‘btf__distill_base’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5600:12: note: (56) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5604:23: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5613:15: note: (58) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (59) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (60) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (62) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (63) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (64) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (65) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (66) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (67) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (68) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (69) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (70) calling ‘btf__str_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (71) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (72) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (73) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (74) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (75) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (76) returning to ‘btf_add_distilled_types’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (77) following ‘case 4 ... 5:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5442:17: note: (78) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5448:28: note: (79) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:39: note: (80) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:36: note: (81) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (82) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (83) calling ‘btf_add_composite’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2171:12: note: (84) entry to ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (85) calling ‘btf_ensure_modifiable’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (86) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (87) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (88) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (89) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (90) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (91) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (92) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (93) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (94) returning to ‘btf_add_composite’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:12: note: (95) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (96) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (97) calling ‘btf_add_type_mem’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (98) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (99) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (100) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (101) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (102) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (103) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (104) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (105) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (106) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (107) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (108) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (109) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (110) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (111) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (112) returning to ‘btf_add_composite’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2181:12: note: (113) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2184:12: note: (114) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2193:21: note: (115) out-of-bounds write from byte 24 till byte 27 but region ends at byte 24 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2193:21: note: write of 4 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2194:17: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (12) capacity: 25 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (15) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (16) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (17) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (20) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (21) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (23) inlined call to ‘btf__endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__endianness’, inlined from ‘btf__distill_base’ at btf.c:5561:2: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:738:27: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (25) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (26) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (27) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (28) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (29) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (33) inlined call to ‘btf__type_cnt’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__type_cnt’, inlined from ‘btf__distill_base’ at btf.c:5575:24: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:615:19: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5590:15: note: (35) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (36) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (37) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (41) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (42) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (43) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (45) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (46) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (47) calling ‘btf__str_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (48) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (49) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (50) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (52) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (53) returning to ‘btf_add_distilled_types’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (54) following ‘case 4 ... 5:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5442:17: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5448:28: note: (56) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:39: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:36: note: (58) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (60) calling ‘btf_add_composite’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2171:12: note: (61) entry to ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (62) calling ‘btf_ensure_modifiable’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (63) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (64) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (65) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (66) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (67) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (68) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (69) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (71) returning to ‘btf_add_composite’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:12: note: (72) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (73) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (74) calling ‘btf_add_type_mem’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (75) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (76) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (77) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (78) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (79) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (80) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (81) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (82) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (83) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (84) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (85) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (86) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (88) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (89) returning to ‘btf_add_composite’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2181:12: note: (90) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2184:12: note: (91) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2194:17: note: (92) out-of-bounds write from byte 28 till byte 31 but region ends at byte 25 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2194:17: note: write of 4 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2194:17: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (14) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (15) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (16) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (19) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (20) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (22) inlined call to ‘btf__endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__endianness’, inlined from ‘btf__distill_base’ at btf.c:5561:2: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:738:27: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (24) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (25) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (26) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (28) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (32) inlined call to ‘btf__type_cnt’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__type_cnt’, inlined from ‘btf__distill_base’ at btf.c:5575:24: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:615:19: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5591:12: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (36) calling ‘btf__new_empty_split’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1027:13: note: (37) entry to ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (38) calling ‘btf_new_empty’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (39) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (40) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (42) following ‘true’ branch (when ‘base_btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:996:31: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (44) capacity: 24 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (45) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (47) returning to ‘btf__new_empty_split’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (48) calling ‘libbpf_ptr’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (49) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:604:12: note: (50) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (52) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (54) returning to ‘btf__new_empty_split’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (55) returning to ‘btf__distill_base’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5600:12: note: (56) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5604:23: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5613:15: note: (58) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (59) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (60) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (62) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (63) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (64) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (65) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (66) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (67) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (68) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (69) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (70) calling ‘btf__str_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (71) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (72) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (73) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (74) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (75) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (76) returning to ‘btf_add_distilled_types’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (77) following ‘case 4 ... 5:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5442:17: note: (78) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5448:28: note: (79) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:39: note: (80) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:36: note: (81) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (82) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (83) calling ‘btf_add_composite’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2171:12: note: (84) entry to ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (85) calling ‘btf_ensure_modifiable’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (86) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (87) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (88) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (89) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (90) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (91) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (92) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (93) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (94) returning to ‘btf_add_composite’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:12: note: (95) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (96) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (97) calling ‘btf_add_type_mem’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (98) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (99) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (100) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (101) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (102) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (103) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (104) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (105) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (106) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (107) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (108) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (109) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (110) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (111) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (112) returning to ‘btf_add_composite’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2181:12: note: (113) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2184:12: note: (114) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2194:17: note: (115) out-of-bounds write from byte 28 till byte 31 but region ends at byte 24 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2194:17: note: write of 4 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2195:17: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (12) capacity: 25 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (15) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (16) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (17) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (20) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (21) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (23) inlined call to ‘btf__endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__endianness’, inlined from ‘btf__distill_base’ at btf.c:5561:2: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:738:27: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (25) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (26) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (27) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (28) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (29) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (33) inlined call to ‘btf__type_cnt’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__type_cnt’, inlined from ‘btf__distill_base’ at btf.c:5575:24: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:615:19: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5590:15: note: (35) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (36) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (37) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (41) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (42) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (43) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (45) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (46) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (47) calling ‘btf__str_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (48) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (49) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (50) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (52) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (53) returning to ‘btf_add_distilled_types’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (54) following ‘case 4 ... 5:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5442:17: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5448:28: note: (56) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:39: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:36: note: (58) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (60) calling ‘btf_add_composite’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2171:12: note: (61) entry to ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (62) calling ‘btf_ensure_modifiable’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (63) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (64) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (65) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (66) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (67) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (68) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (69) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (71) returning to ‘btf_add_composite’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:12: note: (72) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (73) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (74) calling ‘btf_add_type_mem’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (75) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (76) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (77) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (78) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (79) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (80) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (81) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (82) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (83) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (84) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (85) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (86) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (88) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (89) returning to ‘btf_add_composite’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2181:12: note: (90) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2184:12: note: (91) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2195:17: note: (92) out-of-bounds write from byte 32 till byte 35 but region ends at byte 25 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2195:17: note: write of 4 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2195:17: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (14) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (15) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (16) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (19) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (20) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (22) inlined call to ‘btf__endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__endianness’, inlined from ‘btf__distill_base’ at btf.c:5561:2: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:738:27: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (24) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (25) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (26) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (28) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (32) inlined call to ‘btf__type_cnt’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__type_cnt’, inlined from ‘btf__distill_base’ at btf.c:5575:24: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:615:19: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5591:12: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (36) calling ‘btf__new_empty_split’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1027:13: note: (37) entry to ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (38) calling ‘btf_new_empty’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (39) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (40) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (42) following ‘true’ branch (when ‘base_btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:996:31: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (44) capacity: 24 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (45) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (47) returning to ‘btf__new_empty_split’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (48) calling ‘libbpf_ptr’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (49) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:604:12: note: (50) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (52) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (54) returning to ‘btf__new_empty_split’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (55) returning to ‘btf__distill_base’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5600:12: note: (56) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5604:23: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5613:15: note: (58) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (59) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (60) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (62) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (63) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (64) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (65) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (66) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (67) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (68) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (69) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (70) calling ‘btf__str_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (71) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (72) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (73) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (74) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (75) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (76) returning to ‘btf_add_distilled_types’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (77) following ‘case 4 ... 5:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5442:17: note: (78) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5448:28: note: (79) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:39: note: (80) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:36: note: (81) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (82) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (83) calling ‘btf_add_composite’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2171:12: note: (84) entry to ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (85) calling ‘btf_ensure_modifiable’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (86) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (87) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (88) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (89) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (90) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (91) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (92) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (93) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (94) returning to ‘btf_add_composite’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:12: note: (95) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (96) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (97) calling ‘btf_add_type_mem’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (98) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (99) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (100) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (101) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (102) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (103) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (104) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (105) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (106) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (107) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (108) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (109) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (110) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (111) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (112) returning to ‘btf_add_composite’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2181:12: note: (113) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2184:12: note: (114) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2195:17: note: (115) out-of-bounds write from byte 32 till byte 35 but region ends at byte 24 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2195:17: note: write of 4 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2330:21: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (12) capacity: 25 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (15) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (16) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (17) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (20) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (21) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (23) inlined call to ‘btf__endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__endianness’, inlined from ‘btf__distill_base’ at btf.c:5561:2: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:738:27: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (25) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (26) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (27) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (28) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (29) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (33) inlined call to ‘btf__type_cnt’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__type_cnt’, inlined from ‘btf__distill_base’ at btf.c:5575:24: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:615:19: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5590:15: note: (35) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (36) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (37) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (41) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (42) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (43) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (45) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (46) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (47) calling ‘btf__str_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (48) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (49) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (50) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (52) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (53) returning to ‘btf_add_distilled_types’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (54) following ‘case 6:, case 19:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5458:17: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5466:28: note: (56) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:39: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:36: note: (58) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (60) inlined call to ‘btf__add_enum’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__add_enum’, inlined from ‘btf_add_distilled_types’ at btf.c:5469:11: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2356:16: note: (61) calling ‘btf_add_enum_common’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2305:12: note: (62) entry to ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2312:12: note: (63) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (64) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (65) calling ‘btf_ensure_modifiable’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (66) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (67) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (68) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (69) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (71) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (72) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (73) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (74) returning to ‘btf_add_enum_common’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:12: note: (75) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (76) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (77) calling ‘btf_add_type_mem’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (78) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (79) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (80) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (81) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (82) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (83) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (84) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (85) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (86) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (88) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (89) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (90) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (91) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (92) returning to ‘btf_add_enum_common’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2320:12: note: (93) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2323:12: note: (94) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2330:21: note: (95) out-of-bounds write from byte 25 till byte 27 but region ends at byte 25 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2330:21: note: write of 3 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2330:21: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (14) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (15) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (16) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (19) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (20) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (22) inlined call to ‘btf__endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__endianness’, inlined from ‘btf__distill_base’ at btf.c:5561:2: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:738:27: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (24) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (25) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (26) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (28) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (32) inlined call to ‘btf__type_cnt’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__type_cnt’, inlined from ‘btf__distill_base’ at btf.c:5575:24: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:615:19: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5591:12: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (36) calling ‘btf__new_empty_split’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1027:13: note: (37) entry to ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (38) calling ‘btf_new_empty’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (39) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (40) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (42) following ‘true’ branch (when ‘base_btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:996:31: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (44) capacity: 24 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (45) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (47) returning to ‘btf__new_empty_split’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (48) calling ‘libbpf_ptr’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (49) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:604:12: note: (50) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (52) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (54) returning to ‘btf__new_empty_split’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (55) returning to ‘btf__distill_base’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5600:12: note: (56) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5604:23: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5613:15: note: (58) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (59) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (60) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (62) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (63) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (64) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (65) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (66) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (67) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (68) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (69) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (70) calling ‘btf__str_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (71) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (72) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (73) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (74) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (75) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (76) returning to ‘btf_add_distilled_types’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (77) following ‘case 6:, case 19:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5458:17: note: (78) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5466:28: note: (79) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:39: note: (80) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:36: note: (81) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (82) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (83) inlined call to ‘btf__add_enum’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__add_enum’, inlined from ‘btf_add_distilled_types’ at btf.c:5469:11: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2356:16: note: (84) calling ‘btf_add_enum_common’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2305:12: note: (85) entry to ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2312:12: note: (86) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (88) calling ‘btf_ensure_modifiable’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (89) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (90) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (91) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (92) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (93) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (94) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (95) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (96) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (97) returning to ‘btf_add_enum_common’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:12: note: (98) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (99) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (100) calling ‘btf_add_type_mem’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (101) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (102) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (103) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (104) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (105) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (106) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (107) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (108) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (109) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (110) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (111) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (112) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (113) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (114) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (115) returning to ‘btf_add_enum_common’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2320:12: note: (116) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2323:12: note: (117) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2330:21: note: (118) out-of-bounds write from byte 24 till byte 27 but region ends at byte 24 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2330:21: note: write of 4 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2331:17: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (12) capacity: 25 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (15) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (16) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (17) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (20) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (21) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (23) inlined call to ‘btf__endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__endianness’, inlined from ‘btf__distill_base’ at btf.c:5561:2: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:738:27: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (25) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (26) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (27) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (28) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (29) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (33) inlined call to ‘btf__type_cnt’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__type_cnt’, inlined from ‘btf__distill_base’ at btf.c:5575:24: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:615:19: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5590:15: note: (35) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (36) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (37) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (41) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (42) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (43) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (45) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (46) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (47) calling ‘btf__str_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (48) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (49) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (50) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (52) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (53) returning to ‘btf_add_distilled_types’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (54) following ‘case 6:, case 19:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5458:17: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5466:28: note: (56) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:39: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:36: note: (58) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (60) inlined call to ‘btf__add_enum’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__add_enum’, inlined from ‘btf_add_distilled_types’ at btf.c:5469:11: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2356:16: note: (61) calling ‘btf_add_enum_common’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2305:12: note: (62) entry to ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2312:12: note: (63) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (64) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (65) calling ‘btf_ensure_modifiable’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (66) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (67) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (68) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (69) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (71) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (72) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (73) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (74) returning to ‘btf_add_enum_common’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:12: note: (75) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (76) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (77) calling ‘btf_add_type_mem’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (78) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (79) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (80) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (81) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (82) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (83) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (84) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (85) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (86) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (88) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (89) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (90) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (91) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (92) returning to ‘btf_add_enum_common’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2320:12: note: (93) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2323:12: note: (94) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2331:17: note: (95) out-of-bounds write from byte 28 till byte 31 but region ends at byte 25 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2331:17: note: write of 4 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2331:17: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (14) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (15) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (16) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (19) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (20) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (22) inlined call to ‘btf__endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__endianness’, inlined from ‘btf__distill_base’ at btf.c:5561:2: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:738:27: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (24) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (25) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (26) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (28) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (32) inlined call to ‘btf__type_cnt’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__type_cnt’, inlined from ‘btf__distill_base’ at btf.c:5575:24: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:615:19: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5591:12: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (36) calling ‘btf__new_empty_split’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1027:13: note: (37) entry to ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (38) calling ‘btf_new_empty’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (39) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (40) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (42) following ‘true’ branch (when ‘base_btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:996:31: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (44) capacity: 24 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (45) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (47) returning to ‘btf__new_empty_split’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (48) calling ‘libbpf_ptr’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (49) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:604:12: note: (50) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (52) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (54) returning to ‘btf__new_empty_split’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (55) returning to ‘btf__distill_base’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5600:12: note: (56) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5604:23: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5613:15: note: (58) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (59) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (60) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (62) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (63) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (64) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (65) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (66) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (67) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (68) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (69) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (70) calling ‘btf__str_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (71) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (72) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (73) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (74) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (75) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (76) returning to ‘btf_add_distilled_types’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (77) following ‘case 6:, case 19:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5458:17: note: (78) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5466:28: note: (79) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:39: note: (80) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:36: note: (81) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (82) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (83) inlined call to ‘btf__add_enum’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__add_enum’, inlined from ‘btf_add_distilled_types’ at btf.c:5469:11: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2356:16: note: (84) calling ‘btf_add_enum_common’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2305:12: note: (85) entry to ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2312:12: note: (86) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (88) calling ‘btf_ensure_modifiable’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (89) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (90) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (91) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (92) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (93) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (94) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (95) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (96) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (97) returning to ‘btf_add_enum_common’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:12: note: (98) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (99) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (100) calling ‘btf_add_type_mem’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (101) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (102) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (103) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (104) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (105) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (106) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (107) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (108) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (109) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (110) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (111) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (112) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (113) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (114) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (115) returning to ‘btf_add_enum_common’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2320:12: note: (116) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2323:12: note: (117) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2331:17: note: (118) out-of-bounds write from byte 28 till byte 31 but region ends at byte 24 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2331:17: note: write of 4 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2332:17: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (12) capacity: 25 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (15) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (16) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (17) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (20) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (21) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (23) inlined call to ‘btf__endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__endianness’, inlined from ‘btf__distill_base’ at btf.c:5561:2: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:738:27: note: (24) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (25) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (26) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (27) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (28) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (29) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (33) inlined call to ‘btf__type_cnt’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__type_cnt’, inlined from ‘btf__distill_base’ at btf.c:5575:24: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:615:19: note: (34) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5590:15: note: (35) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (36) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (37) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (39) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (40) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (41) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (42) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (43) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (45) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (46) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (47) calling ‘btf__str_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (48) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (49) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (50) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (52) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (53) returning to ‘btf_add_distilled_types’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (54) following ‘case 6:, case 19:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5458:17: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5466:28: note: (56) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:39: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:36: note: (58) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (60) inlined call to ‘btf__add_enum’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__add_enum’, inlined from ‘btf_add_distilled_types’ at btf.c:5469:11: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2356:16: note: (61) calling ‘btf_add_enum_common’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2305:12: note: (62) entry to ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2312:12: note: (63) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (64) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (65) calling ‘btf_ensure_modifiable’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (66) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (67) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (68) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (69) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (71) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (72) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (73) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (74) returning to ‘btf_add_enum_common’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:12: note: (75) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (76) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (77) calling ‘btf_add_type_mem’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (78) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (79) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (80) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (81) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (82) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (83) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (84) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (85) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (86) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (88) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (89) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (90) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (91) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (92) returning to ‘btf_add_enum_common’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2320:12: note: (93) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2323:12: note: (94) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2332:17: note: (95) out-of-bounds write from byte 32 till byte 35 but region ends at byte 25 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2332:17: note: write of 4 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2332:17: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (14) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (15) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (16) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (19) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (20) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (22) inlined call to ‘btf__endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__endianness’, inlined from ‘btf__distill_base’ at btf.c:5561:2: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:738:27: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (24) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (25) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (26) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (28) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (32) inlined call to ‘btf__type_cnt’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] In function ‘btf__type_cnt’, inlined from ‘btf__distill_base’ at btf.c:5575:24: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:615:19: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5591:12: note: (34) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (35) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (36) calling ‘btf__new_empty_split’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1027:13: note: (37) entry to ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (38) calling ‘btf_new_empty’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (39) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (40) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (42) following ‘true’ branch (when ‘base_btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:996:31: note: (43) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (44) capacity: 24 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (45) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (46) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (47) returning to ‘btf__new_empty_split’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (48) calling ‘libbpf_ptr’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (49) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:604:12: note: (50) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (52) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (53) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (54) returning to ‘btf__new_empty_split’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (55) returning to ‘btf__distill_base’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5600:12: note: (56) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5604:23: note: (57) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5613:15: note: (58) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (59) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (60) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (62) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (63) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (64) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (65) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (66) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (67) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (68) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (69) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (70) calling ‘btf__str_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (71) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (72) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (73) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (74) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (75) inlined call to ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__name_by_offset’, inlined from ‘btf_add_distilled_types’ at btf.c:5431:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (76) returning to ‘btf_add_distilled_types’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (77) following ‘case 6:, case 19:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5458:17: note: (78) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5466:28: note: (79) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:39: note: (80) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:36: note: (81) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (82) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (83) inlined call to ‘btf__add_enum’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] In function ‘btf__add_enum’, inlined from ‘btf_add_distilled_types’ at btf.c:5469:11: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2356:16: note: (84) calling ‘btf_add_enum_common’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2305:12: note: (85) entry to ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2312:12: note: (86) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (88) calling ‘btf_ensure_modifiable’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (89) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (90) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (91) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (92) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (93) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (94) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (95) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (96) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (97) returning to ‘btf_add_enum_common’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:12: note: (98) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (99) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (100) calling ‘btf_add_type_mem’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (101) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (102) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (103) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (104) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (105) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (106) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (107) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (108) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (109) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (110) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (111) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (112) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (113) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (114) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (115) returning to ‘btf_add_enum_common’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2320:12: note: (116) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2323:12: note: (117) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2332:17: note: (118) out-of-bounds write from byte 32 till byte 35 but region ends at byte 24 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2332:17: note: write of 4 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: internal warning: child 73 timed out after 30s <--[csmock-gcc-wrapper] cswrap: error: child 73 (/usr/bin/csmock-gcc-wrapper) terminated by signal 15 (timed out) make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -c libbpf.c -o staticobjs/libbpf.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c btf_dump.c -o sharedobjs/btf_dump.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c relo_core.c -o sharedobjs/relo_core.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c usdt.c -o sharedobjs/usdt.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c btf.c -o sharedobjs/btf.o /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf.c: internal warning: child 87 timed out after 30s <--[csmock-gcc-wrapper] cswrap: error: child 87 (/usr/bin/csmock-gcc-wrapper) terminated by signal 15 (timed out) /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf_dump.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/relo_core.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:910: error: uninitvar(CWE-457): Uninitialized variable: tmp <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c: In function ‘bpf_link_usdt_detach’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:874:44: warning: leak of ‘*man.free_spec_ids’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:821:12: note: (1) entry to ‘bpf_link_usdt_detach’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:849:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:856:37: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:859:32: note: (4) inlined call to ‘libbpf_reallocarray’ from ‘bpf_link_usdt_detach’ <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:21: <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘bpf_link_usdt_detach’ at usdt.c:859:18: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (5) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (6) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (7) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (8) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c: In function ‘bpf_link_usdt_detach’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:870:20: note: (9) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:872:41: note: (10) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/usdt.c:874:44: note: (11) ‘*man.free_spec_ids’ leaks here; was allocated at (7) <--[csmock-gcc-wrapper] At top level: cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1805: error: uninitvar(CWE-457): Uninitialized variable: mapped_off <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:4997: error: uninitvar(CWE-457): Uninitialized variable: cand_id <--[cppcheck] In file included from /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:16: <--[csmock-gcc-wrapper] In function ‘IS_ERR’, inlined from ‘libbpf_ptr’ at libbpf_internal.h:604:6: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:25:29: warning: leak of ‘btf_new_empty(0)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:11:27: note: in definition of macro ‘IS_ERR_VALUE’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_ptr’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:984:15: note: (8) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (9) assuming ‘btf’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (10) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (12) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (16) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (17) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:22: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (18) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (19) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (20) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:604:13: note: (21) inlined call to ‘IS_ERR’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] In function ‘IS_ERR’, inlined from ‘libbpf_ptr’ at libbpf_internal.h:604:6: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:25:29: note: (22) ‘btf_new_empty(0)’ leaks here; was allocated at (8) <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:11:27: note: in definition of macro ‘IS_ERR_VALUE’ <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:17: <--[csmock-gcc-wrapper] In function ‘btf_kind’, inlined from ‘btf_is_int’ at btf.h:381:9, inlined from ‘determine_ptr_size.part.0’ at btf.c:665:8: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.h:361:31: warning: dereference of NULL ‘0’ [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/uapi/linux/btf.h:55:36: note: in definition of macro ‘BTF_INFO_KIND’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘determine_ptr_size.part.0’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:640:12: note: (1) entry to ‘determine_ptr_size.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:663:23: note: (2) following ‘true’ branch (when ‘n > i’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:664:21: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:664:21: note: (4) calling ‘btf__type_by_id’ from ‘determine_ptr_size.part.0’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:633:24: note: (5) entry to ‘btf__type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:635:12: note: (6) following ‘true’ branch... <--[csmock-gcc-wrapper] cc1: note: (7) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:664:21: note: (8) returning to ‘determine_ptr_size.part.0’ from ‘btf__type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:665:22: note: (9) inlined call to ‘btf_is_int’ from ‘determine_ptr_size.part.0’ <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:19: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.h:381:16: note: (10) inlined call to ‘btf_kind’ from ‘btf_is_int’ <--[csmock-gcc-wrapper] In function ‘btf_kind’, inlined from ‘btf_is_int’ at btf.h:381:9, inlined from ‘determine_ptr_size.part.0’ at btf.c:665:8: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.h:361:31: note: (11) dereference of NULL ‘btf__type_by_id(btf, (unsigned int)i)’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/uapi/linux/btf.h:55:36: note: in definition of macro ‘BTF_INFO_KIND’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h: In function ‘libbpf_ptr’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: warning: leak of ‘’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (12) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (13) assuming ‘calloc(1, (long unsigned int))’ is non-NULL <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (14) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (15) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (16) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (17) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (18) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (19) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (20) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (21) ‘’ leaks here; was allocated at (12) <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:9: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (12) capacity: 25 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (15) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (16) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (17) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (20) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (21) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (24) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (25) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (26) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (28) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5590:15: note: (33) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (34) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (35) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (37) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (39) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (40) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (41) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (43) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (44) calling ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1561:13: note: (45) entry to ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (46) calling ‘btf__str_by_offset’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (47) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (48) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (49) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (51) returning to ‘btf__name_by_offset’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (52) returning to ‘btf_add_distilled_types’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (53) following ‘case 4 ... 5:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5442:17: note: (54) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5448:28: note: (55) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:39: note: (56) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:36: note: (57) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (58) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (59) calling ‘btf_add_composite’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2171:12: note: (60) entry to ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (61) calling ‘btf_ensure_modifiable’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (62) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (63) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (64) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (65) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (66) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (67) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (68) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (69) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (70) returning to ‘btf_add_composite’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:12: note: (71) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (72) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (73) calling ‘btf_add_type_mem’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (74) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (75) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (76) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (77) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (78) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (79) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (80) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (81) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (82) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (83) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (84) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (85) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (86) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:9: note: (87) out-of-bounds write from byte 25 till byte 39 but region ends at byte 25 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:9: note: write of 15 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:9: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (14) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (15) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (16) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (19) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (20) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (23) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (24) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (25) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (26) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (27) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5591:12: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (34) calling ‘btf__new_empty_split’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1027:13: note: (35) entry to ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (36) calling ‘btf_new_empty’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (37) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (38) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (40) following ‘true’ branch (when ‘base_btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:996:31: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (42) capacity: 24 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (43) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (45) returning to ‘btf__new_empty_split’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (46) calling ‘libbpf_ptr’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (47) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:604:12: note: (48) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (50) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (52) returning to ‘btf__new_empty_split’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (53) returning to ‘btf__distill_base’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5600:12: note: (54) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5604:23: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5613:15: note: (56) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (57) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (58) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (60) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (62) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (63) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (64) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (65) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (66) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (67) calling ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1561:13: note: (68) entry to ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (69) calling ‘btf__str_by_offset’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (70) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (71) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (72) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (73) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (74) returning to ‘btf__name_by_offset’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (75) returning to ‘btf_add_distilled_types’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (76) following ‘case 4 ... 5:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5442:17: note: (77) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5448:28: note: (78) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:39: note: (79) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:36: note: (80) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (81) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (82) calling ‘btf_add_composite’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2171:12: note: (83) entry to ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (84) calling ‘btf_ensure_modifiable’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (85) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (86) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (88) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (89) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (90) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (91) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (92) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (93) returning to ‘btf_add_composite’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:12: note: (94) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (95) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (96) calling ‘btf_add_type_mem’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (97) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (98) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (99) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (100) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (101) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (102) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (103) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (104) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (105) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (106) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (107) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘libbpf_add_mem’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (108) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (109) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:9: note: (110) out-of-bounds write from byte 24 till byte 39 but region ends at byte 24 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:9: note: write of 16 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2193:21: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (12) capacity: 25 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (15) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (16) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (17) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (20) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (21) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (24) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (25) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (26) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (28) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5590:15: note: (33) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (34) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (35) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (37) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (39) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (40) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (41) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (43) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (44) calling ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1561:13: note: (45) entry to ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (46) calling ‘btf__str_by_offset’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (47) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (48) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (49) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (51) returning to ‘btf__name_by_offset’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (52) returning to ‘btf_add_distilled_types’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (53) following ‘case 4 ... 5:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5442:17: note: (54) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5448:28: note: (55) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:39: note: (56) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:36: note: (57) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (58) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (59) calling ‘btf_add_composite’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2171:12: note: (60) entry to ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (61) calling ‘btf_ensure_modifiable’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (62) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (63) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (64) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (65) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (66) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (67) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (68) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (69) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (70) returning to ‘btf_add_composite’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:12: note: (71) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (72) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (73) calling ‘btf_add_type_mem’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (74) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (75) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (76) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (77) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (78) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (79) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (80) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (81) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (82) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (83) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (84) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (85) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (86) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (87) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (88) returning to ‘btf_add_composite’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2181:12: note: (89) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2184:12: note: (90) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2193:21: note: (91) out-of-bounds write from byte 25 till byte 27 but region ends at byte 25 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2193:21: note: write of 3 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2193:21: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (14) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (15) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (16) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (19) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (20) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (23) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (24) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (25) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (26) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (27) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5591:12: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (34) calling ‘btf__new_empty_split’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1027:13: note: (35) entry to ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (36) calling ‘btf_new_empty’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (37) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (38) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (40) following ‘true’ branch (when ‘base_btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:996:31: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (42) capacity: 24 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (43) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (45) returning to ‘btf__new_empty_split’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (46) calling ‘libbpf_ptr’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (47) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:604:12: note: (48) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (50) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (52) returning to ‘btf__new_empty_split’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (53) returning to ‘btf__distill_base’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5600:12: note: (54) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5604:23: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5613:15: note: (56) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (57) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (58) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (60) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (62) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (63) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (64) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (65) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (66) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (67) calling ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1561:13: note: (68) entry to ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (69) calling ‘btf__str_by_offset’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (70) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (71) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (72) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (73) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (74) returning to ‘btf__name_by_offset’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (75) returning to ‘btf_add_distilled_types’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (76) following ‘case 4 ... 5:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5442:17: note: (77) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5448:28: note: (78) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:39: note: (79) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:36: note: (80) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (81) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (82) calling ‘btf_add_composite’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2171:12: note: (83) entry to ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (84) calling ‘btf_ensure_modifiable’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (85) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (86) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (88) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (89) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (90) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (91) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (92) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (93) returning to ‘btf_add_composite’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:12: note: (94) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (95) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (96) calling ‘btf_add_type_mem’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (97) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (98) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (99) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (100) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (101) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (102) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (103) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (104) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (105) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (106) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (107) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (108) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (109) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (110) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (111) returning to ‘btf_add_composite’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2181:12: note: (112) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2184:12: note: (113) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2193:21: note: (114) out-of-bounds write from byte 24 till byte 27 but region ends at byte 24 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2193:21: note: write of 4 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2194:17: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (12) capacity: 25 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (15) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (16) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (17) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (20) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (21) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (24) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (25) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (26) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (28) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5590:15: note: (33) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (34) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (35) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (37) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (39) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (40) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (41) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (43) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (44) calling ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1561:13: note: (45) entry to ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (46) calling ‘btf__str_by_offset’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (47) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (48) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (49) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (51) returning to ‘btf__name_by_offset’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (52) returning to ‘btf_add_distilled_types’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (53) following ‘case 4 ... 5:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5442:17: note: (54) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5448:28: note: (55) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:39: note: (56) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:36: note: (57) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (58) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (59) calling ‘btf_add_composite’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2171:12: note: (60) entry to ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (61) calling ‘btf_ensure_modifiable’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (62) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (63) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (64) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (65) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (66) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (67) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (68) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (69) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (70) returning to ‘btf_add_composite’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:12: note: (71) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (72) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (73) calling ‘btf_add_type_mem’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (74) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (75) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (76) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (77) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (78) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (79) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (80) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (81) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (82) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (83) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (84) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (85) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (86) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (87) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (88) returning to ‘btf_add_composite’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2181:12: note: (89) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2184:12: note: (90) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2194:17: note: (91) out-of-bounds write from byte 28 till byte 31 but region ends at byte 25 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2194:17: note: write of 4 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2194:17: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (14) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (15) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (16) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (19) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (20) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (23) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (24) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (25) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (26) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (27) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5591:12: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (34) calling ‘btf__new_empty_split’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1027:13: note: (35) entry to ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (36) calling ‘btf_new_empty’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (37) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (38) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (40) following ‘true’ branch (when ‘base_btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:996:31: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (42) capacity: 24 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (43) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (45) returning to ‘btf__new_empty_split’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (46) calling ‘libbpf_ptr’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (47) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:604:12: note: (48) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (50) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (52) returning to ‘btf__new_empty_split’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (53) returning to ‘btf__distill_base’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5600:12: note: (54) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5604:23: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5613:15: note: (56) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (57) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (58) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (60) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (62) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (63) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (64) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (65) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (66) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (67) calling ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1561:13: note: (68) entry to ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (69) calling ‘btf__str_by_offset’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (70) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (71) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (72) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (73) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (74) returning to ‘btf__name_by_offset’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (75) returning to ‘btf_add_distilled_types’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (76) following ‘case 4 ... 5:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5442:17: note: (77) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5448:28: note: (78) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:39: note: (79) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:36: note: (80) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (81) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (82) calling ‘btf_add_composite’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2171:12: note: (83) entry to ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (84) calling ‘btf_ensure_modifiable’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (85) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (86) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (88) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (89) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (90) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (91) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (92) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (93) returning to ‘btf_add_composite’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:12: note: (94) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (95) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (96) calling ‘btf_add_type_mem’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (97) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (98) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (99) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (100) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (101) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (102) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (103) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (104) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (105) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (106) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (107) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (108) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (109) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (110) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (111) returning to ‘btf_add_composite’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2181:12: note: (112) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2184:12: note: (113) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2194:17: note: (114) out-of-bounds write from byte 28 till byte 31 but region ends at byte 24 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2194:17: note: write of 4 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2195:17: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (12) capacity: 25 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (15) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (16) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (17) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (20) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (21) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (24) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (25) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (26) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (28) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5590:15: note: (33) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (34) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (35) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (37) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (39) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (40) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (41) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (43) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (44) calling ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1561:13: note: (45) entry to ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (46) calling ‘btf__str_by_offset’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (47) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (48) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (49) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (51) returning to ‘btf__name_by_offset’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (52) returning to ‘btf_add_distilled_types’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (53) following ‘case 4 ... 5:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5442:17: note: (54) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5448:28: note: (55) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:39: note: (56) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:36: note: (57) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (58) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (59) calling ‘btf_add_composite’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2171:12: note: (60) entry to ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (61) calling ‘btf_ensure_modifiable’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (62) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (63) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (64) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (65) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (66) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (67) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (68) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (69) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (70) returning to ‘btf_add_composite’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:12: note: (71) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (72) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (73) calling ‘btf_add_type_mem’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (74) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (75) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (76) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (77) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (78) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (79) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (80) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (81) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (82) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (83) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (84) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (85) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (86) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (87) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (88) returning to ‘btf_add_composite’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2181:12: note: (89) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2184:12: note: (90) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2195:17: note: (91) out-of-bounds write from byte 32 till byte 35 but region ends at byte 25 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2195:17: note: write of 4 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2195:17: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (14) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (15) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (16) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (19) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (20) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (23) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (24) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (25) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (26) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (27) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5591:12: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (34) calling ‘btf__new_empty_split’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1027:13: note: (35) entry to ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (36) calling ‘btf_new_empty’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (37) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (38) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (40) following ‘true’ branch (when ‘base_btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:996:31: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (42) capacity: 24 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (43) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (45) returning to ‘btf__new_empty_split’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (46) calling ‘libbpf_ptr’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (47) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:604:12: note: (48) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (50) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (52) returning to ‘btf__new_empty_split’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (53) returning to ‘btf__distill_base’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5600:12: note: (54) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5604:23: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5613:15: note: (56) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (57) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (58) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (60) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (62) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (63) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (64) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (65) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (66) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (67) calling ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1561:13: note: (68) entry to ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (69) calling ‘btf__str_by_offset’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (70) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (71) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (72) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (73) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (74) returning to ‘btf__name_by_offset’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (75) returning to ‘btf_add_distilled_types’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (76) following ‘case 4 ... 5:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5442:17: note: (77) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5448:28: note: (78) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:39: note: (79) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5449:36: note: (80) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (81) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5451:39: note: (82) calling ‘btf_add_composite’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2171:12: note: (83) entry to ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (84) calling ‘btf_ensure_modifiable’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (85) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (86) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (88) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (89) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (90) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (91) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (92) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:13: note: (93) returning to ‘btf_add_composite’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2176:12: note: (94) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (95) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (96) calling ‘btf_add_type_mem’ from ‘btf_add_composite’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (97) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (98) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (99) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (100) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (101) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (102) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (103) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (104) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (105) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (106) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (107) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_composite’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (108) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (109) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (110) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2180:13: note: (111) returning to ‘btf_add_composite’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2181:12: note: (112) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2184:12: note: (113) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2195:17: note: (114) out-of-bounds write from byte 32 till byte 35 but region ends at byte 24 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2195:17: note: write of 4 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2330:21: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (12) capacity: 25 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (15) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (16) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (17) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (20) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (21) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (24) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (25) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (26) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (28) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5590:15: note: (33) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (34) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (35) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (37) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (39) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (40) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (41) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (43) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (44) calling ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1561:13: note: (45) entry to ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (46) calling ‘btf__str_by_offset’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (47) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (48) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (49) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (51) returning to ‘btf__name_by_offset’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (52) returning to ‘btf_add_distilled_types’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (53) following ‘case 6:, case 19:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5458:17: note: (54) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5466:28: note: (55) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:39: note: (56) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:36: note: (57) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (58) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (59) calling ‘btf__add_enum’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2350:5: note: (60) entry to ‘btf__add_enum’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2356:16: note: (61) calling ‘btf_add_enum_common’ from ‘btf__add_enum’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2305:12: note: (62) entry to ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2312:12: note: (63) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (64) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (65) calling ‘btf_ensure_modifiable’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (66) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (67) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (68) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (69) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (71) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (72) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (73) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (74) returning to ‘btf_add_enum_common’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:12: note: (75) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (76) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (77) calling ‘btf_add_type_mem’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (78) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (79) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (80) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (81) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (82) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (83) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (84) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (85) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (86) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (88) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (89) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (90) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (91) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (92) returning to ‘btf_add_enum_common’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2320:12: note: (93) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2323:12: note: (94) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2330:21: note: (95) out-of-bounds write from byte 25 till byte 27 but region ends at byte 25 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2330:21: note: write of 3 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2330:21: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (14) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (15) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (16) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (19) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (20) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (23) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (24) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (25) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (26) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (27) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5591:12: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (34) calling ‘btf__new_empty_split’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1027:13: note: (35) entry to ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (36) calling ‘btf_new_empty’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (37) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (38) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (40) following ‘true’ branch (when ‘base_btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:996:31: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (42) capacity: 24 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (43) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (45) returning to ‘btf__new_empty_split’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (46) calling ‘libbpf_ptr’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (47) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:604:12: note: (48) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (50) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (52) returning to ‘btf__new_empty_split’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (53) returning to ‘btf__distill_base’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5600:12: note: (54) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5604:23: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5613:15: note: (56) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (57) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (58) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (60) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (62) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (63) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (64) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (65) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (66) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (67) calling ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1561:13: note: (68) entry to ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (69) calling ‘btf__str_by_offset’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (70) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (71) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (72) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (73) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (74) returning to ‘btf__name_by_offset’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (75) returning to ‘btf_add_distilled_types’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (76) following ‘case 6:, case 19:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5458:17: note: (77) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5466:28: note: (78) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:39: note: (79) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:36: note: (80) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (81) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (82) calling ‘btf__add_enum’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2350:5: note: (83) entry to ‘btf__add_enum’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2356:16: note: (84) calling ‘btf_add_enum_common’ from ‘btf__add_enum’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2305:12: note: (85) entry to ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2312:12: note: (86) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (88) calling ‘btf_ensure_modifiable’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (89) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (90) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (91) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (92) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (93) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (94) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (95) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (96) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (97) returning to ‘btf_add_enum_common’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:12: note: (98) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (99) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (100) calling ‘btf_add_type_mem’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (101) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (102) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (103) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (104) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (105) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (106) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (107) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (108) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (109) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (110) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (111) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (112) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (113) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (114) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (115) returning to ‘btf_add_enum_common’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2320:12: note: (116) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2323:12: note: (117) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2330:21: note: (118) out-of-bounds write from byte 24 till byte 27 but region ends at byte 24 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2330:21: note: write of 4 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2331:17: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (12) capacity: 25 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (15) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (16) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (17) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (20) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (21) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (24) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (25) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (26) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (28) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5590:15: note: (33) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (34) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (35) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (37) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (39) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (40) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (41) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (43) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (44) calling ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1561:13: note: (45) entry to ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (46) calling ‘btf__str_by_offset’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (47) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (48) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (49) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (51) returning to ‘btf__name_by_offset’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (52) returning to ‘btf_add_distilled_types’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (53) following ‘case 6:, case 19:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5458:17: note: (54) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5466:28: note: (55) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:39: note: (56) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:36: note: (57) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (58) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (59) calling ‘btf__add_enum’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2350:5: note: (60) entry to ‘btf__add_enum’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2356:16: note: (61) calling ‘btf_add_enum_common’ from ‘btf__add_enum’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2305:12: note: (62) entry to ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2312:12: note: (63) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (64) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (65) calling ‘btf_ensure_modifiable’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (66) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (67) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (68) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (69) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (71) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (72) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (73) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (74) returning to ‘btf_add_enum_common’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:12: note: (75) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (76) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (77) calling ‘btf_add_type_mem’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (78) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (79) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (80) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (81) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (82) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (83) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (84) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (85) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (86) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (88) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (89) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (90) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (91) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (92) returning to ‘btf_add_enum_common’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2320:12: note: (93) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2323:12: note: (94) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2331:17: note: (95) out-of-bounds write from byte 28 till byte 31 but region ends at byte 25 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2331:17: note: write of 4 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2331:17: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (14) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (15) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (16) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (19) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (20) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (23) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (24) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (25) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (26) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (27) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5591:12: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (34) calling ‘btf__new_empty_split’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1027:13: note: (35) entry to ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (36) calling ‘btf_new_empty’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (37) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (38) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (40) following ‘true’ branch (when ‘base_btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:996:31: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (42) capacity: 24 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (43) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (45) returning to ‘btf__new_empty_split’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (46) calling ‘libbpf_ptr’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (47) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:604:12: note: (48) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (50) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (52) returning to ‘btf__new_empty_split’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (53) returning to ‘btf__distill_base’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5600:12: note: (54) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5604:23: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5613:15: note: (56) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (57) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (58) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (60) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (62) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (63) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (64) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (65) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (66) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (67) calling ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1561:13: note: (68) entry to ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (69) calling ‘btf__str_by_offset’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (70) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (71) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (72) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (73) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (74) returning to ‘btf__name_by_offset’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (75) returning to ‘btf_add_distilled_types’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (76) following ‘case 6:, case 19:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5458:17: note: (77) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5466:28: note: (78) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:39: note: (79) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:36: note: (80) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (81) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (82) calling ‘btf__add_enum’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2350:5: note: (83) entry to ‘btf__add_enum’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2356:16: note: (84) calling ‘btf_add_enum_common’ from ‘btf__add_enum’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2305:12: note: (85) entry to ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2312:12: note: (86) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (88) calling ‘btf_ensure_modifiable’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (89) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (90) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (91) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (92) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (93) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (94) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (95) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (96) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (97) returning to ‘btf_add_enum_common’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:12: note: (98) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (99) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (100) calling ‘btf_add_type_mem’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (101) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (102) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (103) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (104) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (105) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (106) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (107) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (108) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (109) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (110) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (111) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (112) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (113) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (114) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (115) returning to ‘btf_add_enum_common’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2320:12: note: (116) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2323:12: note: (117) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2331:17: note: (118) out-of-bounds write from byte 28 till byte 31 but region ends at byte 24 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2331:17: note: write of 4 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2332:17: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (12) capacity: 25 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (13) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (14) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (15) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (16) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (17) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (19) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (20) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (21) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (22) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (23) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (24) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (25) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (26) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (27) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (28) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (29) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (30) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (31) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (32) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5590:15: note: (33) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (34) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (35) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (36) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (37) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (38) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (39) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (40) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (41) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (42) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (43) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (44) calling ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1561:13: note: (45) entry to ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (46) calling ‘btf__str_by_offset’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (47) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (48) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (49) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (50) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (51) returning to ‘btf__name_by_offset’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (52) returning to ‘btf_add_distilled_types’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (53) following ‘case 6:, case 19:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5458:17: note: (54) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5466:28: note: (55) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:39: note: (56) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:36: note: (57) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (58) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (59) calling ‘btf__add_enum’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2350:5: note: (60) entry to ‘btf__add_enum’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2356:16: note: (61) calling ‘btf_add_enum_common’ from ‘btf__add_enum’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2305:12: note: (62) entry to ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2312:12: note: (63) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (64) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (65) calling ‘btf_ensure_modifiable’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (66) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (67) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (68) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (69) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (70) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (71) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (72) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (73) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (74) returning to ‘btf_add_enum_common’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:12: note: (75) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (76) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (77) calling ‘btf_add_type_mem’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (78) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (79) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (80) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (81) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (82) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (83) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (84) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (85) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (86) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (88) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (89) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (90) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (91) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (92) returning to ‘btf_add_enum_common’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2320:12: note: (93) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2323:12: note: (94) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2332:17: note: (95) out-of-bounds write from byte 32 till byte 35 but region ends at byte 25 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2332:17: note: write of 4 bytes to beyond the end of the region <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2332:17: warning: heap-based buffer overflow [CWE-122] [-Wanalyzer-out-of-bounds] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5542:5: note: (1) entry to ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5554:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (4) calling ‘btf__new_empty’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1022:13: note: (5) entry to ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (6) calling ‘btf_new_empty’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (7) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (8) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (10) following ‘false’ branch (when ‘base_btf’ is NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1003:23: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (12) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:27: note: (14) returning to ‘btf__new_empty’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (15) calling ‘libbpf_ptr’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (16) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (17) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (18) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1024:16: note: (19) returning to ‘btf__new_empty’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5557:20: note: (20) returning to ‘btf__distill_base’ from ‘btf__new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5558:12: note: (21) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (22) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (23) calling ‘btf__set_endianness’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:741:5: note: (24) entry to ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:747:12: note: (25) following ‘true’ branch (when ‘endian == 1’)... <--[csmock-gcc-wrapper] cc1: note: (26) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5561:9: note: (27) returning to ‘btf__distill_base’ from ‘btf__set_endianness’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5564:12: note: (28) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5568:23: note: (29) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5571:12: note: (30) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5575:31: note: (31) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5591:12: note: (32) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (33) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (34) calling ‘btf__new_empty_split’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1027:13: note: (35) entry to ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (36) calling ‘btf_new_empty’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:980:20: note: (37) entry to ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:985:12: note: (38) following ‘false’ branch (when ‘btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:989:23: note: (39) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:995:12: note: (40) following ‘true’ branch (when ‘base_btf’ is non-NULL)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:996:31: note: (41) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1004:25: note: (42) capacity: 24 bytes <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1005:12: note: (43) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1010:18: note: (44) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:27: note: (45) returning to ‘btf__new_empty_split’ from ‘btf_new_empty’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (46) calling ‘libbpf_ptr’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:601:21: note: (47) entry to ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:604:12: note: (48) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (49) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (50) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:607:35: note: (51) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1029:16: note: (52) returning to ‘btf__new_empty_split’ from ‘libbpf_ptr’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5599:21: note: (53) returning to ‘btf__distill_base’ from ‘btf__new_empty_split’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5600:12: note: (54) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5604:23: note: (55) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5613:15: note: (56) calling ‘btf_add_distilled_types’ from ‘btf__distill_base’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5412:12: note: (57) entry to ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5423:23: note: (58) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:26: note: (59) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5427:20: note: (60) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (61) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (62) calling ‘btf_type_by_id’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:624:18: note: (63) entry to ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:626:12: note: (64) following ‘false’ branch (when ‘type_id != 0’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:628:26: note: (65) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5429:21: note: (66) returning to ‘btf_add_distilled_types’ from ‘btf_type_by_id’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (67) calling ‘btf__name_by_offset’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1561:13: note: (68) entry to ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (69) calling ‘btf__str_by_offset’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1551:13: note: (70) entry to ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1555:17: note: (71) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1556:24: note: (72) inlined call to ‘btf_strs_data’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] In function ‘btf_strs_data’, inlined from ‘btf__str_by_offset’ at btf.c:1556:10: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1476:19: note: (73) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1563:16: note: (74) returning to ‘btf__name_by_offset’ from ‘btf__str_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5431:24: note: (75) returning to ‘btf_add_distilled_types’ from ‘btf__name_by_offset’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5433:17: note: (76) following ‘case 6:, case 19:’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5458:17: note: (77) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5466:28: note: (78) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:39: note: (79) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5467:36: note: (80) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (81) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:5469:39: note: (82) calling ‘btf__add_enum’ from ‘btf_add_distilled_types’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2350:5: note: (83) entry to ‘btf__add_enum’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2356:16: note: (84) calling ‘btf_add_enum_common’ from ‘btf__add_enum’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2305:12: note: (85) entry to ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2312:12: note: (86) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (87) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (88) calling ‘btf_ensure_modifiable’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1656:12: note: (89) entry to ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1662:12: note: (90) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1669:30: note: (91) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1671:12: note: (92) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1674:9: note: (93) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1679:12: note: (94) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1680:23: note: (95) inlined call to ‘PTR_ERR’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] In function ‘PTR_ERR’, inlined from ‘btf_ensure_modifiable’ at btf.c:1680:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/include/linux/err.h:20:16: note: (96) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:13: note: (97) returning to ‘btf_add_enum_common’ from ‘btf_ensure_modifiable’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2315:12: note: (98) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (99) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (100) calling ‘btf_add_type_mem’ from ‘btf_add_enum_common’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1764:14: note: (101) entry to ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (102) calling ‘libbpf_add_mem’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:144:7: note: (103) entry to ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:150:12: note: (104) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (105) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:154:12: note: (106) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:158:28: note: (107) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:166:20: note: (108) inlined call to ‘libbpf_reallocarray’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘libbpf_add_mem’ at btf.c:166:13: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (109) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (110) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (111) when ‘realloc’ succeeds, without moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c: In function ‘btf_add_enum_common’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:167:12: note: (112) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:171:63: note: (113) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:1766:16: note: (114) returning to ‘btf_add_type_mem’ from ‘libbpf_add_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2319:13: note: (115) returning to ‘btf_add_enum_common’ from ‘btf_add_type_mem’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2320:12: note: (116) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2323:12: note: (117) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2332:17: note: (118) out-of-bounds write from byte 32 till byte 35 but region ends at byte 24 <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf.c:2332:17: note: write of 4 bytes to beyond the end of the region <--[csmock-gcc-wrapper] At top level: cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c libbpf.c -o sharedobjs/libbpf.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c linker.c -o sharedobjs/linker.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c zip.c -o sharedobjs/zip.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c elf.c -o sharedobjs/elf.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c features.c -o sharedobjs/features.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c btf_iter.c -o sharedobjs/btf_iter.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -I. -I../include -I../include/uapi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -DWITH_GZFILEOP -fPIC -fvisibility=hidden -DSHARED -c btf_relocate.c -o sharedobjs/btf_relocate.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' ar rcs libbpf.a staticobjs/bpf.o staticobjs/btf.o staticobjs/libbpf.o staticobjs/libbpf_errno.o staticobjs/netlink.o staticobjs/nlattr.o staticobjs/str_error.o staticobjs/libbpf_probes.o staticobjs/bpf_prog_linfo.o staticobjs/btf_dump.o staticobjs/hashmap.o staticobjs/ringbuf.o staticobjs/strset.o staticobjs/linker.o staticobjs/gen_loader.o staticobjs/relo_core.o staticobjs/usdt.o staticobjs/zip.o staticobjs/elf.o staticobjs/features.o staticobjs/btf_iter.o staticobjs/btf_relocate.o make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' gcc -shared -Wl,--version-script=libbpf.map \ -Wl,-soname,libbpf.so.1 \ sharedobjs/bpf.o sharedobjs/btf.o sharedobjs/libbpf.o sharedobjs/libbpf_errno.o sharedobjs/netlink.o sharedobjs/nlattr.o sharedobjs/str_error.o sharedobjs/libbpf_probes.o sharedobjs/bpf_prog_linfo.o sharedobjs/btf_dump.o sharedobjs/hashmap.o sharedobjs/ringbuf.o sharedobjs/strset.o sharedobjs/linker.o sharedobjs/gen_loader.o sharedobjs/relo_core.o sharedobjs/usdt.o sharedobjs/zip.o sharedobjs/elf.o sharedobjs/features.o sharedobjs/btf_iter.o sharedobjs/btf_relocate.o -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 -lelf -lz -o libbpf.so.1.5.0 make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' ln -sf libbpf.so.1.5.0 libbpf.so.1 make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' ln -sf libbpf.so.1 libbpf.so make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf.c: internal warning: child 337 timed out after 30s <--[csmock-gcc-wrapper] cswrap: error: child 337 (/usr/bin/csmock-gcc-wrapper) terminated by signal 15 (timed out) /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:1571: error: ctunullpointer(CWE-476): Null pointer dereference: main_def <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:1571: error: ctunullpointer(CWE-476): Null pointer dereference: extra_def <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c: In function ‘add_new_sym’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:286:15: warning: leak of ‘realloc(*symtab.raw_data, __real__ )’ [CWE-401] [-Wanalyzer-malloc-leak] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:1880:12: note: (1) entry to ‘linker_append_elf_sym’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:1902:19: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:1915:12: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:1915:12: note: (4) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:1916:17: note: (5) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2034:12: note: (6) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2037:19: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2037:19: note: (8) calling ‘add_new_sym’ from ‘linker_append_elf_sym’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:272:19: note: (9) entry to ‘add_new_sym’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:278:16: note: (10) inlined call to ‘libbpf_reallocarray’ from ‘add_new_sym’ <--[csmock-gcc-wrapper] In file included from /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:21: <--[csmock-gcc-wrapper] In function ‘libbpf_reallocarray’, inlined from ‘add_new_sym’ at linker.c:278:9: /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:201:12: note: (11) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (12) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (13) allocated here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:208:16: note: (14) when ‘realloc’ succeeds, moving buffer <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c: In function ‘add_new_sym’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:279:12: note: (15) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:282:20: note: (16) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:286:15: note: (17) ‘realloc(*symtab.raw_data, __real__ )’ leaks here; was allocated at (13) <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c: In function ‘linker_append_btf’: <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2439:45: warning: dereference of NULL ‘0’ [CWE-476] [-Wanalyzer-null-dereference] <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2294:12: note: (1) entry to ‘linker_append_btf’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2300:12: note: (2) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2303:40: note: (3) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2307:12: note: (4) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (5) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2406:23: note: (6) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2412:31: note: (7) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2413:20: note: (8) following ‘false’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2415:34: note: (9) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2430:31: note: (10) following ‘true’ branch (when ‘j < n’)... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2431:31: note: (11) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2436:28: note: (12) following ‘true’ branch... <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2437:73: note: (13) ...to here <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2438:44: note: (14) calling ‘find_glob_sym’ from ‘linker_append_btf’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:1331:25: note: (15) entry to ‘find_glob_sym’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:1337:23: note: (16) following ‘false’ branch... <--[csmock-gcc-wrapper] cc1: note: (17) ...to here /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2438:44: note: (18) returning to ‘linker_append_btf’ from ‘find_glob_sym’ <--[csmock-gcc-wrapper] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/linker.c:2439:45: note: (19) dereference of NULL ‘find_glob_sym(linker, btf__str_by_offset(*linker.btf, *.name_off))’ <--[csmock-gcc-wrapper] At top level: cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/elf.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/features.c:325: error: uninitvar(CWE-457): Uninitialized variable: name <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/btf_relocate.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck] /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src/libbpf_internal.h:249: error: shiftTooManyBitsSigned(CWE-758): Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] + OBJDIR=/builddir/build/BUILD/libbpf-1.5.0-build + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC' + 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 -Wl,--no-as-needed' + LIBDIR=//usr/lib64 + NO_PKG_CONFIG=1 + 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/libbpf.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-13 01:20:00 "/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-13 01:20:02 "/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/libbpf.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/libbpf.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/libbpf.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/libbpf.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.lBJEqE + umask 022 + cd /builddir/build/BUILD/libbpf-1.5.0-build + '[' /builddir/build/BUILD/libbpf-1.5.0-build/BUILDROOT '!=' / ']' + rm -rf /builddir/build/BUILD/libbpf-1.5.0-build/BUILDROOT ++ dirname /builddir/build/BUILD/libbpf-1.5.0-build/BUILDROOT + mkdir -p /builddir/build/BUILD/libbpf-1.5.0-build + mkdir /builddir/build/BUILD/libbpf-1.5.0-build/BUILDROOT + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=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 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=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 -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 -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 libbpf-1.5.0 + /usr/bin/make install DESTDIR=/builddir/build/BUILD/libbpf-1.5.0-build/BUILDROOT 'INSTALL=/usr/bin/install -p' -C ./src PREFIX=/usr INCLUDEDIR=/usr/include DESTDIR=/builddir/build/BUILD/libbpf-1.5.0-build/BUILDROOT make: Entering directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' INSTALL bpf.h libbpf.h btf.h libbpf_common.h libbpf_legacy.h bpf_helpers.h bpf_helper_defs.h bpf_tracing.h bpf_endian.h bpf_core_read.h skel_internal.h libbpf_version.h usdt.bpf.h INSTALL ./libbpf.pc INSTALL ./libbpf.a ./libbpf.so ./libbpf.so.1 ./libbpf.so.1.5.0 make: Leaving directory '/builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0/src' + OBJDIR=/builddir/build/BUILD/libbpf-1.5.0-build + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC' + 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 -Wl,--no-as-needed' + LIBDIR=//usr/lib64 + NO_PKG_CONFIG=1 + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 1.5.0-1.fc42 --unique-debug-suffix -1.5.0-1.fc42.x86_64 --unique-debug-src-base libbpf-1.5.0-1.fc42.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/libbpf-1.5.0-build/libbpf-1.5.0 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/libbpf-1.5.0-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/libbpf-1.5.0-build/BUILDROOT /builddir/build/BUILD/libbpf-1.5.0-build/BUILDROOT/usr/lib64/libbpf.a: replacing with normalized version Scanned 18 directories and 63 files, processed 1 inodes, 1 modified (1 replaced + 0 rewritten), 0 unsupported format, 0 errors Reading /builddir/build/BUILD/libbpf-1.5.0-build/SPECPARTS/rpm-debuginfo.specpart Processing files: libbpf-1.5.0-1.fc42.x86_64 Provides: libbpf = 2:1.5.0-1.fc42 libbpf(x86-64) = 2:1.5.0-1.fc42 libbpf.so.1()(64bit) libbpf.so.1(LIBBPF_0.0.1)(64bit) libbpf.so.1(LIBBPF_0.0.2)(64bit) libbpf.so.1(LIBBPF_0.0.3)(64bit) libbpf.so.1(LIBBPF_0.0.4)(64bit) libbpf.so.1(LIBBPF_0.0.5)(64bit) libbpf.so.1(LIBBPF_0.0.6)(64bit) libbpf.so.1(LIBBPF_0.0.7)(64bit) libbpf.so.1(LIBBPF_0.0.8)(64bit) libbpf.so.1(LIBBPF_0.0.9)(64bit) libbpf.so.1(LIBBPF_0.1.0)(64bit) libbpf.so.1(LIBBPF_0.2.0)(64bit) libbpf.so.1(LIBBPF_0.3.0)(64bit) libbpf.so.1(LIBBPF_0.4.0)(64bit) libbpf.so.1(LIBBPF_0.5.0)(64bit) libbpf.so.1(LIBBPF_0.6.0)(64bit) libbpf.so.1(LIBBPF_0.7.0)(64bit) libbpf.so.1(LIBBPF_0.8.0)(64bit) libbpf.so.1(LIBBPF_1.0.0)(64bit) libbpf.so.1(LIBBPF_1.1.0)(64bit) libbpf.so.1(LIBBPF_1.2.0)(64bit) libbpf.so.1(LIBBPF_1.3.0)(64bit) libbpf.so.1(LIBBPF_1.4.0)(64bit) libbpf.so.1(LIBBPF_1.5.0)(64bit) 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.14)(64bit) libc.so.6(GLIBC_2.17)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.22)(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.38)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) libc.so.6(GLIBC_2.9)(64bit) libc.so.6(GLIBC_ABI_DT_RELR)(64bit) libelf.so.1()(64bit) libelf.so.1(ELFUTILS_1.0)(64bit) libelf.so.1(ELFUTILS_1.3)(64bit) libelf.so.1(ELFUTILS_1.5)(64bit) libelf.so.1(ELFUTILS_1.6)(64bit) libz.so.1()(64bit) libz.so.1(ZLIB_1.2.3.3)(64bit) rtld(GNU_HASH) Processing files: libbpf-devel-1.5.0-1.fc42.x86_64 Provides: libbpf-devel = 2:1.5.0-1.fc42 libbpf-devel(x86-64) = 2:1.5.0-1.fc42 pkgconfig(libbpf) = 1.5.0 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/pkg-config libbpf.so.1()(64bit) pkgconfig(libelf) pkgconfig(zlib) Processing files: libbpf-static-1.5.0-1.fc42.x86_64 Provides: libbpf-static = 2:1.5.0-1.fc42 libbpf-static(x86-64) = 2:1.5.0-1.fc42 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: libbpf-debugsource-1.5.0-1.fc42.x86_64 Provides: libbpf-debugsource = 2:1.5.0-1.fc42 libbpf-debugsource(x86-64) = 2:1.5.0-1.fc42 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: libbpf-debuginfo-1.5.0-1.fc42.x86_64 Provides: debuginfo(build-id) = 61df7a2307590dfbf4b88f4afaa43fd1d4329d3f libbpf-debuginfo = 2:1.5.0-1.fc42 libbpf-debuginfo(x86-64) = 2:1.5.0-1.fc42 libbpf.so.1.5.0-1.5.0-1.fc42.x86_64.debug()(64bit) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: libbpf-debugsource(x86-64) = 2:1.5.0-1.fc42 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILD/libbpf-1.5.0-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/libbpf.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-13 01:20:03 "/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-13 01:20:04 "/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-13 01:20: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' '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/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/raw-results' tar: Removing leading `/' from member names tar: Removing leading `/' from hard link targets >>> 2024-11-13 01:20:07 cat '/tmp/csmockikao6le6/libbpf-1.5.0-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/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/uni-results/cswrap-capture.js' >>> 2024-11-13 01:20:07 set -o pipefail; /usr/share/csmock/scripts/convert-clippy.py < /tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/raw-results/builddir/clippy-output.txt | csgrep --remove-duplicates > /tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/uni-results/clippy-capture.err >>> 2024-11-13 01:20:07 cd /tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/raw-results/builddir/shellcheck-results && csgrep --mode=json --remove-duplicates --quiet --invert-match --event '^info|style|warning\[SC1090\]' *.json > /tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/uni-results/shellcheck-capture.json >>> 2024-11-13 01:20:07 csgrep --mode=json '/tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/raw-results/builddir/unicontrol-capture.err' > '/tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/uni-results/unicontrol-capture.js' scan.ini: time-finished = 2024-11-13 01:20:07 scan.ini: exit-code = 0 >>> 2024-11-13 01:20:07 cslinker --quiet --cwelist '/usr/share/csmock/cwe-map.csv' --inifile '/tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/scan.ini' '/tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/uni-results'/* > '/tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/scan-results-all.js' >>> 2024-11-13 01:20:07 '/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/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/scan-results-all.js' >'/tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/scan-results-all.js.tmp' >>> 2024-11-13 01:20:08 "/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-13 01:20:10 cat '/tmp/csmockikao6le6/libbpf-1.5.0-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/csmockikao6le6/libbpf-1.5.0-1.fc42/scan-results.js' >>> 2024-11-13 01:20:10 cat '/tmp/csmockikao6le6/libbpf-1.5.0-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/csmockikao6le6/libbpf-1.5.0-1.fc42/scan-results.js' - | cssort > '/tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/suppressed-results.js' >>> 2024-11-13 01:20:10 csgrep --mode=grep --invert-match --event "internal warning" --prune-events=1 '/tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/suppressed-results.js' > '/tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/suppressed-results.err' >>> 2024-11-13 01:20:10 csgrep --mode=json --invert-match --event "internal warning" --prune-events=1 '/tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/suppressed-results.js' | cshtml - > '/tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/suppressed-results.html' >>> 2024-11-13 01:20:10 csgrep --mode=evtstat --invert-match --event "internal warning" --prune-events=1 '/tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/suppressed-results.js' | tee '/tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/debug/suppressed-results-summary.txt' >>> 2024-11-13 01:20:10 csgrep --mode=grep --invert-match --event "internal warning" --prune-events=1 '/tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/scan-results.js' > '/tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/scan-results.err' >>> 2024-11-13 01:20:10 csgrep --mode=json --invert-match --event "internal warning" --prune-events=1 '/tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/scan-results.js' | cshtml - > '/tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/scan-results.html' >>> 2024-11-13 01:20:10 csgrep --mode=evtstat --invert-match --event "internal warning" --prune-events=1 '/tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/scan-results.js' | tee '/tmp/csmockikao6le6/libbpf-1.5.0-1.fc42/scan-results-summary.txt' 2 CPPCHECK_WARNING error[ctunullpointer] 1 CPPCHECK_WARNING error[shiftTooManyBitsSigned] 5 CPPCHECK_WARNING error[uninitvar] 4 GCC_ANALYZER_WARNING warning[-Wanalyzer-malloc-leak] 2 GCC_ANALYZER_WARNING warning[-Wanalyzer-null-dereference] 8 GCC_ANALYZER_WARNING warning[-Wanalyzer-out-of-bounds] <<< 2024-11-13 01:20:10 csmock exit code: 0