Task #2077 - podman-5.2.0~dev-1.20240729132142181266.pr23428.1062.1b91df012/scan-results.js
back to task #2077download
{ "scan": { "analyzer-version-cppcheck": "2.14.2", "analyzer-version-gcc": "14.1.1", "analyzer-version-gcc-analyzer": "14.1.1", "analyzer-version-shellcheck": "0.10.0", "enabled-plugins": "cppcheck, gcc, shellcheck", "exit-code": 0, "host": "ip-172-16-1-98.us-west-2.compute.internal", "mock-config": "fedora-rawhide-x86_64", "project-name": "podman-5.2.0~dev-1.20240729132142181266.pr23428.1062.1b91df012", "store-results-to": "/tmp/tmpsn7dmw1k/podman-5.2.0~dev-1.20240729132142181266.pr23428.1062.1b91df012.tar.xz", "time-created": "2024-07-29 13:50:21", "time-finished": "2024-07-29 14:01:29", "tool": "csmock", "tool-args": "'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,shellcheck,cppcheck' '-o' '/tmp/tmpsn7dmw1k/podman-5.2.0~dev-1.20240729132142181266.pr23428.1062.1b91df012.tar.xz' '--gcc-analyze' '--cppcheck-add-flag=--check-level=exhaustive' '/tmp/tmpsn7dmw1k/podman-5.2.0~dev-1.20240729132142181266.pr23428.1062.1b91df012.src.rpm'", "tool-version": "csmock-3.6.0-1.el9" }, "defects": [ { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "e0f27cd7ac056c4bea34c143bd61cb94f5f993d8", "key_event_idx": 2, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 4, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 0, "event": "scope_hint", "message": "In function ‘cleanup_closep.part.0’", "verbosity_level": 1 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 51, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double ‘close’ of file descriptor ‘*(void *)p’", "verbosity_level": 0 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 51, "column": 25, "event": "note", "message": "(1) first ‘close’ here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 51, "column": 5, "event": "note", "message": "(2) following ‘true’ branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 51, "column": 25, "event": "note", "message": "(4) second ‘close’ here; first ‘close’ was at (1)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 49| int *pp = p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 50| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 51|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 52| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 53| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "22372c401649ff15c8d4de3787bad931cc7d80d3", "key_event_idx": 0, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 51, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double ‘close’ of file descriptor ‘fd’", "verbosity_level": 0 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 792, "column": 1, "event": "note", "message": "(1) entry to ‘reexec_userns_join’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 805, "column": 6, "event": "note", "message": "(2) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 811, "column": 3, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 814, "column": 10, "event": "note", "message": "(4) calling ‘get_cmd_line_args’ from ‘reexec_userns_join’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 298, "column": 1, "event": "note", "message": "(5) entry to ‘get_cmd_line_args’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 308, "column": 8, "event": "note", "message": "(6) opened here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 309, "column": 6, "event": "note", "message": "(7) assuming ‘fd’ is a valid file descriptor (>= 0)", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 309, "column": 6, "event": "note", "message": "(8) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 313, "column": 12, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 314, "column": 6, "event": "note", "message": "(10) following ‘true’ branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 301, "column": 21, "event": "note", "message": "(12) inlined call to ‘cleanup_closep’ from ‘get_cmd_line_args’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 50, "column": 6, "event": "note", "message": "(13) following ‘true’ branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 301, "column": 21, "event": "note", "message": "(15) inlined call to ‘cleanup_closep’ from ‘get_cmd_line_args’", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(16) calling ‘cleanup_closep.part.0’ from ‘get_cmd_line_args’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 0, "event": "scope_hint", "message": "In function ‘cleanup_closep.part.0’", "verbosity_level": 1 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 47, "column": 1, "event": "note", "message": "(17) entry to ‘cleanup_closep.part.0’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 51, "column": 25, "event": "note", "message": "(18) first ‘close’ here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 51, "column": 5, "event": "note", "message": "(19) following ‘true’ branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 51, "column": 25, "event": "note", "message": "(21) second ‘close’ here; first ‘close’ was at (18)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 49| int *pp = p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 50| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 51|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 52| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 53| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "77c81f319e5a95b3a7ba37f3aca3c7fe3582d9b0", "key_event_idx": 1, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 0, "event": "scope_hint", "message": "In function ‘get_cmd_line_args’", "verbosity_level": 1 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 308, "column": 8, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor ‘open(\"/proc/self/cmdline\", 0)’", "verbosity_level": 0 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 792, "column": 1, "event": "note", "message": "(1) entry to ‘reexec_userns_join’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 805, "column": 6, "event": "note", "message": "(2) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 811, "column": 3, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 814, "column": 10, "event": "note", "message": "(4) calling ‘get_cmd_line_args’ from ‘reexec_userns_join’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 298, "column": 1, "event": "note", "message": "(5) entry to ‘get_cmd_line_args’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 308, "column": 8, "event": "note", "message": "(6) opened here (7) ‘open(\"/proc/self/cmdline\", 0)’ leaks here; was opened at (6)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 306| char **argv;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 307| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 308|-> fd = open (\"/proc/self/cmdline\", O_RDONLY);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 309| if (fd < 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 310| return NULL;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "6bc987312d10e1021dcc63865e6a05ae9cb212cf", "key_event_idx": 1, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 0, "event": "scope_hint", "message": "In function ‘init’", "verbosity_level": 1 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 453, "column": 7, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of ‘opendir(\"/proc/self/fd\")’", "verbosity_level": 0 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/pkg/rootless/rootless_linux.c", "line": 453, "column": 7, "event": "note", "message": "(1) allocated here (2) ‘opendir(\"/proc/self/fd\")’ leaks here; was allocated at (1)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 451| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 452| /* Store how many FDs were open before the Go runtime kicked in. */", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 453|-> d = opendir (\"/proc/self/fd\");", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 454| if (d)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 455| {", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "f6412846abac87c229c69b43838ffd91cd66dac1", "key_event_idx": 1, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 0, "event": "scope_hint", "message": "In function ‘parse_proc_stringlist’", "verbosity_level": 1 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 118, "column": 20, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor ‘open(list, 0)’", "verbosity_level": 0 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 275, "column": 12, "event": "note", "message": "(1) entry to ‘containers_reexec’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 279, "column": 16, "event": "note", "message": "(2) calling ‘parse_proc_stringlist’ from ‘containers_reexec’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 103, "column": 15, "event": "note", "message": "(3) entry to ‘parse_proc_stringlist’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 108, "column": 14, "event": "note", "message": "(4) opened here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 109, "column": 12, "event": "note", "message": "(5) assuming ‘open(list, 0)’ is a valid file descriptor (>= 0)", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 109, "column": 12, "event": "note", "message": "(6) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 117, "column": 27, "event": "note", "message": "(8) when ‘realloc’ fails", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 118, "column": 20, "event": "note", "message": "(9) ‘open(list, 0)’ leaks here; was opened at (4)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 116| \t\tnew_size = used + BUFSTEP;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 117| \t\tnew_buf = realloc(buf, new_size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 118|-> \t\tif (new_buf == NULL) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 119| \t\t\tfree(buf);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 120| \t\t\tfprintf(stderr, \"realloc(%ld): out of memory\\n\", (long)(size + BUFSTEP));", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "3b5655ab257878d51607ba46c1bd097c091fd273", "key_event_idx": 0, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 125, "column": 28, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor ‘open(list, 0)’", "verbosity_level": 0 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 275, "column": 12, "event": "note", "message": "(1) entry to ‘containers_reexec’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 279, "column": 16, "event": "note", "message": "(2) calling ‘parse_proc_stringlist’ from ‘containers_reexec’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 103, "column": 15, "event": "note", "message": "(3) entry to ‘parse_proc_stringlist’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 108, "column": 14, "event": "note", "message": "(4) opened here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 109, "column": 12, "event": "note", "message": "(5) assuming ‘open(list, 0)’ is a valid file descriptor (>= 0)", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 109, "column": 12, "event": "note", "message": "(6) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 117, "column": 27, "event": "note", "message": "(8) when ‘realloc’ succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 118, "column": 20, "event": "note", "message": "(9) following ‘false’ branch (when ‘new_buf’ is non-NULL)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 125, "column": 28, "event": "note", "message": "(10) ...to here (11) ‘open(list, 0)’ leaks here; was opened at (4)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 123| \t\tbuf = new_buf;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 124| \t\tsize = new_size;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 125|-> \t\tmemset(buf + used, '\\0', size - used);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 126| \t\tn = read(fd, buf + used, size - used - 1);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 127| \t\tif (n < 0) {", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "588a9a2e981a04c9701f34fec04907e3060f12f6", "key_event_idx": 1, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 0, "event": "scope_hint", "message": "In function ‘containers_reexec’", "verbosity_level": 1 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 125, "column": 28, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of ‘parse_proc_stringlist(\"/proc/self/cmdline\")’", "verbosity_level": 0 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 300, "column": 6, "event": "note", "message": "(1) entry to ‘_containers_unshare’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 305, "column": 17, "event": "note", "message": "(2) calling ‘_containers_unshare_parse_envint’ from ‘_containers_unshare’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 59, "column": 12, "event": "note", "message": "(3) entry to ‘_containers_unshare_parse_envint’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 64, "column": 12, "event": "note", "message": "(4) following ‘false’ branch (when ‘p’ is non-NULL)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 67, "column": 11, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 69, "column": 12, "event": "note", "message": "(6) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 73, "column": 9, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 305, "column": 17, "event": "note", "message": "(8) returning to ‘_containers_unshare’ from ‘_containers_unshare_parse_envint’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 306, "column": 12, "event": "note", "message": "(9) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 309, "column": 20, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 318, "column": 12, "event": "note", "message": "(11) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 327, "column": 22, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 328, "column": 12, "event": "note", "message": "(13) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 336, "column": 15, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 337, "column": 12, "event": "note", "message": "(15) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 343, "column": 16, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 344, "column": 12, "event": "note", "message": "(17) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 350, "column": 16, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 351, "column": 12, "event": "note", "message": "(19) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 357, "column": 12, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 373, "column": 13, "event": "note", "message": "(21) calling ‘containers_reexec’ from ‘_containers_unshare’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 275, "column": 12, "event": "note", "message": "(22) entry to ‘containers_reexec’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 279, "column": 16, "event": "note", "message": "(23) calling ‘parse_proc_stringlist’ from ‘containers_reexec’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 103, "column": 15, "event": "note", "message": "(24) entry to ‘parse_proc_stringlist’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 109, "column": 12, "event": "note", "message": "(25) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 117, "column": 27, "event": "note", "message": "(27) when ‘realloc’ succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 118, "column": 20, "event": "note", "message": "(28) following ‘false’ branch (when ‘new_buf’ is non-NULL)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 125, "column": 28, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 127, "column": 20, "event": "note", "message": "(30) following ‘false’ branch (when ‘n >= 0’)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 131, "column": 20, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 131, "column": 20, "event": "note", "message": "(32) following ‘true’ branch (when ‘n == 0’)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 136, "column": 9, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 138, "column": 23, "event": "note", "message": "(34) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 143, "column": 32, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 143, "column": 15, "event": "note", "message": "(36) allocated here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 144, "column": 12, "event": "note", "message": "(37) assuming ‘ret’ is non-NULL", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 144, "column": 12, "event": "note", "message": "(38) following ‘false’ branch (when ‘ret’ is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(39) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 149, "column": 23, "event": "note", "message": "(40) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 154, "column": 12, "event": "note", "message": "(41) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 279, "column": 16, "event": "note", "message": "(42) returning to ‘containers_reexec’ from ‘parse_proc_stringlist’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 280, "column": 12, "event": "note", "message": "(43) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 284, "column": 19, "event": "note", "message": "(44) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 125, "column": 28, "event": "note", "message": "(45) ‘parse_proc_stringlist(\"/proc/self/cmdline\")’ leaks here; was allocated at (36)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 123| \t\tbuf = new_buf;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 124| \t\tsize = new_size;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 125|-> \t\tmemset(buf + used, '\\0', size - used);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 126| \t\tn = read(fd, buf + used, size - used - 1);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 127| \t\tif (n < 0) {", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "64d836d460240bcb664131543595190f050af387", "key_event_idx": 0, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 128, "column": 25, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of ‘buf’", "verbosity_level": 0 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 275, "column": 12, "event": "note", "message": "(1) entry to ‘containers_reexec’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 279, "column": 16, "event": "note", "message": "(2) calling ‘parse_proc_stringlist’ from ‘containers_reexec’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 103, "column": 15, "event": "note", "message": "(3) entry to ‘parse_proc_stringlist’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 109, "column": 12, "event": "note", "message": "(4) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 117, "column": 27, "event": "note", "message": "(6) allocated here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 117, "column": 27, "event": "note", "message": "(7) when ‘realloc’ succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 118, "column": 20, "event": "note", "message": "(8) following ‘false’ branch (when ‘new_buf’ is non-NULL)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 125, "column": 28, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 127, "column": 20, "event": "note", "message": "(10) following ‘false’ branch (when ‘n >= 0’)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 131, "column": 20, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 131, "column": 20, "event": "note", "message": "(12) following ‘false’ branch (when ‘n != 0’)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 134, "column": 22, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 117, "column": 27, "event": "note", "message": "(14) when ‘realloc’ succeeds, without moving buffer", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 118, "column": 20, "event": "note", "message": "(15) following ‘false’ branch (when ‘new_buf’ is non-NULL)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 125, "column": 28, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 128, "column": 25, "event": "note", "message": "(17) ‘buf’ leaks here; was allocated at (6)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 126| \t\tn = read(fd, buf + used, size - used - 1);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 127| \t\tif (n < 0) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 128|-> \t\t\tfprintf(stderr, \"read(): %m\\n\");", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 129| \t\t\treturn NULL;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 130| \t\t}", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "b6bef701a342a3d627497bf06500f48da3dc9618", "key_event_idx": 1, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 0, "event": "scope_hint", "message": "In function ‘parse_proc_stringlist’", "verbosity_level": 1 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 128, "column": 25, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of ‘new_buf’", "verbosity_level": 0 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 275, "column": 12, "event": "note", "message": "(1) entry to ‘containers_reexec’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 279, "column": 16, "event": "note", "message": "(2) calling ‘parse_proc_stringlist’ from ‘containers_reexec’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 103, "column": 15, "event": "note", "message": "(3) entry to ‘parse_proc_stringlist’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 109, "column": 12, "event": "note", "message": "(4) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 117, "column": 27, "event": "note", "message": "(6) allocated here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 117, "column": 27, "event": "note", "message": "(7) when ‘realloc’ succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 118, "column": 20, "event": "note", "message": "(8) following ‘false’ branch (when ‘new_buf’ is non-NULL)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 125, "column": 28, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 128, "column": 25, "event": "note", "message": "(10) ‘new_buf’ leaks here; was allocated at (6)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 126| \t\tn = read(fd, buf + used, size - used - 1);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 127| \t\tif (n < 0) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 128|-> \t\t\tfprintf(stderr, \"read(): %m\\n\");", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 129| \t\t\treturn NULL;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 130| \t\t}", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "9de510ba9e8aa02b35f2e487a0943afc457ec8c2", "key_event_idx": 0, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 154, "column": 16, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of ‘buf’", "verbosity_level": 0 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 275, "column": 12, "event": "note", "message": "(1) entry to ‘containers_reexec’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 279, "column": 16, "event": "note", "message": "(2) calling ‘parse_proc_stringlist’ from ‘containers_reexec’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 103, "column": 15, "event": "note", "message": "(3) entry to ‘parse_proc_stringlist’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 109, "column": 12, "event": "note", "message": "(4) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 117, "column": 27, "event": "note", "message": "(6) allocated here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 117, "column": 27, "event": "note", "message": "(7) when ‘realloc’ succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 118, "column": 20, "event": "note", "message": "(8) following ‘false’ branch (when ‘new_buf’ is non-NULL)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 125, "column": 28, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 127, "column": 20, "event": "note", "message": "(10) following ‘false’ branch (when ‘n >= 0’)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 131, "column": 20, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 131, "column": 20, "event": "note", "message": "(12) following ‘false’ branch (when ‘n != 0’)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 134, "column": 22, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 117, "column": 27, "event": "note", "message": "(14) when ‘realloc’ succeeds, without moving buffer", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 118, "column": 20, "event": "note", "message": "(15) following ‘false’ branch (when ‘new_buf’ is non-NULL)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 125, "column": 28, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 127, "column": 20, "event": "note", "message": "(17) following ‘false’ branch (when ‘n >= 0’)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 131, "column": 20, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 144, "column": 12, "event": "note", "message": "(19) following ‘false’ branch (when ‘ret’ is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 149, "column": 23, "event": "note", "message": "(21) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 154, "column": 12, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 154, "column": 16, "event": "note", "message": "(23) ‘buf’ leaks here; was allocated at (6)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 152| \t\t}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 153| \t}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 154|-> \tret[i] = NULL;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 155| \treturn ret;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 156| }", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "fee0da1d3ad824a50fe34e472b4cfbc050fc447e", "key_event_idx": 0, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 154, "column": 16, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of ‘new_buf’", "verbosity_level": 0 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 275, "column": 12, "event": "note", "message": "(1) entry to ‘containers_reexec’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 279, "column": 16, "event": "note", "message": "(2) calling ‘parse_proc_stringlist’ from ‘containers_reexec’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 103, "column": 15, "event": "note", "message": "(3) entry to ‘parse_proc_stringlist’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 109, "column": 12, "event": "note", "message": "(4) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 117, "column": 27, "event": "note", "message": "(6) allocated here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 117, "column": 27, "event": "note", "message": "(7) when ‘realloc’ succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 118, "column": 20, "event": "note", "message": "(8) following ‘false’ branch (when ‘new_buf’ is non-NULL)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 125, "column": 28, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 127, "column": 20, "event": "note", "message": "(10) following ‘false’ branch (when ‘n >= 0’)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 131, "column": 20, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 131, "column": 20, "event": "note", "message": "(12) following ‘true’ branch (when ‘n == 0’)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 136, "column": 9, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 138, "column": 23, "event": "note", "message": "(14) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 143, "column": 32, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 144, "column": 12, "event": "note", "message": "(16) following ‘false’ branch (when ‘ret’ is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 149, "column": 23, "event": "note", "message": "(18) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 154, "column": 12, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 154, "column": 16, "event": "note", "message": "(20) ‘new_buf’ leaks here; was allocated at (6)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 152| \t\t}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 153| \t}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 154|-> \tret[i] = NULL;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 155| \treturn ret;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 156| }", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "1481068843b494f5a0122e726f5af02e318d6cb2", "key_event_idx": 1, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 0, "event": "scope_hint", "message": "In function ‘containers_reexec’", "verbosity_level": 1 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 291, "column": 12, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of ‘parse_proc_stringlist(\"/proc/self/cmdline\")’", "verbosity_level": 0 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 300, "column": 6, "event": "note", "message": "(1) entry to ‘_containers_unshare’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 305, "column": 17, "event": "note", "message": "(2) calling ‘_containers_unshare_parse_envint’ from ‘_containers_unshare’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 59, "column": 12, "event": "note", "message": "(3) entry to ‘_containers_unshare_parse_envint’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 64, "column": 12, "event": "note", "message": "(4) following ‘false’ branch (when ‘p’ is non-NULL)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 67, "column": 11, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 69, "column": 12, "event": "note", "message": "(6) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 73, "column": 9, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 305, "column": 17, "event": "note", "message": "(8) returning to ‘_containers_unshare’ from ‘_containers_unshare_parse_envint’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 306, "column": 12, "event": "note", "message": "(9) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 309, "column": 20, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 318, "column": 12, "event": "note", "message": "(11) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 327, "column": 22, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 328, "column": 12, "event": "note", "message": "(13) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 336, "column": 15, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 337, "column": 12, "event": "note", "message": "(15) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 343, "column": 16, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 344, "column": 12, "event": "note", "message": "(17) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 350, "column": 16, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 351, "column": 12, "event": "note", "message": "(19) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 357, "column": 12, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 373, "column": 13, "event": "note", "message": "(21) calling ‘containers_reexec’ from ‘_containers_unshare’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 275, "column": 12, "event": "note", "message": "(22) entry to ‘containers_reexec’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 279, "column": 16, "event": "note", "message": "(23) calling ‘parse_proc_stringlist’ from ‘containers_reexec’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 103, "column": 15, "event": "note", "message": "(24) entry to ‘parse_proc_stringlist’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 109, "column": 12, "event": "note", "message": "(25) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 117, "column": 27, "event": "note", "message": "(27) when ‘realloc’ succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 118, "column": 20, "event": "note", "message": "(28) following ‘false’ branch (when ‘new_buf’ is non-NULL)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 125, "column": 28, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 127, "column": 20, "event": "note", "message": "(30) following ‘false’ branch (when ‘n >= 0’)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 131, "column": 20, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 131, "column": 20, "event": "note", "message": "(32) following ‘true’ branch (when ‘n == 0’)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 136, "column": 9, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 138, "column": 23, "event": "note", "message": "(34) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 143, "column": 32, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 143, "column": 15, "event": "note", "message": "(36) allocated here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 144, "column": 12, "event": "note", "message": "(37) assuming ‘ret’ is non-NULL", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 144, "column": 12, "event": "note", "message": "(38) following ‘false’ branch (when ‘ret’ is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(39) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 149, "column": 23, "event": "note", "message": "(40) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 154, "column": 12, "event": "note", "message": "(41) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 279, "column": 16, "event": "note", "message": "(42) returning to ‘containers_reexec’ from ‘parse_proc_stringlist’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 280, "column": 12, "event": "note", "message": "(43) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 284, "column": 19, "event": "note", "message": "(44) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 287, "column": 22, "event": "note", "message": "(45) calling ‘copy_self_proc_exe’ from ‘containers_reexec’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 220, "column": 12, "event": "note", "message": "(46) entry to ‘copy_self_proc_exe’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 227, "column": 12, "event": "note", "message": "(47) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 231, "column": 13, "event": "note", "message": "(48) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 231, "column": 12, "event": "note", "message": "(49) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 18, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 236, "column": 19, "event": "note", "message": "(50) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 238, "column": 12, "event": "note", "message": "(51) following ‘false’ branch (when ‘mmfd != -1’)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(52) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 244, "column": 20, "event": "note", "message": "(53) following ‘false’ branch (when ‘n_read >= 0’)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 248, "column": 20, "event": "note", "message": "(54) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 262, "column": 12, "event": "note", "message": "(55) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 229, "column": 24, "event": "note", "message": "(56) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 287, "column": 22, "event": "note", "message": "(57) returning to ‘containers_reexec’ from ‘copy_self_proc_exe’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 288, "column": 12, "event": "note", "message": "(58) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 291, "column": 13, "event": "note", "message": "(59) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 291, "column": 12, "event": "note", "message": "(60) ‘parse_proc_stringlist(\"/proc/self/cmdline\")’ leaks here; was allocated at (36)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 289| \t\treturn fd;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 290| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 291|-> \tif (fexecve(fd, argv, environ) == -1) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 292| \t\tclose(fd);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 293| \t\tfprintf(stderr, \"Error during reexec(...): %m\\n\");", "verbosity_level": 1 } ] }, { "checker": "CPPCHECK_WARNING", "language": "c/c++", "tool": "cppcheck", "key_event_idx": 0, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c", "line": 0, "event": "internal warning", "message": "child 17982 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "COMPILER_WARNING", "language": "c/c++", "tool": "gcc", "key_event_idx": 0, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c", "line": 0, "event": "internal warning", "message": "child 17999 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "CPPCHECK_WARNING", "language": "c/c++", "tool": "cppcheck", "key_event_idx": 0, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c", "line": 0, "event": "internal warning", "message": "child 31057 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "COMPILER_WARNING", "language": "c/c++", "tool": "gcc", "key_event_idx": 0, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c", "line": 0, "event": "internal warning", "message": "child 31065 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "COMPILER_WARNING", "language": "c/c++", "tool": "gcc", "key_event_idx": 0, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c", "line": 0, "event": "internal warning", "message": "child 7288 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "CPPCHECK_WARNING", "language": "c/c++", "tool": "cppcheck", "key_event_idx": 0, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c", "line": 0, "event": "internal warning", "message": "child 7290 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "COMPILER_WARNING", "cwe": 1164, "language": "c/c++", "tool": "gcc", "hash_v1": "6421fc75930eda083c1de10381d6d7658aac128f", "key_event_idx": 0, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/mattn/go-sqlite3/sqlite3.go", "line": 85, "column": 1, "event": "warning[-Wunused-function]", "message": "‘_sqlite3_exec’ defined but not used", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 85 | _sqlite3_exec(sqlite3* db, const char* pcmd, long long* rowid, long long* changes)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " | ^~~~~~~~~~~~~", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 83| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 84| static int", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 85|-> _sqlite3_exec(sqlite3* db, const char* pcmd, long long* rowid, long long* changes)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 86| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 87| int rv = sqlite3_exec(db, pcmd, 0, 0, 0);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "c9e38dd69ce3d1ffd3a8e8cc40b25942e6bb026b", "key_event_idx": 1, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 0, "event": "scope_hint", "message": "In function 'New'", "verbosity_level": 1 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 77, "column": 19, "event": "warning[-Wanalyzer-possible-null-dereference]", "message": "dereference of possibly-NULL 'c'", "verbosity_level": 0 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 76, "column": 25, "event": "note", "message": "(1) this call could return NULL", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 77, "column": 19, "event": "note", "message": "(2) 'c' could be NULL: unchecked value from (1)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 75| \tCK_C_GetFunctionList list;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 76| \tstruct ctx *c = calloc(1, sizeof(struct ctx));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 77|-> \tc->handle = dlopen(module, RTLD_LAZY);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 78| \tif (c->handle == NULL) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 79| \t\tfree(c);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "eaf6907672babca2d0aac5dc8b46f970360d5a63", "key_event_idx": 1, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 0, "event": "scope_hint", "message": "In function ‘New’", "verbosity_level": 1 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 77, "column": 19, "event": "warning[-Wanalyzer-possible-null-dereference]", "message": "dereference of possibly-NULL ‘c’", "verbosity_level": 0 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 76, "column": 25, "event": "note", "message": "(1) this call could return NULL", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 77, "column": 19, "event": "note", "message": "(2) ‘c’ could be NULL: unchecked value from (1)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 75| \tCK_C_GetFunctionList list;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 76| \tstruct ctx *c = calloc(1, sizeof(struct ctx));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 77|-> \tc->handle = dlopen(module, RTLD_LAZY);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 78| \tif (c->handle == NULL) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 79| \t\tfree(c);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "ea6a0065ebae903e0de153317f7b7f589e8db050", "key_event_idx": 1, "events": [ { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 0, "event": "scope_hint", "message": "In function ‘GetAttributeValue.part.0’", "verbosity_level": 1 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 316, "column": 32, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of ‘*((CK_ATTRIBUTE *)temp).pValue’", "verbosity_level": 0 }, { "file_name": "cgo-gcc-prolog", "line": 684, "column": 1, "event": "note", "message": "(1) entry to ‘_cgo_6020a31fdefd_Cfunc_GetAttributeValue’", "verbosity_level": 2 }, { "file_name": "cgo-gcc-prolog", "line": 697, "column": 11, "event": "note", "message": "(2) calling ‘GetAttributeValue’ from ‘_cgo_6020a31fdefd_Cfunc_GetAttributeValue’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 300, "column": 7, "event": "note", "message": "(3) entry to ‘GetAttributeValue’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 307, "column": 12, "event": "note", "message": "(4) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(6) calling ‘GetAttributeValue.part.0’ from ‘GetAttributeValue’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 300, "column": 7, "event": "note", "message": "(7) entry to ‘GetAttributeValue.part.0’", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 311, "column": 23, "event": "note", "message": "(8) following ‘true’ branch (when ‘i < templen’)...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 312, "column": 35, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 312, "column": 20, "event": "note", "message": "(10) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 316, "column": 34, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 316, "column": 34, "event": "note", "message": "(12) allocated here", "verbosity_level": 2 }, { "file_name": "podman-5.2.0_dev-build/podman-5.2.0-dev/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 316, "column": 32, "event": "note", "message": "(13) ‘*((CK_ATTRIBUTE *)temp).pValue’ leaks here; was allocated at (12)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 314| \t\t\tcontinue;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 315| \t\t}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 316|-> \t\ttemp[i].pValue = calloc(temp[i].ulValueLen, sizeof(CK_BYTE));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 317| \t}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 318| \treturn c->sym->C_GetAttributeValue(session, object, temp, templen);", "verbosity_level": 1 } ] } ] }