Task #12418 - podman-5.3.0~dev-1.20240920152046057181.pr24018.1569.9da141b4e/scan-results.js
back to task #12418download
{ "scan": { "analyzer-version-clippy": "1.81.0", "analyzer-version-cppcheck": "2.15.0", "analyzer-version-gcc": "14.2.1", "analyzer-version-gcc-analyzer": "14.2.1", "analyzer-version-shellcheck": "0.10.0", "analyzer-version-unicontrol": "0.0.2", "enabled-plugins": "clippy, cppcheck, gcc, shellcheck, unicontrol", "exit-code": 0, "host": "ip-172-16-1-71.us-west-2.compute.internal", "mock-config": "fedora-rawhide-x86_64", "project-name": "podman-5.3.0~dev-1.20240920152046057181.pr24018.1569.9da141b4e", "store-results-to": "/tmp/tmp3nurf2t_/podman-5.3.0~dev-1.20240920152046057181.pr24018.1569.9da141b4e.tar.xz", "time-created": "2024-09-20 15:47:45", "time-finished": "2024-09-20 15:58:20", "tool": "csmock", "tool-args": "'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,shellcheck,cppcheck,clippy,unicontrol' '-o' '/tmp/tmp3nurf2t_/podman-5.3.0~dev-1.20240920152046057181.pr24018.1569.9da141b4e.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmp3nurf2t_/podman-5.3.0~dev-1.20240920152046057181.pr24018.1569.9da141b4e.src.rpm'", "tool-version": "csmock-3.7.0-1.el9" }, "defects": [ { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "e3f796c971967b519e2a65dfe8ff238a9c2bfaf1", "key_event_idx": 2, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.0-dev/pkg/rootless/rootless_linux.c", "line": 4, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "podman-5.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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": "db3e32534e1422cff6a58b45e1ce9a6833ba819e", "key_event_idx": 0, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.0-dev/pkg/rootless/rootless_linux.c", "line": 811, "column": 3, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.0-dev/pkg/rootless/rootless_linux.c", "line": 308, "column": 8, "event": "note", "message": "(6) opened here", "verbosity_level": 2 }, { "file_name": "podman-5.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.0-dev/pkg/rootless/rootless_linux.c", "line": 313, "column": 12, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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": "64793321b396ad127c9c3ec81298ae284e818868", "key_event_idx": 1, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.0-dev/pkg/rootless/rootless_linux.c", "line": 811, "column": 3, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "podman-5.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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": "be7df413da73044a1417749a9bb23e7383f40d50", "key_event_idx": 1, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.0-dev/pkg/rootless/rootless_linux.c", "line": 0, "event": "scope_hint", "message": "In function ‘init’", "verbosity_level": 1 }, { "file_name": "podman-5.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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": "21fc5b7d75b164a3356990655542b3c2c036f94d", "key_event_idx": 1, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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": "72cb9c2d3abcd0f6319de703767be36fe81bd9a7", "key_event_idx": 0, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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": "5125f0db8f42e69a0c7dec2fbf8edb13eabd0041", "key_event_idx": 1, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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": "675df1d88cb454df0ba39a46ff105fd48bfc23ba", "key_event_idx": 0, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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": "80f1707a6e282a11e274dd21a9abd30d2b27c282", "key_event_idx": 1, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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": "d5853c293c6a9943c3d82aedba7f4947b4016943", "key_event_idx": 0, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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": "2c30653b3268c6c6bfff07fdb74bef01648c4ad3", "key_event_idx": 0, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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": "78fdf6130e2b2552c603639e4bb7759f9569f664", "key_event_idx": 1, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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": "COMPILER_WARNING", "language": "c/c++", "tool": "gcc", "key_event_idx": 0, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.0-dev/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c", "line": 0, "event": "internal warning", "message": "child 16988 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "CPPCHECK_WARNING", "language": "c/c++", "tool": "cppcheck", "key_event_idx": 0, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.0-dev/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c", "line": 0, "event": "internal warning", "message": "child 16995 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "CPPCHECK_WARNING", "language": "c/c++", "tool": "cppcheck", "key_event_idx": 0, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.0-dev/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c", "line": 0, "event": "internal warning", "message": "child 28850 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "COMPILER_WARNING", "language": "c/c++", "tool": "gcc", "key_event_idx": 0, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.0-dev/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c", "line": 0, "event": "internal warning", "message": "child 28855 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "CPPCHECK_WARNING", "language": "c/c++", "tool": "cppcheck", "key_event_idx": 0, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.0-dev/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c", "line": 0, "event": "internal warning", "message": "child 6322 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "COMPILER_WARNING", "language": "c/c++", "tool": "gcc", "key_event_idx": 0, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.0-dev/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c", "line": 0, "event": "internal warning", "message": "child 6346 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "COMPILER_WARNING", "cwe": 1164, "language": "c/c++", "tool": "gcc", "hash_v1": "151bfcdb14e807bcc8e18f8f1420fa5ac480e9f7", "key_event_idx": 0, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.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": "89026e2228beee73dc6da8fadf8cd73a172ec79a", "key_event_idx": 1, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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": "529fdb2227a908ea02bfeecaabcc12c6bd0d5ce8", "key_event_idx": 1, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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": "a19b09d8edd1e45823f87d914e9feb12a0f974e8", "key_event_idx": 1, "events": [ { "file_name": "podman-5.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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.3.0_dev-build/podman-5.3.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 } ] } ] }