Task #23977 - buildah-1.38.0-1.20241113121353694417.pr5838.14.geb7a42217/scan-results.js
back to task #23977download
{ "scan": { "analyzer-version-clippy": "1.82.0", "analyzer-version-cppcheck": "2.16.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-242.us-west-2.compute.internal", "mock-config": "fedora-rawhide-x86_64", "project-name": "buildah-1.38.0-1.20241113121353694417.pr5838.14.geb7a42217", "store-results-to": "/tmp/tmp9ioxo1rp/buildah-1.38.0-1.20241113121353694417.pr5838.14.geb7a42217.tar.xz", "time-created": "2024-11-13 12:46:16", "time-finished": "2024-11-13 12:58:58", "tool": "csmock", "tool-args": "'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp9ioxo1rp/buildah-1.38.0-1.20241113121353694417.pr5838.14.geb7a42217.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmp9ioxo1rp/buildah-1.38.0-1.20241113121353694417.pr5838.14.geb7a42217.src.rpm'", "tool-version": "csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9" }, "defects": [ { "checker": "SHELLCHECK_WARNING", "cwe": 398, "language": "shell", "tool": "shellcheck", "hash_v1": "09d6a73e8c519c786d35055f7a6cd9ea75da5ea4", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/add.bats", "line": 116, "column": 11, "h_size": 12, "event": "warning[SC2100]", "message": "Use $((..)) for arithmetics, e.g. i=$((i - 2))", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 114| @test \"add single file creates absolute path with correct permissions\" {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 115| _prefetch ubuntu", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 116|-> imgName=ubuntu-image", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 117| createrandom ${TEST_SCRATCH_DIR}/distutils.cfg", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 118| permission=$(stat -c \"%a\" ${TEST_SCRATCH_DIR}/distutils.cfg)", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 398, "language": "shell", "tool": "shellcheck", "hash_v1": "09d6a73e8c519c786d35055f7a6cd9ea75da5ea4", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/add.bats", "line": 136, "column": 11, "h_size": 12, "event": "warning[SC2100]", "message": "Use $((..)) for arithmetics, e.g. i=$((i - 2))", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 134| @test \"add single file creates relative path with correct permissions\" {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 135| _prefetch ubuntu", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 136|-> imgName=ubuntu-image", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 137| createrandom ${TEST_SCRATCH_DIR}/distutils.cfg", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 138| permission=$(stat -c \"%a\" ${TEST_SCRATCH_DIR}/distutils.cfg)", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "20dee88ed5775492114073db063225392d878dc0", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/blobcache.bats", "line": 41, "column": 10, "h_size": 15, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 39| \t\tfor blob in ${blobcachedir}/* ; do", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 40| \t\t\tif cmp -s ${content} ${blob} ; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 41|-> \t\t\t\techo $(file ${blob}) and ${content} have the same contents, was cached", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 42| \t\t\t\tmatch=true", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 43| \t\t\t\tbreak", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 569, "language": "shell", "tool": "shellcheck", "hash_v1": "23ee502ccff1bf8e3caef32aa1270c6bc1e94541", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 171, "column": 17, "h_size": 2, "event": "warning[SC2048]", "message": "Use \"$@\" (with quotes) to prevent whitespace problems.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 169| --authfile ${TEST_SCRATCH_DIR}/test.auth \\", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 170| --tls-verify=false \\", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 171|-> $* \\", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 172| $imgname \\", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 173| docker://localhost:${REGISTRY_PORT}/$imgname", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 140, "language": "shell", "tool": "shellcheck", "hash_v1": "bd8224f414b621bfd02700335cc3d21271e3a6fd", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 278, "column": 23, "h_size": 39, "event": "warning[SC2207]", "message": "Prefer mapfile or read -a to split command output (or quote to avoid splitting).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 276| # Containerfile must contain one or more (four, as of 2022-10) lines", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 277| # of the form 'ARG TARGETxxx' for each of the variables of interest.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 278|-> local -a checkvars=($(sed -ne 's/^ARG //p' <$containerfile))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 279| assert \"${checkvars[*]}\" != \"\" \\", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 280| \"INTERNAL ERROR! No 'ARG xxx' lines in $containerfile!\"", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "ab89b92fa696c36d979d830aca4a1f9731116b8c", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 528, "column": 29, "h_size": 51, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 526| run_buildah 125 build -t testbud3 $WITH_POLICY_JSON $BUDFILES/dockerignore3", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 527| expect_output --substring 'building.*\"COPY test1.txt /upload/test1.txt\".*no such file or directory'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 528|-> expect_output --substring $(realpath \"$BUDFILES/dockerignore3/.dockerignore\")", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 529| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 530| ", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 457, "language": "shell", "tool": "shellcheck", "hash_v1": "151a40af021a9eccfdad55dcaba7e5c6b9ab9acb", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 718, "column": 10, "h_size": 11, "event": "warning[SC2154]", "message": "targetArch is referenced but not assigned (did you mean 'targetarch'?).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 716| targetarch=\"arm64\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 717| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 718|-> if [[ \"$targetArch\" == \"$myarch\" ]]; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 719| targetarch=\"amd64\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 720| fi", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 140, "language": "shell", "tool": "shellcheck", "hash_v1": "c27a5a9fdecd3d2ac36efedc6699893dd8a8d23c", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 2250, "column": 27, "h_size": 7, "event": "warning[SC2206]", "message": "Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 2248| @test \"bud-from-scratch-label\" {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2249| run_buildah --version", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2250|-> local -a output_fields=($output)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2251| buildah_version=${output_fields[2]}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2252| want_output='map[\"io.buildah.version\":\"'$buildah_version'\" \"test\":\"label\"]'", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 140, "language": "shell", "tool": "shellcheck", "hash_v1": "c27a5a9fdecd3d2ac36efedc6699893dd8a8d23c", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 2374, "column": 27, "h_size": 7, "event": "warning[SC2206]", "message": "Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 2372| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2373| run_buildah --version", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2374|-> local -a output_fields=($output)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2375| buildah_version=${output_fields[2]}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2376| ", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "b6dde0580c49ab418cc5bf4b9dbc0aa1b6e0ba04", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 3053, "column": 3, "h_size": 8, "event": "warning[SC2034]", "message": "from_cid appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 3051| expect_output --substring \"@unique.test.string@\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3052| run_buildah from --quiet ${from_target}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3053|-> from_cid=$output", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3054| run_buildah from ${target}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3055| }", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 398, "language": "shell", "tool": "shellcheck", "hash_v1": "1e6631b794827ca805dff9e0d9ae1a324ab0b319", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 3068, "column": 10, "h_size": 9, "event": "warning[SC2100]", "message": "Use $((..)) for arithmetics, e.g. i=$((i - 2))", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 3066| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3067| @test \"bud with Dockerfile from valid URL\" {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3068|-> target=url-image", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3069| url=https://raw.githubusercontent.com/containers/buildah/main/tests/bud/from-scratch/Dockerfile", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3070| run_buildah build $WITH_POLICY_JSON -t ${target} ${url}", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 398, "language": "shell", "tool": "shellcheck", "hash_v1": "1e6631b794827ca805dff9e0d9ae1a324ab0b319", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 3075, "column": 10, "h_size": 9, "event": "warning[SC2100]", "message": "Use $((..)) for arithmetics, e.g. i=$((i - 2))", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 3073| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3074| @test \"bud with Dockerfile from invalid URL\" {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3075|-> target=url-image", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3076| url=https://raw.githubusercontent.com/containers/buildah/main/tests/bud/from-scratch/Dockerfile.bogus", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3077| run_buildah 125 build $WITH_POLICY_JSON -t ${target} ${url}", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "bcb26cb2bff5b26db5c28b7a05be5dfd2fa3e0a0", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 3666, "column": 8, "h_size": 40, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 3664| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3665| # Check that both the version with --jobs 1 and --jobs=N have the same number of files", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3666|-> test $(find $root_single_job -type f | wc -l) = $(find $root_multi_job -type f | wc -l)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3667| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3668| ", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "bcb26cb2bff5b26db5c28b7a05be5dfd2fa3e0a0", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 3666, "column": 51, "h_size": 39, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 3664| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3665| # Check that both the version with --jobs 1 and --jobs=N have the same number of files", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3666|-> test $(find $root_single_job -type f | wc -l) = $(find $root_multi_job -type f | wc -l)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3667| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3668| ", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 140, "language": "shell", "tool": "shellcheck", "hash_v1": "c27a5a9fdecd3d2ac36efedc6699893dd8a8d23c", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 4112, "column": 27, "h_size": 7, "event": "warning[SC2206]", "message": "Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 4110| @test \"bud-no-change-label\" {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4111| run_buildah --version", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4112|-> local -a output_fields=($output)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4113| buildah_version=${output_fields[2]}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4114| want_output='map[\"io.buildah.version\":\"'$buildah_version'\" \"test\":\"label\"]'", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "85be872772a708ae20d2d25e57f9ecb1493a6c4d", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 4543, "column": 9, "h_size": 8, "event": "warning[SC2155]", "message": "Declare and assign separately to avoid masking return values.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 4541| mkdir -p $ocidir/blobs/sha256", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4542| # Build an image config and image manifest in parallel", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4543|-> local configos=$(${BUILDAH_BINARY} info --format '{{.host.os}}')", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4544| local configarch=$(${BUILDAH_BINARY} info --format '{{.host.arch}}')", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4545| local configvariant=$(${BUILDAH_BINARY} info --format '{{.host.variant}}')", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "7cd865af88faf820d8a4811bc1d45ad18af9eca0", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 4544, "column": 9, "h_size": 10, "event": "warning[SC2155]", "message": "Declare and assign separately to avoid masking return values.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 4542| # Build an image config and image manifest in parallel", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4543| local configos=$(${BUILDAH_BINARY} info --format '{{.host.os}}')", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4544|-> local configarch=$(${BUILDAH_BINARY} info --format '{{.host.arch}}')", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4545| local configvariant=$(${BUILDAH_BINARY} info --format '{{.host.variant}}')", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4546| local configvariantkv=${configvariant:+'\"variant\": \"'${configvariant}'\", '}", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "24f6dab6617456098ef6cde2d1a1716e0737efe6", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 4545, "column": 9, "h_size": 13, "event": "warning[SC2155]", "message": "Declare and assign separately to avoid masking return values.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 4543| local configos=$(${BUILDAH_BINARY} info --format '{{.host.os}}')", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4544| local configarch=$(${BUILDAH_BINARY} info --format '{{.host.arch}}')", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4545|-> local configvariant=$(${BUILDAH_BINARY} info --format '{{.host.variant}}')", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4546| local configvariantkv=${configvariant:+'\"variant\": \"'${configvariant}'\", '}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4547| echo '{\"architecture\": \"'\"${configarch}\"'\", \"os\": \"'\"${configos}\"'\", '\"${configvariantkv}\"'\"rootfs\": {\"type\": \"layers\", \"diff_ids\": [' > ${TEST_SCRATCH_DIR}/config.json", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "75afe30659b33b089d8310cde936ccd36ae4aafc", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 4556, "column": 11, "h_size": 6, "event": "warning[SC2155]", "message": "Declare and assign separately to avoid masking return values.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 4554| tar -c -C ${TEST_SCRATCH_DIR} -f ${TEST_SCRATCH_DIR}/layer$layer.tar file$layer", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4555| # Get the layer blob's digest and size", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4556|-> local diffid=$(sha256sum ${TEST_SCRATCH_DIR}/layer$layer.tar)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4557| local diffsize=$(wc -c ${TEST_SCRATCH_DIR}/layer$layer.tar)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4558| # Link the blob into where an OCI layout would put it.", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "d705080f6d37c43416d9583f8343013979f67be5", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 4557, "column": 11, "h_size": 8, "event": "warning[SC2155]", "message": "Declare and assign separately to avoid masking return values.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 4555| # Get the layer blob's digest and size", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4556| local diffid=$(sha256sum ${TEST_SCRATCH_DIR}/layer$layer.tar)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4557|-> local diffsize=$(wc -c ${TEST_SCRATCH_DIR}/layer$layer.tar)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4558| # Link the blob into where an OCI layout would put it.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4559| ln ${TEST_SCRATCH_DIR}/layer$layer.tar $ocidir/blobs/sha256/${diffid%% *}", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "3110410ae27f3caddb06f44d2fb42d6d5b96fe98", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 4576, "column": 9, "h_size": 10, "event": "warning[SC2155]", "message": "Declare and assign separately to avoid masking return values.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 4574| echo ']}, \"config\": { \"Cmd\": [\"/bin/sh\"], \"Env\": [ \"PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin\" ]}}' >> ${TEST_SCRATCH_DIR}/config.json", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4575| # Compute the config blob's digest and size, so that we can list it in the manifest.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4576|-> local configsize=$(wc -c ${TEST_SCRATCH_DIR}/config.json)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4577| local configdigest=$(sha256sum ${TEST_SCRATCH_DIR}/config.json)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4578| # Finish the manifest with information about the config blob.", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "1d3691a8e34cc992eda0833086ca25e6ffb2937b", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 4577, "column": 9, "h_size": 12, "event": "warning[SC2155]", "message": "Declare and assign separately to avoid masking return values.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 4575| # Compute the config blob's digest and size, so that we can list it in the manifest.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4576| local configsize=$(wc -c ${TEST_SCRATCH_DIR}/config.json)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4577|-> local configdigest=$(sha256sum ${TEST_SCRATCH_DIR}/config.json)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4578| # Finish the manifest with information about the config blob.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4579| echo '], \"config\": { \"mediaType\": \"application/vnd.oci.image.config.v1+json\", \"digest\": \"sha256:'${configdigest%% *}'\", \"size\": '${configsize%% *}'}}' >> ${TEST_SCRATCH_DIR}/manifest.json", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "7d2a69c34bf40d413afb7aa18b3b302009a7c588", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 4581, "column": 9, "h_size": 12, "event": "warning[SC2155]", "message": "Declare and assign separately to avoid masking return values.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 4579| echo '], \"config\": { \"mediaType\": \"application/vnd.oci.image.config.v1+json\", \"digest\": \"sha256:'${configdigest%% *}'\", \"size\": '${configsize%% *}'}}' >> ${TEST_SCRATCH_DIR}/manifest.json", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4580| # Compute the manifest's digest and size, so that we can list it in the OCI layout index.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4581|-> local manifestsize=$(wc -c ${TEST_SCRATCH_DIR}/manifest.json)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4582| local manifestdigest=$(sha256sum ${TEST_SCRATCH_DIR}/manifest.json)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4583| # Link the config blob and manifest into where an OCI layout would put them.", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "ed8e87002f585582f34a2d0d89927544e7637cf0", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 4582, "column": 9, "h_size": 14, "event": "warning[SC2155]", "message": "Declare and assign separately to avoid masking return values.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 4580| # Compute the manifest's digest and size, so that we can list it in the OCI layout index.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4581| local manifestsize=$(wc -c ${TEST_SCRATCH_DIR}/manifest.json)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4582|-> local manifestdigest=$(sha256sum ${TEST_SCRATCH_DIR}/manifest.json)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4583| # Link the config blob and manifest into where an OCI layout would put them.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4584| ln ${TEST_SCRATCH_DIR}/config.json $ocidir/blobs/sha256/${configdigest%% *}", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 670, "language": "shell", "tool": "shellcheck", "hash_v1": "d754663e269c0ea7d92e8b5b01ced9759e7c754d", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 4598, "column": 11, "h_size": 8, "event": "warning[SC2128]", "message": "Expanding an array without an index only gives the first element.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 4596| # out of all of this.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4597| run_buildah inspect --format '{{.History}}' fakeregistry.podman.invalid/notreal", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4598|-> assert \"${lines}\" == '[]' \"base image generated for test had history field that was not an empty slice\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4599| # Build images using our image-with-no-history as a base, to check that we", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4600| # don't trip over ourselves when doing so.", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "0493bc8666d8505f235bd8653aa78b5de5dd583b", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 4647, "column": 10, "h_size": 3, "event": "warning[SC2155]", "message": "Declare and assign separately to avoid masking return values.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 4645| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4646| # Envariable from environment", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4647|-> export foo=$(random_string 20)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4648| run_buildah build $WITH_POLICY_JSON -t ${target} --build-arg foo $BUDFILES/build-arg", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4649| assert \"${lines[3]}\" = \"$foo\"", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 140, "language": "shell", "tool": "shellcheck", "hash_v1": "c27a5a9fdecd3d2ac36efedc6699893dd8a8d23c", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 4674, "column": 27, "h_size": 7, "event": "warning[SC2206]", "message": "Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 4672| run_buildah build $WITH_POLICY_JSON -t ${target} $BUDFILES/from-scratch", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4673| run_buildah --version", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4674|-> local -a output_fields=($output)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4675| buildah_version=${output_fields[2]}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4676| ", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 153, "language": "shell", "tool": "shellcheck", "hash_v1": "d70ed66bc6a1a4bf2f9637e088621de18b494f1c", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 4893, "column": 23, "h_size": 7, "event": "warning[SC2053]", "message": "Quote the right-hand side of != in [[ ]] to prevent glob matching.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 4891| # as a sanity thing.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4892| for other in $actions; do", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4893|-> if [[ $other != $action ]]; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4894| assert \"$(< ${TEST_SCRATCH_DIR}/${action}1)\" != \"$(< ${TEST_SCRATCH_DIR}/${other}1)\" \\", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4895| \"iidfile(${action}1) != iidfile(${other}1)\"", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "f8e6663b81b84ecb21ceb1064dd2339b27bf371d", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 6342, "column": 17, "h_size": 54, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 6340| # Build and export container to tar", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6341| run_buildah build --no-cache $WITH_POLICY_JSON -t ${target} -f $BUDFILES/containerfile/Containerfile.in $BUDFILES/containerfile", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6342|-> podman export $(podman create --name ${target} --net=host ${target}) --output=$contextdir.tar", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6343| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6344| # We are done exporting so remove images and containers which are not needed", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "f8e6663b81b84ecb21ceb1064dd2339b27bf371d", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 6367, "column": 17, "h_size": 54, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 6365| # Build and export container to tar", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6366| run_buildah build --no-cache $WITH_POLICY_JSON -t ${target} -f $BUDFILES/add-run-dir/Dockerfile", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6367|-> podman export $(podman create --name ${target} --net=host ${target}) --output=$contextdir.tar", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6368| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6369| # We are done exporting so remove images and containers which are not needed", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 149, "language": "shell", "tool": "shellcheck", "hash_v1": "2e3129bb2bed1fb2357aa24e0624fb8d88da824f", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 6553, "column": 21, "h_size": 3, "event": "warning[SC2140]", "message": "Word is of the form \"A\"B\"C\" (B indicated). Did you mean \"ABC\" or \"A\\\"B\\\"C\"?", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 6551| _EOF", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6552| target=env-image", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6553|-> check=\"FTP_PROXY=\"FTP\" ftp_proxy=ftp http_proxy=http HTTPS_PROXY=HTTPS\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6554| bogus=\"BOGUS_PROXY=BOGUS\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6555| eval $check $bogus run_buildah build --unsetenv PATH $WITH_POLICY_JSON -t oci-${target} -f $mytmpdir/Containerfile .", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 457, "language": "shell", "tool": "shellcheck", "hash_v1": "3a851a339d65342c2d78459f909f5d2c398a44ff", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 6817, "column": 9, "h_size": 11, "event": "warning[SC2154]", "message": "http_proxy is referenced but not assigned.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 6815| expect_rc=6", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6816| expect_err=\"Could not resolve host: www.redhat.com\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6817|-> if [[ $http_proxy != \"\" ]]; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6818| expect_rc=5", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6819| expect_err=\"Could not resolve proxy:\"", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "c381778bda0d67ba4d900f825f5471de4c88e093", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/bud.bats", "line": 6932, "column": 11, "h_size": 7, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 6930| echo FROM busybox > ${TEST_SCRATCH_DIR}/Containerfile", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6931| arch=amd64", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6932|-> if test $(arch) = x86_64 ; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6933| arch=arm64", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6934| fi", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "language": "shell", "tool": "shellcheck", "hash_v1": "3e1f3600fe069bd9a46282bba747f0380f764bdb", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/cdi.bats", "line": 12, "column": 3, "h_size": 67, "event": "error[SC2284]", "message": "Use [ x = y ] to compare values (or quote '==' if literal).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 10| sed -e s:@@hostcdipath@@:$cdidir:g $BUDFILES/cdi/containers-cdi.yaml > $cdidir/containers-cdi.yaml", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 11| chmod 644 $cdidir/containers-cdi.yaml", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 12|-> echo === Begin CDI configuration in $cdidir/containers-cdi.yaml ===", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 13| cat $cdidir/containers-cdi.yaml", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 14| echo === End CDI configuration ===", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "language": "shell", "tool": "shellcheck", "hash_v1": "bed17f1991b04f1818475d84a8a44f6e6e10e2f2", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/cdi.bats", "line": 14, "column": 3, "h_size": 34, "event": "error[SC2284]", "message": "Use [ x = y ] to compare values (or quote '==' if literal).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 12| echo === Begin CDI configuration in $cdidir/containers-cdi.yaml ===", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 13| cat $cdidir/containers-cdi.yaml", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 14|-> echo === End CDI configuration ===", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 15| run_buildah build $WITH_POLICY_JSON --cdi-config-dir=$cdidir --security-opt label=disable --device=containers.github.io/sample=all --device=/dev/null:/dev/outsidenull:rwm $BUDFILES/cdi", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 16| }", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "language": "shell", "tool": "shellcheck", "hash_v1": "3e1f3600fe069bd9a46282bba747f0380f764bdb", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/cdi.bats", "line": 25, "column": 3, "h_size": 67, "event": "error[SC2284]", "message": "Use [ x = y ] to compare values (or quote '==' if literal).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 23| sed -e s:@@hostcdipath@@:$cdidir:g $BUDFILES/cdi/containers-cdi.yaml > $cdidir/containers-cdi.yaml", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 24| chmod 644 $cdidir/containers-cdi.yaml", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 25|-> echo === Begin CDI configuration in $cdidir/containers-cdi.yaml ===", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 26| cat $cdidir/containers-cdi.yaml", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 27| echo === End CDI configuration ===", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "language": "shell", "tool": "shellcheck", "hash_v1": "bed17f1991b04f1818475d84a8a44f6e6e10e2f2", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/cdi.bats", "line": 27, "column": 3, "h_size": 34, "event": "error[SC2284]", "message": "Use [ x = y ] to compare values (or quote '==' if literal).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 25| echo === Begin CDI configuration in $cdidir/containers-cdi.yaml ===", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 26| cat $cdidir/containers-cdi.yaml", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 27|-> echo === End CDI configuration ===", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 28| run_buildah from $WITH_POLICY_JSON --security-opt label=disable --cdi-config-dir=$cdidir --device=containers.github.io/sample=all --device=/dev/null:/dev/outsidenull:rwm busybox", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 29| cid=\"$output\"", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "language": "shell", "tool": "shellcheck", "hash_v1": "3e1f3600fe069bd9a46282bba747f0380f764bdb", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/cdi.bats", "line": 40, "column": 3, "h_size": 67, "event": "error[SC2284]", "message": "Use [ x = y ] to compare values (or quote '==' if literal).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 38| sed -e s:@@hostcdipath@@:$cdidir:g $BUDFILES/cdi/containers-cdi.yaml > $cdidir/containers-cdi.yaml", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 39| chmod 644 $cdidir/containers-cdi.yaml", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 40|-> echo === Begin CDI configuration in $cdidir/containers-cdi.yaml ===", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 41| cat $cdidir/containers-cdi.yaml", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 42| echo === End CDI configuration ===", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "language": "shell", "tool": "shellcheck", "hash_v1": "bed17f1991b04f1818475d84a8a44f6e6e10e2f2", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/cdi.bats", "line": 42, "column": 3, "h_size": 34, "event": "error[SC2284]", "message": "Use [ x = y ] to compare values (or quote '==' if literal).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 40| echo === Begin CDI configuration in $cdidir/containers-cdi.yaml ===", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 41| cat $cdidir/containers-cdi.yaml", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 42|-> echo === End CDI configuration ===", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 43| run_buildah from $WITH_POLICY_JSON --security-opt label=disable busybox", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 44| cid=\"$output\"", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "9702e1784f89c352ad3ab45f632735239fb2bc27", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/chroot.bats", "line": 50, "column": 14, "h_size": 26, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 48| # looking for $storagedir, so tweak perms to let them do at least that much", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 49| fixupdir=$storagedir", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 50|-> while test $(stat -c %d:%i $fixupdir) != $(stat -c %d:%i /) ; do", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 51| # walk up to root, or the first parent that we don't own", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 52| if test $(stat -c %u $fixupdir) -ne $(id -u) ; then", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "9702e1784f89c352ad3ab45f632735239fb2bc27", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/chroot.bats", "line": 50, "column": 44, "h_size": 18, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 48| # looking for $storagedir, so tweak perms to let them do at least that much", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 49| fixupdir=$storagedir", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 50|-> while test $(stat -c %d:%i $fixupdir) != $(stat -c %d:%i /) ; do", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 51| # walk up to root, or the first parent that we don't own", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 52| if test $(stat -c %u $fixupdir) -ne $(id -u) ; then", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "c908b4e78f9a9c877c9346c35086a20679fb4381", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/chroot.bats", "line": 52, "column": 13, "h_size": 23, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 50| while test $(stat -c %d:%i $fixupdir) != $(stat -c %d:%i /) ; do", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 51| # walk up to root, or the first parent that we don't own", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 52|-> if test $(stat -c %u $fixupdir) -ne $(id -u) ; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 53| break", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 54| fi", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "c908b4e78f9a9c877c9346c35086a20679fb4381", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/chroot.bats", "line": 52, "column": 41, "h_size": 8, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 50| while test $(stat -c %d:%i $fixupdir) != $(stat -c %d:%i /) ; do", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 51| # walk up to root, or the first parent that we don't own", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 52|-> if test $(stat -c %u $fixupdir) -ne $(id -u) ; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 53| break", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 54| fi", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 140, "language": "shell", "tool": "shellcheck", "hash_v1": "de011d5a572d5b7e9594d7f5416cc4c4e3cfa9d8", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/commit.bats", "line": 169, "column": 33, "h_size": 7, "event": "warning[SC2206]", "message": "Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 167| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 168| \trun_buildah --version", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 169|-> local -a output_fields=($output)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 170| \tbuildah_version=${output_fields[2]}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 171| ", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "e8bc1ceb17899c4cb43c8859332b985cc41467b6", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/commit.bats", "line": 302, "column": 30, "h_size": 8, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 300| cid=$output", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 301| run_buildah run $cid touch /testfile", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 302|-> run_buildah run $cid chown $(id -u):$(id -g) /testfile", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 303| run_buildah commit $cid dir:${TEST_SCRATCH_DIR}/new-image", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 304| config=$(jq -r .config.digest ${TEST_SCRATCH_DIR}/new-image/manifest.json)", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "e8bc1ceb17899c4cb43c8859332b985cc41467b6", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/commit.bats", "line": 302, "column": 39, "h_size": 8, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 300| cid=$output", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 301| run_buildah run $cid touch /testfile", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 302|-> run_buildah run $cid chown $(id -u):$(id -g) /testfile", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 303| run_buildah commit $cid dir:${TEST_SCRATCH_DIR}/new-image", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 304| config=$(jq -r .config.digest ${TEST_SCRATCH_DIR}/new-image/manifest.json)", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "6fd7911b654a0317f08e73d6dbe6d47eb32724ba", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/commit.bats", "line": 315, "column": 23, "h_size": 8, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 313| # ownership information should be forced to be in number/number format", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 314| # instead of name/name because the names are gone", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 315|-> assert \"$output\" =~ $(id -u)/$(id -g)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 316| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 317| ", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "6fd7911b654a0317f08e73d6dbe6d47eb32724ba", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/commit.bats", "line": 315, "column": 32, "h_size": 8, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 313| # ownership information should be forced to be in number/number format", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 314| # instead of name/name because the names are gone", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 315|-> assert \"$output\" =~ $(id -u)/$(id -g)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 316| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 317| ", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "e9325112c7c52b27a5378401033d37463a489d0a", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/containers.bats", "line": 18, "column": 3, "h_size": 4, "event": "warning[SC2034]", "message": "cid2 appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 16| cid1=$output", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 17| run_buildah from --quiet --pull=false $WITH_POLICY_JSON busybox", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 18|-> cid2=$output", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 19| run_buildah containers --filter name=$cid1", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 20| expect_line_count 2", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "d4614d4b8b6a67d1ffd72ca93a90b2bc87771887", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/digest.bats", "line": 12, "column": 9, "h_size": 22, "event": "warning[SC2155]", "message": "Declare and assign separately to avoid masking return values.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 10| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 11| # If image includes '_v2sN', verify that image is schema version N", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 12|-> local expected_schemaversion=$(expr \"$img\" : '.*_v2s\\([0-9]\\)')", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 13| if [ -n \"$expected_schemaversion\" ]; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 14| actual_schemaversion=$(imgtype -expected-manifest-type '*' -show-manifest $img | jq .schemaVersion)", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "abdc948cc9f993d1a0404c6c03b919172f1f400b", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/digest.bats", "line": 52, "column": 9, "h_size": 8, "event": "warning[SC2155]", "message": "Declare and assign separately to avoid masking return values.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 50| #", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 51| # Check that the first and second .fsLayers and .history elements are dups", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 52|-> local manifest=$(imgtype -expected-manifest-type '*' -show-manifest ${IMG})", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 53| for element in fsLayers history; do", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 54| local first=$(jq \".${element}[0]\" <<<\"$manifest\")", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "166e17412504c3280ec30198991151fa8199fcde", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/digest.bats", "line": 54, "column": 13, "h_size": 5, "event": "warning[SC2155]", "message": "Declare and assign separately to avoid masking return values.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 52| local manifest=$(imgtype -expected-manifest-type '*' -show-manifest ${IMG})", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 53| for element in fsLayers history; do", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 54|-> local first=$(jq \".${element}[0]\" <<<\"$manifest\")", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 55| local second=$(jq \".${element}[1]\" <<<\"$manifest\")", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 56| expect_output --from=\"$second\" \"$first\" \"${IMG}: .${element}[1] == [0]\"", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "54b2c03374ed5176d34628654dd07a3ebe74d3c0", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/digest.bats", "line": 55, "column": 13, "h_size": 6, "event": "warning[SC2155]", "message": "Declare and assign separately to avoid masking return values.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 53| for element in fsLayers history; do", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 54| local first=$(jq \".${element}[0]\" <<<\"$manifest\")", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 55|-> local second=$(jq \".${element}[1]\" <<<\"$manifest\")", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 56| expect_output --from=\"$second\" \"$first\" \"${IMG}: .${element}[1] == [0]\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 57| done", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 477, "language": "shell", "tool": "shellcheck", "hash_v1": "273f5c12fc0a72169ff0193714d255f24915fedb", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/digest/make-v2sN", "line": 58, "column": 17, "h_size": 2, "event": "warning[SC2166]", "message": "Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 56| # FIXME: do we really need to know? Will it ever, in practice, be non-root?", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 57| user=$(id -un)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 58|-> if [ -n \"$user\" -a \"$user\" != \"root\" ]; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 59| add_to_readme \"By (user)\" \"$user\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 60| fi", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "43dffe98b5e1e38edddb4553c42572f96e7ed885", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/digest/make-v2sN", "line": 62, "column": 20, "h_size": 13, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 60| fi", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 61| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 62|-> create_script=$(cd $(dirname $0) && git ls-files --full-name $ME)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 63| if [ -z \"$create_script\" ]; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 64| create_script=$0", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "099e5cce4b5a06253f8eb9918366467d221ecbe6", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/digest/make-v2sN", "line": 68, "column": 16, "h_size": 13, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 66| add_to_readme \"By (script)\" \"$create_script\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 67| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 68|-> git_state=$(cd $(dirname $0) && git describe --dirty)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 69| if [ -n \"$git_state\" ]; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 70| add_to_readme \"git state\" \"$git_state\"", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "0856c7ce6358e75f01f951a6f89dfd0fc9118fba", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/digest/make-v2sN", "line": 88, "column": 29, "h_size": 14, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 86| # clean up interim layers. It's also necessary for dealing with v2s1 layers.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 87| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 88|-> TMPDIR=$(mktemp --tmpdir -d $(basename $0).XXXXXXX)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 89| push_flags=", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 90| if [[ $schemaversion -eq 1 ]]; then", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "98fbc5f2b2bdf502244173703c4975cebdbc13b4", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/digest/make-v2sN", "line": 133, "column": 26, "h_size": 44, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 131| # Manifest is embedded in the image but as a string, not actual JSON;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 132| # the eval-echo converts it to usable JSON", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 133|-> manifest=$(eval echo $(buildah inspect ${IMGNAME} | jq .Manifest))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 134| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 135| # Check desired schema version:", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "5435d705d78740b5f0b6052bbd1ab8dbb95c37c4", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/formats.bats", "line": 16, "column": 3, "h_size": 6, "event": "warning[SC2034]", "message": "expect appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 14| imgtype_dkr=\"application/vnd.docker.distribution.manifest.v2+json\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 15| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 16|-> expect=\"\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 17| case \"$2\" in", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 18| oci) want=$imgtype_oci; reject=$imgtype_dkr;;", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "c14b5bd00a6dd53a406c1c794968e4c15b69863e", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/from.bats", "line": 498, "column": 60, "h_size": 16, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 496| run_buildah from --quiet --pull $WITH_POLICY_JSON --arch=arm64 alpine", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 497| other=$output", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 498|-> run_buildah from --quiet --pull $WITH_POLICY_JSON --arch=$(go env GOARCH) alpine", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 499| cid=$output", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 500| run_buildah copy --from $other $cid /etc/apk/arch /root/other-arch", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "d5306d2601d54b455f88758b2a223219e3c56321", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/from.bats", "line": 541, "column": 3, "h_size": 6, "event": "warning[SC2034]", "message": "target appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 539| run_buildah login --tls-verify=false --authfile ${TEST_SCRATCH_DIR}/test.auth --username testuser --password testpassword localhost:${REGISTRY_PORT}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 540| run_buildah push $WITH_POLICY_JSON --tls-verify=false --authfile ${TEST_SCRATCH_DIR}/test.auth busybox docker://localhost:${REGISTRY_PORT}/buildah/busybox:latest", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 541|-> target=busybox-image", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 542| run_buildah from -q $WITH_POLICY_JSON --tls-verify=false --authfile ${TEST_SCRATCH_DIR}/test.auth docker://localhost:${REGISTRY_PORT}/buildah/busybox:latest", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 543| run_buildah rm $output", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 138, "language": "shell", "tool": "shellcheck", "hash_v1": "93a44ffcb7374ef2cfaa96edcb0ba5ca0505fd00", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/help.bats", "line": 72, "column": 64, "h_size": 2, "event": "error[SC2145]", "message": "Argument mixes string and array. Use * or separate argument.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 70| # the old command parser and cobra.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 71| assert \"$count\" -gt 0 \\", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 72|-> \"Internal error: no commands found in 'buildah help $@' list\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 73| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 74| # Sanity check: make sure the special loops above triggered at least once.", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 1164, "language": "shell", "tool": "shellcheck", "hash_v1": "9d0ab96214ab56e5cf0f91f8b849a736df5cc4d7", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/help.bats", "line": 79, "column": 18, "h_size": 11, "event": "warning[SC2043]", "message": "This loop will only ever run once. Bad quoting or missing glob/expansion?", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 77| # This loop is copied from podman test and redundant for buildah now.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 78| # But this is kept for future extension.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 79|-> for i in subcommands; do", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 80| if [[ -z ${found[$i]} ]]; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 81| die \"Internal error: '$i' subtest did not trigger\"", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 670, "language": "shell", "tool": "shellcheck", "hash_v1": "ba9d1fc18c49640e0d5e5dce9bfb314051171806", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 4, "column": 40, "h_size": 14, "event": "warning[SC2128]", "message": "Expanding an array without an index only gives the first element.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 2| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3| # Directory in which tests live", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4|-> TEST_SOURCES=${TEST_SOURCES:-$(dirname ${BASH_SOURCE})}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 5| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6| BUILDAH_BINARY=${BUILDAH_BINARY:-$TEST_SOURCES/../bin/buildah}", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 670, "language": "shell", "tool": "shellcheck", "hash_v1": "bc22993fd34c6475a6e951b2354e6306355cb835", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 12, "column": 16, "h_size": 14, "event": "warning[SC2128]", "message": "Expanding an array without an index only gives the first element.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 10| INET_BINARY=${INET_BINARY:-$TEST_SOURCES/../bin/inet}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 11| STORAGE_DRIVER=${STORAGE_DRIVER:-vfs}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 12|-> PATH=$(dirname ${BASH_SOURCE})/../bin:${PATH}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 13| OCI=${CI_DESIRED_RUNTIME:-$(${BUILDAH_BINARY} info --format '{{.host.OCIRuntime}}' || command -v runc || command -v crun)}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 14| # Default timeout for a buildah command.", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "c75a6e27b97127bdd7a2f28a299f85564328fbdd", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 26, "column": 6, "h_size": 8, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 24| # Prompt to display when logging buildah commands; distinguish root/rootless", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 25| _LOG_PROMPT='$'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 26|-> if [ $(id -u) -eq 0 ]; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 27| _LOG_PROMPT='#'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 28| fi", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "29a92a5827326fe55bb2eb78358d8357da3296b3", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 31, "column": 1, "h_size": 8, "event": "warning[SC2034]", "message": "BUDFILES appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 29| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 30| # Shortcut for directory containing Containerfiles for bud.bats", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 31|-> BUDFILES=${TEST_SOURCES}/bud", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 32| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 33| # Used hundreds of times throughout all the tests", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "ca7166215dce82eb8beefd3954c0e1fc558ea95c", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 34, "column": 1, "h_size": 16, "event": "warning[SC2034]", "message": "WITH_POLICY_JSON appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 32| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 33| # Used hundreds of times throughout all the tests", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 34|-> WITH_POLICY_JSON=\"--signature-policy ${TEST_SOURCES}/policy.json\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 35| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 36| # We don't invoke gnupg directly in many places, but this avoids ENOTTY errors", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 252, "language": "shell", "tool": "shellcheck", "hash_v1": "67154ba799abb38476a7176f0118d1a93f1f0f6a", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 46, "column": 5, "h_size": 50, "event": "warning[SC2164]", "message": "Use 'pushd ... || exit' or 'pushd ... || return' in case pushd fails.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 44| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 45| function setup_tests() {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 46|-> pushd \"$(dirname \"$(readlink -f \"$BASH_SOURCE\")\")\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 47| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 48| # $TEST_SCRATCH_DIR is a custom scratch directory for each @test,", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 670, "language": "shell", "tool": "shellcheck", "hash_v1": "8478cbd7380d3742f94a20d4e821b32bf91b97ba", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 46, "column": 38, "h_size": 12, "event": "warning[SC2128]", "message": "Expanding an array without an index only gives the first element.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 44| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 45| function setup_tests() {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 46|-> pushd \"$(dirname \"$(readlink -f \"$BASH_SOURCE\")\")\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 47| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 48| # $TEST_SCRATCH_DIR is a custom scratch directory for each @test,", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 252, "language": "shell", "tool": "shellcheck", "hash_v1": "2e62dea8c7cfde50509ceab84671b25e30fe8c66", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 93, "column": 5, "h_size": 43, "event": "warning[SC2164]", "message": "Use 'pushd ... || exit' or 'pushd ... || return' in case pushd fails.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 91| chmod 600 \"$4\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 92| fi", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 93|-> pushd ${2:-${TEST_SCRATCH_DIR}} > /dev/null", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 94| go build -o serve ${TEST_SOURCES}/serve/serve.go", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 95| portfile=$(mktemp)", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "43e51d28e271c7216151425aed986506c5ccc74f", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 124, "column": 5, "h_size": 16, "event": "warning[SC2034]", "message": "HTTP_SERVER_PORT appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 122| fi", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 123| done", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 124|-> HTTP_SERVER_PORT=$(cat ${portfile})", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 125| rm -f ${portfile}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 126| popd > /dev/null", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 252, "language": "shell", "tool": "shellcheck", "hash_v1": "2c8ee2bc34fead68bb8179af8780ade862f5ab03", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 126, "column": 5, "h_size": 16, "event": "warning[SC2164]", "message": "Use 'popd ... || exit' or 'popd ... || return' in case popd fails.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 124| HTTP_SERVER_PORT=$(cat ${portfile})", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 125| rm -f ${portfile}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 126|-> popd > /dev/null", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 127| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 128| ", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 252, "language": "shell", "tool": "shellcheck", "hash_v1": "a6c0e710a15600f1923158f3f207039931dd2e78", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 158, "column": 5, "h_size": 4, "event": "warning[SC2164]", "message": "Use 'popd ... || exit' or 'popd ... || return' in case popd fails.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 156| rm -fr ${TEST_SCRATCH_DIR}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 157| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 158|-> popd", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 159| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 160| ", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "language": "shell", "tool": "shellcheck", "hash_v1": "453e563bf1ca15a6535a82708332d4d6f5704766", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 182, "column": 25, "h_size": 7, "event": "warning[SC2076]", "message": "Remove quotes from right-hand side of =~ to match as a regex rather than literally.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 180| local storage=", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 181| for img in \"$@\"; do", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 182|-> if [[ \"$img\" =~ '[vfs@' ]] ; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 183| storage=\"$img\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 184| continue", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 398, "language": "shell", "tool": "shellcheck", "hash_v1": "78c9e3b9aa6b649ce81b3c50c93dc76709e172ef", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 193, "column": 20, "h_size": 31, "event": "warning[SC2115]", "message": "Use \"${var:?}\" to ensure this never expands to / .", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 191| copy dir:$_BUILDAH_IMAGE_CACHEDIR/$fname containers-storage:\"$storage\"\"$img\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 192| else", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 193|-> rm -fr $_BUILDAH_IMAGE_CACHEDIR/$fname", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 194| echo \"# [copy docker://$img dir:$_BUILDAH_IMAGE_CACHEDIR/$fname]\" >&2", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 195| for attempt in $(seq 3) ; do", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "901185823edaabd03c9c0924b5f08025d8f1f1b2", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 195, "column": 13, "h_size": 3, "event": "warning[SC2034]", "message": "attempt appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 193| rm -fr $_BUILDAH_IMAGE_CACHEDIR/$fname", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 194| echo \"# [copy docker://$img dir:$_BUILDAH_IMAGE_CACHEDIR/$fname]\" >&2", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 195|-> for attempt in $(seq 3) ; do", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 196| if copy $COPY_REGISTRY_OPTS docker://\"$img\" dir:$_BUILDAH_IMAGE_CACHEDIR/$fname ; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 197| break", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 670, "language": "shell", "tool": "shellcheck", "hash_v1": "0e77d8b6941b4f5e7da3fb0a56137b26272ed075", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 335, "column": 62, "h_size": 14, "event": "warning[SC2128]", "message": "Expanding an array without an index only gives the first element.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 333| # stdout is only emitted upon error; this echo is to help a debugger", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 334| echo \"${_LOG_PROMPT} $BUILDAH_BINARY $*\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 335|-> run env CONTAINERS_CONF=${CONTAINERS_CONF:-$(dirname ${BASH_SOURCE})/containers.conf} timeout --foreground --kill=10 $BUILDAH_TIMEOUT ${BUILDAH_BINARY} ${BUILDAH_REGISTRY_OPTS} ${ROOTDIR_OPTS} \"$@\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 336| # without \"quotes\", multiple lines are glommed together into one", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 337| if [ -n \"$output\" ]; then", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 457, "language": "shell", "tool": "shellcheck", "hash_v1": "91f8aa928949d37cc2a8691a61473587d21e7ffc", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 340, "column": 15, "h_size": 7, "event": "warning[SC2154]", "message": "status is referenced but not assigned.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 338| echo \"$output\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 339| fi", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 340|-> if [ \"$status\" -ne 0 ]; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 341| echo -n \"[ rc=$status \";", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 342| if [ -n \"$expected_rc\" ]; then", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 477, "language": "shell", "tool": "shellcheck", "hash_v1": "37dc99d10e475af1ea9e4baa0c44ca1c60fb508c", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 352, "column": 32, "h_size": 2, "event": "warning[SC2166]", "message": "Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 350| fi", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 351| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 352|-> if [ \"$status\" -eq 124 -o \"$status\" -eq 137 ]; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 353| # FIXME: 'timeout -v' requires coreutils-8.29; travis seems to have", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 354| # an older version. If/when travis updates, please add -v", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "a6cf98efb2ece387d85da6d3bdfc0c371ede5406", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 497, "column": 15, "h_size": 5, "event": "warning[SC2155]", "message": "Declare and assign separately to avoid masking return values.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 495| local opt", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 496| for opt; do", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 497|-> local value=$(expr \"$opt\" : '[^=]*=\\(.*\\)')", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 498| case \"$opt\" in", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 499| --from=*) actual=\"$value\"; shift;;", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 457, "language": "shell", "tool": "shellcheck", "hash_v1": "8560a5036a4f615ca01de9649f1b8580e9488651", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 520, "column": 19, "h_size": 12, "event": "warning[SC2154]", "message": "lines is referenced but not assigned (did you mean 'line'?).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 518| local testname=\"${2:-${MOST_RECENT_BUILDAH_COMMAND:-[no test name given]}}\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 519| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 520|-> local actual=\"${#lines[@]}\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 521| if [ \"$actual\" -eq \"$expect\" ]; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 522| return", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "a633131af5d77521dd78b7ce2761a3f8150f1411", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 629, "column": 11, "h_size": 10, "event": "warning[SC2155]", "message": "Declare and assign separately to avoid masking return values.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 627| ##################", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 628| function is_cgroupsv2() {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 629|-> local cgroupfs_t=$(stat -f -c %T /sys/fs/cgroup)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 630| test \"$cgroupfs_t\" = \"cgroup2fs\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 631| }", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "6bfadafe95482ba32ca13dedbcfa1bc5551d23ac", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 688, "column": 31, "h_size": 8, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 686| skip \"unshare was not able to create a pid namespace\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 687| fi", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 688|-> if ! unshare -U --map-users $(id -u),0,1 true ; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 689| skip \"unshare does not support --map-users\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 690| fi", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "ebae7f61aebfb943be9bf6385a0173f59f34736a", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 716, "column": 3, "h_size": 7, "event": "warning[SC2034]", "message": "GITPORT appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 714| fi", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 715| done", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 716|-> GITPORT=$(cat ${TEST_SCRATCH_DIR}/git-daemon/port)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 717| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 718| ", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "98735843047761e7bc807f0855e703829d91ba84", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash", "line": 721, "column": 10, "h_size": 41, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 719| function stop_git_daemon() {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 720| if test -s ${TEST_SCRATCH_DIR}/git-daemon/pid ; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 721|-> kill $(cat ${TEST_SCRATCH_DIR}/git-daemon/pid)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 722| rm -f ${TEST_SCRATCH_DIR}/git-daemon/pid", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 723| fi", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "873b7a48c5fbe6b80ac2bc7e965d271c2e5ce6f5", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash.t", "line": 6, "column": 3, "h_size": 25, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 4| #", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 5| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6|-> . $(dirname ${BASH_SOURCE})/helpers.bash", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 7| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 8| INDEX=1", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 670, "language": "shell", "tool": "shellcheck", "hash_v1": "f01bff275a4e52deac3844641de1a83267f7bdf9", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/helpers.bash.t", "line": 6, "column": 13, "h_size": 14, "event": "warning[SC2128]", "message": "Expanding an array without an index only gives the first element.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 4| #", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 5| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6|-> . $(dirname ${BASH_SOURCE})/helpers.bash", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 7| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 8| INDEX=1", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 140, "language": "shell", "tool": "shellcheck", "hash_v1": "aa79dc974d4d65c9215a785319bb322b5a7f9d27", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/inspect.bats", "line": 34, "column": 27, "h_size": 7, "event": "warning[SC2206]", "message": "Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 32| # including version. Strip it out,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 33| run_buildah --version", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 34|-> local -a output_fields=($output)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 35| buildah_version=${output_fields[2]}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 36| inspect_cleaned=$(echo \"$inspect_after_commit\" | sed \"s/io.buildah.version:${buildah_version}//g\")", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 569, "language": "shell", "tool": "shellcheck", "hash_v1": "4364347a1393c37a7bce1645aca51852fc4d4d06", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/lists.bats", "line": 260, "column": 36, "event": "warning[SC1083]", "message": "This { is literal. Check expression (missing ;/\\n?) or quote it.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 258| @test \"manifest-from-tag\" {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 259| run_buildah from $WITH_POLICY_JSON --name test-container ${IMAGE_LIST}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 260|-> run_buildah inspect --format ''{{.OCIv1.Architecture}}' ${IMAGE_LIST}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 261| expect_output --substring $(go env GOARCH)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 262| run_buildah inspect --format ''{{.OCIv1.Architecture}}' test-container", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 569, "language": "shell", "tool": "shellcheck", "hash_v1": "4364347a1393c37a7bce1645aca51852fc4d4d06", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/lists.bats", "line": 260, "column": 37, "event": "warning[SC1083]", "message": "This { is literal. Check expression (missing ;/\\n?) or quote it.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 258| @test \"manifest-from-tag\" {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 259| run_buildah from $WITH_POLICY_JSON --name test-container ${IMAGE_LIST}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 260|-> run_buildah inspect --format ''{{.OCIv1.Architecture}}' ${IMAGE_LIST}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 261| expect_output --substring $(go env GOARCH)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 262| run_buildah inspect --format ''{{.OCIv1.Architecture}}' test-container", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 569, "language": "shell", "tool": "shellcheck", "hash_v1": "1cc9631ce3c1014a9f91979b4f19af98b43d1275", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/lists.bats", "line": 260, "column": 57, "event": "warning[SC1083]", "message": "This } is literal. Check expression (missing ;/\\n?) or quote it.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 258| @test \"manifest-from-tag\" {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 259| run_buildah from $WITH_POLICY_JSON --name test-container ${IMAGE_LIST}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 260|-> run_buildah inspect --format ''{{.OCIv1.Architecture}}' ${IMAGE_LIST}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 261| expect_output --substring $(go env GOARCH)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 262| run_buildah inspect --format ''{{.OCIv1.Architecture}}' test-container", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 569, "language": "shell", "tool": "shellcheck", "hash_v1": "1cc9631ce3c1014a9f91979b4f19af98b43d1275", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/lists.bats", "line": 260, "column": 58, "event": "warning[SC1083]", "message": "This } is literal. Check expression (missing ;/\\n?) or quote it.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 258| @test \"manifest-from-tag\" {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 259| run_buildah from $WITH_POLICY_JSON --name test-container ${IMAGE_LIST}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 260|-> run_buildah inspect --format ''{{.OCIv1.Architecture}}' ${IMAGE_LIST}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 261| expect_output --substring $(go env GOARCH)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 262| run_buildah inspect --format ''{{.OCIv1.Architecture}}' test-container", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 398, "language": "shell", "tool": "shellcheck", "hash_v1": "6892c7bbafd6b4075b47df794ceeed010123bd3d", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/lists.bats", "line": 260, "column": 59, "event": "warning[SC1078]", "message": "Did you forget to close this single quoted string?", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 258| @test \"manifest-from-tag\" {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 259| run_buildah from $WITH_POLICY_JSON --name test-container ${IMAGE_LIST}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 260|-> run_buildah inspect --format ''{{.OCIv1.Architecture}}' ${IMAGE_LIST}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 261| expect_output --substring $(go env GOARCH)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 262| run_buildah inspect --format ''{{.OCIv1.Architecture}}' test-container", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "f475496f94eba3d79421fd286eb14dc8282aca9d", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/lists.bats", "line": 263, "column": 31, "h_size": 16, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 261| expect_output --substring $(go env GOARCH)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 262| run_buildah inspect --format ''{{.OCIv1.Architecture}}' test-container", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 263|-> expect_output --substring $(go env GOARCH)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 264| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 265| ", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 569, "language": "shell", "tool": "shellcheck", "hash_v1": "5972db2dfd6d076552214b2ef30cd2ddd4c24e73", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/lists.bats", "line": 268, "column": 36, "event": "warning[SC1083]", "message": "This { is literal. Check expression (missing ;/\\n?) or quote it.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 266| @test \"manifest-from-digest\" {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 267| run_buildah from $WITH_POLICY_JSON --name test-container ${IMAGE_LIST_DIGEST}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 268|-> run_buildah inspect --format ''{{.OCIv1.Architecture}}' ${IMAGE_LIST_DIGEST}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 269| expect_output --substring $(go env GOARCH)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 270| run_buildah inspect --format ''{{.OCIv1.Architecture}}' test-container", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 569, "language": "shell", "tool": "shellcheck", "hash_v1": "5972db2dfd6d076552214b2ef30cd2ddd4c24e73", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/lists.bats", "line": 268, "column": 37, "event": "warning[SC1083]", "message": "This { is literal. Check expression (missing ;/\\n?) or quote it.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 266| @test \"manifest-from-digest\" {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 267| run_buildah from $WITH_POLICY_JSON --name test-container ${IMAGE_LIST_DIGEST}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 268|-> run_buildah inspect --format ''{{.OCIv1.Architecture}}' ${IMAGE_LIST_DIGEST}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 269| expect_output --substring $(go env GOARCH)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 270| run_buildah inspect --format ''{{.OCIv1.Architecture}}' test-container", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 569, "language": "shell", "tool": "shellcheck", "hash_v1": "f2788fc405f266474219485c60f875fbd07a78d1", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/lists.bats", "line": 268, "column": 57, "event": "warning[SC1083]", "message": "This } is literal. Check expression (missing ;/\\n?) or quote it.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 266| @test \"manifest-from-digest\" {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 267| run_buildah from $WITH_POLICY_JSON --name test-container ${IMAGE_LIST_DIGEST}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 268|-> run_buildah inspect --format ''{{.OCIv1.Architecture}}' ${IMAGE_LIST_DIGEST}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 269| expect_output --substring $(go env GOARCH)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 270| run_buildah inspect --format ''{{.OCIv1.Architecture}}' test-container", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 569, "language": "shell", "tool": "shellcheck", "hash_v1": "f2788fc405f266474219485c60f875fbd07a78d1", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/lists.bats", "line": 268, "column": 58, "event": "warning[SC1083]", "message": "This } is literal. Check expression (missing ;/\\n?) or quote it.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 266| @test \"manifest-from-digest\" {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 267| run_buildah from $WITH_POLICY_JSON --name test-container ${IMAGE_LIST_DIGEST}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 268|-> run_buildah inspect --format ''{{.OCIv1.Architecture}}' ${IMAGE_LIST_DIGEST}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 269| expect_output --substring $(go env GOARCH)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 270| run_buildah inspect --format ''{{.OCIv1.Architecture}}' test-container", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 398, "language": "shell", "tool": "shellcheck", "hash_v1": "84e18df5c483629b7dc02a36e6d29c2b21488221", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/lists.bats", "line": 268, "column": 59, "event": "warning[SC1078]", "message": "Did you forget to close this single quoted string?", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 266| @test \"manifest-from-digest\" {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 267| run_buildah from $WITH_POLICY_JSON --name test-container ${IMAGE_LIST_DIGEST}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 268|-> run_buildah inspect --format ''{{.OCIv1.Architecture}}' ${IMAGE_LIST_DIGEST}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 269| expect_output --substring $(go env GOARCH)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 270| run_buildah inspect --format ''{{.OCIv1.Architecture}}' test-container", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "f475496f94eba3d79421fd286eb14dc8282aca9d", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/lists.bats", "line": 271, "column": 31, "h_size": 16, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 269| expect_output --substring $(go env GOARCH)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 270| run_buildah inspect --format ''{{.OCIv1.Architecture}}' test-container", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 271|-> expect_output --substring $(go env GOARCH)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 272| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 273| ", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 569, "language": "shell", "tool": "shellcheck", "hash_v1": "c94fd46d476aea5dcebc0d42bff561c465437e21", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/lists.bats", "line": 276, "column": 36, "event": "warning[SC1083]", "message": "This { is literal. Check expression (missing ;/\\n?) or quote it.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 274| @test \"manifest-from-instance\" {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 275| run_buildah from $WITH_POLICY_JSON --name test-container ${IMAGE_LIST_INSTANCE}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 276|-> run_buildah inspect --format ''{{.OCIv1.Architecture}}' ${IMAGE_LIST_INSTANCE}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 277| expect_output --substring arm64", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 278| run_buildah inspect --format ''{{.OCIv1.Architecture}}' test-container", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 569, "language": "shell", "tool": "shellcheck", "hash_v1": "c94fd46d476aea5dcebc0d42bff561c465437e21", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/lists.bats", "line": 276, "column": 37, "event": "warning[SC1083]", "message": "This { is literal. Check expression (missing ;/\\n?) or quote it.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 274| @test \"manifest-from-instance\" {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 275| run_buildah from $WITH_POLICY_JSON --name test-container ${IMAGE_LIST_INSTANCE}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 276|-> run_buildah inspect --format ''{{.OCIv1.Architecture}}' ${IMAGE_LIST_INSTANCE}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 277| expect_output --substring arm64", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 278| run_buildah inspect --format ''{{.OCIv1.Architecture}}' test-container", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 569, "language": "shell", "tool": "shellcheck", "hash_v1": "18162a3f081769d4671f05845d09b2dd58d811e4", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/lists.bats", "line": 276, "column": 57, "event": "warning[SC1083]", "message": "This } is literal. Check expression (missing ;/\\n?) or quote it.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 274| @test \"manifest-from-instance\" {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 275| run_buildah from $WITH_POLICY_JSON --name test-container ${IMAGE_LIST_INSTANCE}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 276|-> run_buildah inspect --format ''{{.OCIv1.Architecture}}' ${IMAGE_LIST_INSTANCE}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 277| expect_output --substring arm64", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 278| run_buildah inspect --format ''{{.OCIv1.Architecture}}' test-container", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 569, "language": "shell", "tool": "shellcheck", "hash_v1": "18162a3f081769d4671f05845d09b2dd58d811e4", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/lists.bats", "line": 276, "column": 58, "event": "warning[SC1083]", "message": "This } is literal. Check expression (missing ;/\\n?) or quote it.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 274| @test \"manifest-from-instance\" {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 275| run_buildah from $WITH_POLICY_JSON --name test-container ${IMAGE_LIST_INSTANCE}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 276|-> run_buildah inspect --format ''{{.OCIv1.Architecture}}' ${IMAGE_LIST_INSTANCE}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 277| expect_output --substring arm64", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 278| run_buildah inspect --format ''{{.OCIv1.Architecture}}' test-container", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 398, "language": "shell", "tool": "shellcheck", "hash_v1": "533672468689addb502a932604574ab7f2a74635", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/lists.bats", "line": 276, "column": 59, "event": "warning[SC1078]", "message": "Did you forget to close this single quoted string?", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 274| @test \"manifest-from-instance\" {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 275| run_buildah from $WITH_POLICY_JSON --name test-container ${IMAGE_LIST_INSTANCE}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 276|-> run_buildah inspect --format ''{{.OCIv1.Architecture}}' ${IMAGE_LIST_INSTANCE}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 277| expect_output --substring arm64", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 278| run_buildah inspect --format ''{{.OCIv1.Architecture}}' test-container", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "3787fe61e16e019e2d37916147ae4859395c28b9", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/lists.bats", "line": 301, "column": 40, "h_size": 37, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 299| run_buildah bud --layers --iidfile ${TEST_SCRATCH_DIR}/image-id.txt ${TEST_SCRATCH_DIR}/build", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 300| # Make sure we can add the new image to the list.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 301|-> run_buildah manifest add test-list $(< ${TEST_SCRATCH_DIR}/image-id.txt)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 302| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 303| ", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "213cbe13e4d5731ca6a8faa21ba6bc6a244b505c", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/mkcw.bats", "line": 92, "column": 20, "h_size": 13, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 90| iidfile=\"$TEST_SCRATCH_DIR/iid\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 91| run_buildah commit --iidfile $iidfile --cw type=SEV,ignore_attestation_errors,passphrase=\"$passphrase\" \"$ctrID\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 92|-> mkcw_check_image $(< $iidfile)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 93| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 94| run_buildah commit --iidfile $iidfile --cw type=sev,ignore_attestation_errors,passphrase=\"$passphrase\" \"$ctrID\"", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "213cbe13e4d5731ca6a8faa21ba6bc6a244b505c", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/mkcw.bats", "line": 95, "column": 20, "h_size": 13, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 93| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 94| run_buildah commit --iidfile $iidfile --cw type=sev,ignore_attestation_errors,passphrase=\"$passphrase\" \"$ctrID\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 95|-> mkcw_check_image $(< $iidfile)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 96| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 97| ", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "b00eeb3533b53fee049653ab93f153d8684e0aeb", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/mkcw.bats", "line": 108, "column": 20, "h_size": 30, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| echo -n \"mkcw build\" > \"$TEST_SCRATCH_DIR\"/key", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| run_buildah build --iidfile \"$TEST_SCRATCH_DIR\"/iid --cw type=SEV,ignore_attestation_errors,passphrase=\"mkcw build\" -f bud/env/Dockerfile.check-env bud/env", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 108|-> mkcw_check_image $(cat \"$TEST_SCRATCH_DIR\"/iid)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 109| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 110| run_buildah build --iidfile \"$TEST_SCRATCH_DIR\"/iid --cw type=sev,ignore_attestation_errors,passphrase=\"mkcw build\" -f bud/env/Dockerfile.check-env bud/env", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "b00eeb3533b53fee049653ab93f153d8684e0aeb", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/mkcw.bats", "line": 111, "column": 20, "h_size": 30, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 109| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 110| run_buildah build --iidfile \"$TEST_SCRATCH_DIR\"/iid --cw type=sev,ignore_attestation_errors,passphrase=\"mkcw build\" -f bud/env/Dockerfile.check-env bud/env", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 111|-> mkcw_check_image $(cat \"$TEST_SCRATCH_DIR\"/iid)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 112| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 113| # the key thing about this next bit is mixing --layers with a final", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "b00eeb3533b53fee049653ab93f153d8684e0aeb", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/mkcw.bats", "line": 117, "column": 20, "h_size": 30, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 115| echo -n \"mkcw build --layers\" > \"$TEST_SCRATCH_DIR\"/key", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 116| run_buildah build --iidfile \"$TEST_SCRATCH_DIR\"/iid --cw type=SEV,ignore_attestation_errors,passphrase=\"mkcw build --layers\" --layers -f bud/env/Dockerfile.check-env bud/env", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 117|-> mkcw_check_image $(cat \"$TEST_SCRATCH_DIR\"/iid)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 118| }", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "095db5755181eb0c84e9233fbeb97ef0943373eb", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/namespaces.bats", "line": 88, "column": 9, "h_size": 6, "event": "warning[SC2155]", "message": "Declare and assign separately to avoid masking return values.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 86| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 87| assert \"$_output_idmap\" != \"\" \"Internal error: output_idmap is empty\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 88|-> local _idmap=$(sed -E -e 's, +, ,g' -e 's,^ +,,g' <<< \"${_output_idmap}\")", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 89| expect_output --from=\"$_idmap\" \"${_expect_idmap}\" \"$_testname\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 90| ", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "892ba5eff728b710d025977180890f0c9c9c58e3", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/namespaces.bats", "line": 135, "column": 17, "h_size": 52, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 133| # Look for a name that's in both the subuid and subgid files.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 134| for candidate in $(sed -e 's,:.*,,g' /etc/subuid); do", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 135|-> if test $(sed -e 's,:.*,,g' -e \"/$candidate/!d\" /etc/subgid) == \"$candidate\"; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 136| # Read the start of the subuid/subgid ranges. Assume length=65536.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 137| userbase=$(sed -e \"/^${candidate}:/!d\" -e 's,^[^:]*:,,g' -e 's,:[^:]*,,g' /etc/subuid)", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 88, "language": "shell", "tool": "shellcheck", "hash_v1": "373635d756c294fac130d4a76ddca2b4122e61de", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/namespaces.bats", "line": 323, "column": 24, "h_size": 11, "event": "error[SC2068]", "message": "Double quote array expansions to avoid re-splitting elements.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 321| # \"run\" doesn't have --userns option.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 322| if [ \"$nsflag\" != \"userns\" ]; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 323|-> for different in ${types[@]} ; do", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 324| # Check that, if we override it, we get what we specify for \"run\".", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 325| run_buildah run $RUNOPTS --\"$nsflag\"=$different \"$ctr\" readlink /proc/self/ns/\"$nstype\"", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "ffd4fc438f2b1bc1e5f885e873a7b091a729e1ab", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/rm.bats", "line": 40, "column": 3, "h_size": 4, "event": "warning[SC2034]", "message": "cid1 appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 38| _prefetch alpine busybox", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 39| run_buildah from $WITH_POLICY_JSON scratch", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 40|-> cid1=$output", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 41| run_buildah from --quiet $WITH_POLICY_JSON alpine", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 42| cid2=$output", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "7091a444d7ef3f0b58b861647f082d805a4abef6", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/rmi.bats", "line": 62, "column": 3, "h_size": 4, "event": "warning[SC2034]", "message": "cid1 appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 60| _prefetch alpine busybox", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 61| run_buildah from $WITH_POLICY_JSON scratch", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 62|-> cid1=$output", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 63| run_buildah from --quiet $WITH_POLICY_JSON alpine", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 64| cid2=$output", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "d8f368fc51db6ba1eb568e880d84f2c64f94fe1f", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/rmi.bats", "line": 64, "column": 3, "h_size": 4, "event": "warning[SC2034]", "message": "cid2 appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 62| cid1=$output", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 63| run_buildah from --quiet $WITH_POLICY_JSON alpine", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 64|-> cid2=$output", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 65| run_buildah from --quiet $WITH_POLICY_JSON busybox", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 66| cid3=$output", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "d4b2b12e754dff40b1a0604914265d744187b031", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/rmi.bats", "line": 66, "column": 3, "h_size": 4, "event": "warning[SC2034]", "message": "cid3 appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 64| cid2=$output", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 65| run_buildah from --quiet $WITH_POLICY_JSON busybox", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 66|-> cid3=$output", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 67| run_buildah 125 rmi --all", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 68| run_buildah images -q", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "75f91ff984f38f3294406ec63f7ad56a608ef145", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/run.bats", "line": 186, "column": 7, "h_size": 9, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 184| \tskip_if_no_runtime", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 185| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 186|-> \teval $(go env)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 187| \techo CGO_ENABLED=${CGO_ENABLED}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 188| \tif test \"$CGO_ENABLED\" -ne 1; then", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 569, "language": "shell", "tool": "shellcheck", "hash_v1": "84b4345c5e8851a2fd085a4f5bed6033ae375c1e", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/run.bats", "line": 614, "column": 5, "h_size": 1, "event": "error[SC1035]", "message": "You need a space after the [ and before the ].", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 612| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 613| \trootless=0", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 614|-> \tif [\"$(id -u)\" -ne 0 ]; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 615| \t\trootless=1", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 616| \tfi", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "bb5e18ac9d81091a3fa6a027b3addfe2e9c0d7db", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/run.bats", "line": 663, "column": 8, "h_size": 8, "event": "warning[SC2155]", "message": "Declare and assign separately to avoid masking return values.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 661| \t_prefetch ubuntu", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 662| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 663|-> \tlocal hostname=h-$(random_string)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 664| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 665| \trun_buildah from --quiet --pull=false $WITH_POLICY_JSON ubuntu", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 398, "language": "shell", "tool": "shellcheck", "hash_v1": "c3bb7d54730063702ec15ea5e19a2df2ee609175", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/run.bats", "line": 706, "column": 23, "event": "error[SC1087]", "message": "Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 704| \tcid=$output", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 705| \trun_buildah run --network=host --hostname $hostname $cid cat /etc/hosts", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 706|-> \tassert \"$output\" =~ \"$ip[[:blank:]]$hostname\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 707| \thostOutput=$output", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 708| \tm=$(buildah mount $cid)", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 398, "language": "shell", "tool": "shellcheck", "hash_v1": "c3bb7d54730063702ec15ea5e19a2df2ee609175", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/run.bats", "line": 716, "column": 23, "event": "error[SC1087]", "message": "Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 714| \t# --isolation chroot implies host networking so check for the correct hosts entry", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 715| \trun_buildah run --isolation chroot --hostname $hostname $cid cat /etc/hosts", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 716|-> \tassert \"$output\" =~ \"$ip[[:blank:]]$hostname\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 717| \trun_buildah rm -a", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 718| ", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "bb5e18ac9d81091a3fa6a027b3addfe2e9c0d7db", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/run.bats", "line": 739, "column": 8, "h_size": 8, "event": "warning[SC2155]", "message": "Declare and assign separately to avoid masking return values.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 737| \tcid=$output", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 738| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 739|-> \tlocal hostname=h-$(random_string)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 740| \tip=$(hostname -I | cut -f 1 -d \" \")", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 741| \trun_buildah run --network pasta --hostname $hostname $cid cat /etc/hosts", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 398, "language": "shell", "tool": "shellcheck", "hash_v1": "d65918df7bdd62c9a0c987c5fd1b9e75a0fe27c5", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/run.bats", "line": 742, "column": 23, "event": "error[SC1087]", "message": "Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 740| \tip=$(hostname -I | cut -f 1 -d \" \")", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 741| \trun_buildah run --network pasta --hostname $hostname $cid cat /etc/hosts", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 742|-> \tassert \"$output\" =~ \"$ip[[:blank:]]$hostname $cid\" \"--network pasta adds correct hostname\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 743| \t# FIXME we need pasta 20240814 or newer in the VMs to enable this", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 744| \t# assert \"$output\" =~ \"169.254.1.2[[:blank:]]host.containers.internal\" \"--network pasta adds correct internal entry\"", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 398, "language": "shell", "tool": "shellcheck", "hash_v1": "12709905611cb87c7ffc0ebb9a1217b3c5c3c6fb", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/run.bats", "line": 749, "column": 23, "event": "error[SC1087]", "message": "Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 747| \techo -e \"[network]\\ndefault_rootless_network_cmd = \\\"pasta\\\"\" > ${TEST_SCRATCH_DIR}/containers.conf", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 748| \tCONTAINERS_CONF_OVERRIDE=${TEST_SCRATCH_DIR}/containers.conf run_buildah run --hostname $hostname $cid cat /etc/hosts", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 749|-> \tassert \"$output\" =~ \"$ip[[:blank:]]$hostname $cid\" \"default_rootless_network_cmd = \\\"pasta\\\" works\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 750| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 751| \t# resolv.conf checks", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 457, "language": "shell", "tool": "shellcheck", "hash_v1": "9288bb458c8551d5488e1c10bc2b17eb8cea5548", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/run.bats", "line": 931, "column": 9, "h_size": 5, "event": "warning[SC2154]", "message": "test is referenced but not assigned (for output from commands, use \"$(test ...)\" ).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 929| \tskip_if_root_environment", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 930| \tif test \"$DBUS_SESSION_BUS_ADDRESS\" = \"\"; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 931|-> \t\tskip \"$test does not work when DBUS_SESSION_BUS_ADDRESS is not defined\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 932| \tfi", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 933| \t_prefetch alpine", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 277, "language": "shell", "tool": "shellcheck", "hash_v1": "99119e1221dcc13e815f765905646c61da8a8fca", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/sign.bats", "line": 11, "column": 12, "h_size": 11, "event": "warning[SC2174]", "message": "When used with -p, -m only applies to the deepest directory.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 9| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 10| export GNUPGHOME=${TEST_SCRATCH_DIR}/.gnupg", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 11|-> mkdir -p --mode=0700 $GNUPGHOME", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 12| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 13| # gpg on f30 and above needs this, otherwise:", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "bf4d56bde8a222a4b41a2889f63725a63f81d695", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/sign.bats", "line": 53, "column": 3, "h_size": 1, "event": "error[SC2314]", "message": "In Bats, ! does not cause a test failure. Use 'run ! ' (on Bats >= 1.5.0) instead.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 51| run_buildah push $WITH_POLICY_JSON --remove-signatures signed-alpine-image dir:${TEST_SCRATCH_DIR}/unsigned-image", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 52| ls -l ${TEST_SCRATCH_DIR}/unsigned-image/", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 53|-> ! test -s ${TEST_SCRATCH_DIR}/unsigned-image/signature-1", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 54| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 55| run_buildah commit $WITH_POLICY_JSON $cid unsigned-alpine-image", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "bf4d56bde8a222a4b41a2889f63725a63f81d695", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/sign.bats", "line": 69, "column": 3, "h_size": 1, "event": "error[SC2314]", "message": "In Bats, ! does not cause a test failure. Use 'run ! ' (on Bats >= 1.5.0) instead.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 67| run_buildah push $WITH_POLICY_JSON \"$imageID\" dir:${TEST_SCRATCH_DIR}/unsigned-image", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 68| ls -l ${TEST_SCRATCH_DIR}/unsigned-image/", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 69|-> ! test -s ${TEST_SCRATCH_DIR}/unsigned-image/signature-1", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 70| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 71| # Build a manifest list and try to push the list with signatures.", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "aaa84d7e9e1b9f7d925eb981daef20c0a11f8eb1", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/test_buildah_authentication.sh", "line": 139, "column": 16, "h_size": 20, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 137| ########", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 138| buildah rm $ctrid", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 139|-> buildah rmi -f $(buildah images -q)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 140| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 141| ########", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "aaa84d7e9e1b9f7d925eb981daef20c0a11f8eb1", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/test_buildah_authentication.sh", "line": 205, "column": 16, "h_size": 20, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 203| ########", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 204| buildah rm --all", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 205|-> buildah rmi -f $(buildah images -q)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 206| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 207| ########", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "6ddf928dc8badf58e20f6ee03dad5e25383e14a8", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/test_buildah_authentication.sh", "line": 235, "column": 14, "h_size": 21, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 233| rm -f ./Dockerfile", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 234| rm -rf ${TESTDIR}/auth", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 235|-> docker rm -f $(docker ps --all -q)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 236| docker rmi -f $(docker images -q)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 237| buildah rm $(buildah containers -q)", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "06457fb5d70692bec9140e04cd6039add77accf1", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/test_buildah_authentication.sh", "line": 236, "column": 15, "h_size": 19, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 234| rm -rf ${TESTDIR}/auth", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 235| docker rm -f $(docker ps --all -q)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 236|-> docker rmi -f $(docker images -q)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 237| buildah rm $(buildah containers -q)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 238| buildah rmi -f $(buildah images -q)", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "cb0716c2acccc97d0579239cf6f5d2a1488f486c", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/test_buildah_authentication.sh", "line": 237, "column": 12, "h_size": 24, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 235| docker rm -f $(docker ps --all -q)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 236| docker rmi -f $(docker images -q)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 237|-> buildah rm $(buildah containers -q)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 238| buildah rmi -f $(buildah images -q)", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "aaa84d7e9e1b9f7d925eb981daef20c0a11f8eb1", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/test_buildah_authentication.sh", "line": 238, "column": 16, "h_size": 20, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 236| docker rmi -f $(docker images -q)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 237| buildah rm $(buildah containers -q)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 238|-> buildah rmi -f $(buildah images -q)", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 252, "language": "shell", "tool": "shellcheck", "hash_v1": "f62786fe3b86bb5e53dfd5a7a0360a019efa5f24", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/test_buildah_build_rpm.sh", "line": 32, "column": 1, "h_size": 8, "event": "warning[SC2164]", "message": "Use 'cd ... || exit' or 'cd ... || return' in case cd fails.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 30| # Clone buildah from GitHub.com", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 31| ########", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 32|-> cd $SBOX", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 33| git clone https://github.com/containers/buildah.git", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 34| cd $GITROOT", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 252, "language": "shell", "tool": "shellcheck", "hash_v1": "c037219393f046531916a8e68d76459041ab514a", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/test_buildah_build_rpm.sh", "line": 34, "column": 1, "h_size": 11, "event": "warning[SC2164]", "message": "Use 'cd ... || exit' or 'cd ... || return' in case cd fails.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 32| cd $SBOX", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 33| git clone https://github.com/containers/buildah.git", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 34|-> cd $GITROOT", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 35| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 36| ########", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "09e8a60e1975d4d1fdb856565d51a8d3f04457a4", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/test_buildah_build_rpm.sh", "line": 102, "column": 12, "h_size": 24, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 100| # Clean up Buildah", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 101| ########", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 102|-> buildah rm $(buildah containers -q)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| buildah rmi -f $(buildah images -q)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| ", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "d8a70c2227b6ffc43b744236849ad303f2f685de", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/test_buildah_build_rpm.sh", "line": 103, "column": 16, "h_size": 20, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 101| ########", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 102| buildah rm $(buildah containers -q)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 103|-> buildah rmi -f $(buildah images -q)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105| ########", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "09e8a60e1975d4d1fdb856565d51a8d3f04457a4", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/test_buildah_build_rpm.sh", "line": 122, "column": 12, "h_size": 24, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 120| rm -rf ${SBOX}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 121| rm -rf ${PACKAGES}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 122|-> buildah rm $(buildah containers -q)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 123| buildah rmi -f $(buildah images -q)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 124| ${PACKAGER} remove -y buildah", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "d8a70c2227b6ffc43b744236849ad303f2f685de", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/test_buildah_build_rpm.sh", "line": 123, "column": 16, "h_size": 20, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 121| rm -rf ${PACKAGES}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 122| buildah rm $(buildah containers -q)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 123|-> buildah rmi -f $(buildah images -q)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 124| ${PACKAGER} remove -y buildah", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 670, "language": "shell", "tool": "shellcheck", "hash_v1": "ff1eae884ea101f3a8e562a8742d94a5821aabed", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/test_runner.sh", "line": 4, "column": 31, "h_size": 12, "event": "warning[SC2128]", "message": "Expanding an array without an index only gives the first element.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 2| set -e", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 4|-> cd \"$(dirname \"$(readlink -f \"$BASH_SOURCE\")\")\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 5| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 6| # Default to using /var/tmp for test space, since it's more likely to support", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 138, "language": "shell", "tool": "shellcheck", "hash_v1": "4688fd0bfa696ae346e330504da623bbaa70c50f", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/test_runner.sh", "line": 11, "column": 15, "h_size": 2, "event": "error[SC2145]", "message": "Argument mixes string and array. Use * or separate argument.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 9| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 10| function execute() {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 11|-> \t>&2 echo \"++ $@\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 12| \teval \"$@\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 13| }", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "language": "shell", "tool": "shellcheck", "hash_v1": "0063a86bbda2399bf367930ee83a5f1630c7d20b", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/test_runner.sh", "line": 12, "column": 8, "h_size": 2, "event": "warning[SC2294]", "message": "eval negates the benefit of arrays. Drop eval to preserve whitespace/symbols (or eval as string).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 10| function execute() {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 11| \t>&2 echo \"++ $@\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 12|-> \teval \"$@\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 13| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 14| ", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "847b4f775b47cfba3347801c6fe80f82b683ca38", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/github.com/golangci/misspell/install-misspell.sh", "line": 338, "column": 1, "h_size": 12, "event": "warning[SC2034]", "message": "PROJECT_NAME appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 336| EOF", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 337| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 338|-> PROJECT_NAME=\"misspell\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 339| OWNER=golangci", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 340| REPO=\"misspell\"", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 829, "language": "shell", "tool": "shellcheck", "hash_v1": "fb3799d33387fb8c13fa4cc997b69f0b91b4c2fe", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/github.com/pelletier/go-toml/benchmark.sh", "line": 8, "column": 6, "h_size": 28, "event": "warning[SC2092]", "message": "Remove backticks to avoid executing output (or use eval if intentional).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 6| reference_git=${2:-.}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 7| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 8|-> if ! `hash benchstat 2>/dev/null`; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 9| echo \"Installing benchstat\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 10| go get golang.org/x/perf/cmd/benchstat", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 252, "language": "shell", "tool": "shellcheck", "hash_v1": "c4b7c7af9f5d7372c7466906c07397cdce856687", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/github.com/pelletier/go-toml/v2/ci.sh", "line": 78, "column": 5, "h_size": 12, "event": "warning[SC2164]", "message": "Use 'pushd ... || exit' or 'pushd ... || return' in case pushd fails.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 76| fi", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 77| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 78|-> pushd \"$dir\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 79| go test -covermode=atomic -coverpkg=./... -coverprofile=coverage.out.tmp ./...", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 80| grep -Ev '(fuzz|testsuite|tomltestgen|gotoml-test-decoder|gotoml-test-encoder)' coverage.out.tmp > coverage.out", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 252, "language": "shell", "tool": "shellcheck", "hash_v1": "3508a0687700942eb2a09bf5938f382667a0693f", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/github.com/pelletier/go-toml/v2/ci.sh", "line": 83, "column": 5, "h_size": 4, "event": "warning[SC2164]", "message": "Use 'popd ... || exit' or 'popd ... || return' in case popd fails.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 81| go tool cover -func=coverage.out", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 82| echo \"Coverage profile for ${branch}: ${dir}/coverage.out\" >&2", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 83|-> popd", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 84| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 85| if [ \"${branch}\" != \"HEAD\" ]; then", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 252, "language": "shell", "tool": "shellcheck", "hash_v1": "c4b7c7af9f5d7372c7466906c07397cdce856687", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/github.com/pelletier/go-toml/v2/ci.sh", "line": 147, "column": 5, "h_size": 12, "event": "warning[SC2164]", "message": "Use 'pushd ... || exit' or 'pushd ... || return' in case pushd fails.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 145| fi", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 146| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 147|-> pushd \"$dir\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 148| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 149| if [ \"${replace}\" != \"\" ]; then", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 252, "language": "shell", "tool": "shellcheck", "hash_v1": "3508a0687700942eb2a09bf5938f382667a0693f", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/github.com/pelletier/go-toml/v2/ci.sh", "line": 156, "column": 5, "h_size": 4, "event": "warning[SC2164]", "message": "Use 'popd ... || exit' or 'popd ... || return' in case popd fails.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 154| export GOMAXPROCS=2", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 155| go test '-bench=^Benchmark(Un)?[mM]arshal' -count=10 -run=Nothing ./... | tee \"${out}\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 156|-> popd", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 157| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 158| if [ \"${branch}\" != \"HEAD\" ]; then", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "f3c9ff4a2df06d2e04b3a2e29698b52715764822", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/github.com/pelletier/go-toml/v2/ci.sh", "line": 277, "column": 23, "h_size": 8, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 275| esac", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 276| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 277|-> bench \"${1-HEAD}\" `mktemp`", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 278| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 279| ", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 88, "language": "shell", "tool": "shellcheck", "hash_v1": "b9e76a74b4e97571754dc6b8e14b85d08d580128", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/github.com/pelletier/go-toml/v2/ci.sh", "line": 281, "column": 31, "h_size": 2, "event": "error[SC2068]", "message": "Double quote array expansions to avoid re-splitting elements.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 279| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 280| case \"$1\" in", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 281|-> coverage) shift; coverage $@;;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 282| benchmark) shift; benchmark $@;;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 283| *) usage \"bad argument $1\";;", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 88, "language": "shell", "tool": "shellcheck", "hash_v1": "ebf7ffe4fec96d50b1c798fa4c9f634604635cb3", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/github.com/pelletier/go-toml/v2/ci.sh", "line": 282, "column": 33, "h_size": 2, "event": "error[SC2068]", "message": "Double quote array expansions to avoid re-splitting elements.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 280| case \"$1\" in", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 281| coverage) shift; coverage $@;;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 282|-> benchmark) shift; benchmark $@;;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 283| *) usage \"bad argument $1\";;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 284| esac", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 569, "language": "shell", "tool": "shellcheck", "hash_v1": "9b985e0f5355e5d451978f994e831ef334ecf728", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/github.com/securego/gosec/v2/entrypoint.sh", "line": 11, "column": 12, "h_size": 10, "event": "warning[SC2048]", "message": "Use \"${array[@]}\" (with quotes) to prevent whitespace problems.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 9| fi", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 10| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 11|-> /bin/gosec ${ARGS[*]}", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "77bcf9ddf5a47440bf5cddd8a169a43f53ecd4f7", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/github.com/securego/gosec/v2/install.sh", "line": 340, "column": 1, "h_size": 6, "event": "warning[SC2034]", "message": "BINARY appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 338| OWNER=securego", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 339| REPO=\"gosec\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 340|-> BINARY=gosec", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 341| FORMAT=tar.gz", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 342| OS=$(uname_os)", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "language": "shell", "tool": "shellcheck", "hash_v1": "53811500ecc248aaa5342b49a420e1d601da1b5c", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/github.com/securego/gosec/v2/perf-diff.sh", "line": 34, "column": 7, "event": "warning[SC1014]", "message": "Use 'if cmd; then ..' to check exit code, or 'if [[ $(cmd) == .. ]]' to check output.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 32| # Compute the difference of the execution time.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 33| diff=$(($duration - $duration_master))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 34|-> if [[ diff -lt 0 ]]; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 35| diff=$(($diff * -1))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 36| fi", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 156, "language": "shell", "tool": "shellcheck", "hash_v1": "cf0e6b8cf17044f0f8dfdc70171bc1c3054d4fb1", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/golang.org/x/sys/unix/mkall.sh", "line": 53, "column": 47, "h_size": 39, "event": "warning[SC2046]", "message": "Quote this to prevent word splitting.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 51| \t# Files generated through docker (use $cmd so you can Ctl-C the build or run)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 52| \t$cmd docker build --tag generate:$GOOS $GOOS", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 53|-> \t$cmd docker run --interactive --tty --volume $(cd -- \"$(dirname -- \"$0\")/..\" && pwd):/build generate:$GOOS", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 54| \texit", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 55| fi", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 569, "language": "shell", "tool": "shellcheck", "hash_v1": "8abd4106d579915c6a05893780941fe5c4a7fc57", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/golang.org/x/sys/unix/mkall.sh", "line": 59, "column": 1, "h_size": 2, "event": "warning[SC2221]", "message": "This pattern always overrides a later one on line 59.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 57| GOOSARCH_in=syscall_$GOOSARCH.go", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 58| case \"$GOOSARCH\" in", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 59|-> _* | *_ | _)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 60| \techo 'undefined $GOOS_$GOARCH:' \"$GOOSARCH\" 1>&2", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 61| \texit 1", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 569, "language": "shell", "tool": "shellcheck", "hash_v1": "8abd4106d579915c6a05893780941fe5c4a7fc57", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/golang.org/x/sys/unix/mkall.sh", "line": 59, "column": 6, "h_size": 2, "event": "warning[SC2221]", "message": "This pattern always overrides a later one on line 59.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 57| GOOSARCH_in=syscall_$GOOSARCH.go", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 58| case \"$GOOSARCH\" in", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 59|-> _* | *_ | _)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 60| \techo 'undefined $GOOS_$GOARCH:' \"$GOOSARCH\" 1>&2", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 61| \texit 1", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 569, "language": "shell", "tool": "shellcheck", "hash_v1": "76b2711edec4251e83a5993c04aea3ff432d4b95", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/golang.org/x/sys/unix/mkall.sh", "line": 59, "column": 11, "h_size": 1, "event": "warning[SC2222]", "message": "This pattern never matches because of a previous pattern on line 59.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 57| GOOSARCH_in=syscall_$GOOSARCH.go", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 58| case \"$GOOSARCH\" in", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 59|-> _* | *_ | _)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 60| \techo 'undefined $GOOS_$GOARCH:' \"$GOOSARCH\" 1>&2", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 61| \texit 1", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 149, "language": "shell", "tool": "shellcheck", "hash_v1": "d3b103ff576cbda1aa67740f8f5098a19d07ef9f", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/golang.org/x/sys/unix/mkall.sh", "line": 234, "column": 125, "h_size": 9, "event": "warning[SC2027]", "message": "The surrounding quotes actually unquote this. Remove or escape them.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 232| \t\t\tif [ \"$GOOSARCH\" == \"aix_ppc64\" ]; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 233| \t\t\t\t# aix/ppc64 script generates files instead of writing to stdin.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 234|-> \t\t\t\techo \"$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in && gofmt -w zsyscall_$GOOSARCH.go && gofmt -w zsyscall_\"$GOOSARCH\"_gccgo.go && gofmt -w zsyscall_\"$GOOSARCH\"_gc.go \" ;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 235| \t\t\telif [ \"$GOOS\" == \"illumos\" ]; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 236| \t\t\t # illumos code generation requires a --illumos switch", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 149, "language": "shell", "tool": "shellcheck", "hash_v1": "d3b103ff576cbda1aa67740f8f5098a19d07ef9f", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/golang.org/x/sys/unix/mkall.sh", "line": 234, "column": 167, "h_size": 9, "event": "warning[SC2027]", "message": "The surrounding quotes actually unquote this. Remove or escape them.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 232| \t\t\tif [ \"$GOOSARCH\" == \"aix_ppc64\" ]; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 233| \t\t\t\t# aix/ppc64 script generates files instead of writing to stdin.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 234|-> \t\t\t\techo \"$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in && gofmt -w zsyscall_$GOOSARCH.go && gofmt -w zsyscall_\"$GOOSARCH\"_gccgo.go && gofmt -w zsyscall_\"$GOOSARCH\"_gc.go \" ;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 235| \t\t\telif [ \"$GOOS\" == \"illumos\" ]; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 236| \t\t\t # illumos code generation requires a --illumos switch", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "276bc3fb9ece143ec1184e7a2600741522554b83", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/golang.org/x/sys/unix/mkerrors.sh", "line": 37, "column": 1, "h_size": 5, "event": "warning[SC2034]", "message": "uname appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 35| fi", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 36| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 37|-> uname=$(uname)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 38| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 39| includes_AIX='", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "5f3ffb7ce89bf9c8e20542b0e54783dfc25b1ec2", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/golang.org/x/sys/unix/mkerrors.sh", "line": 39, "column": 1, "h_size": 12, "event": "warning[SC2034]", "message": "includes_AIX appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 37| uname=$(uname)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 38| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 39|-> includes_AIX='", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 40| #include <net/if.h>", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 41| #include <net/netopt.h>", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "be3edcadbca5336a7eec6712344cafc0caaad008", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/golang.org/x/sys/unix/mkerrors.sh", "line": 55, "column": 1, "h_size": 15, "event": "warning[SC2034]", "message": "includes_Darwin appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 53| '", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 54| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 55|-> includes_Darwin='", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 56| #define _DARWIN_C_SOURCE", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 57| #define KERNEL 1", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "8493df47a4c15fca78be392b3c86ed9f6cb671bc", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/golang.org/x/sys/unix/mkerrors.sh", "line": 93, "column": 1, "h_size": 18, "event": "warning[SC2034]", "message": "includes_DragonFly appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 91| '", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 92| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 93|-> includes_DragonFly='", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 94| #include <sys/types.h>", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 95| #include <sys/event.h>", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "9e259c9bc178362e3ec6c91d734057d63a5fc82c", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/golang.org/x/sys/unix/mkerrors.sh", "line": 116, "column": 1, "h_size": 16, "event": "warning[SC2034]", "message": "includes_FreeBSD appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 114| '", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 115| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 116|-> includes_FreeBSD='", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 117| #include <sys/capsicum.h>", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 118| #include <sys/param.h>", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "601bba3582f0ec1e9aafd6a499ace86487a6918f", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/golang.org/x/sys/unix/mkerrors.sh", "line": 153, "column": 1, "h_size": 14, "event": "warning[SC2034]", "message": "includes_Linux appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 151| '", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 152| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 153|-> includes_Linux='", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 154| #define _LARGEFILE_SOURCE", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 155| #define _LARGEFILE64_SOURCE", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "d96d3467f6071922b4dab393ecc290b5cf0a9e7e", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/golang.org/x/sys/unix/mkerrors.sh", "line": 343, "column": 1, "h_size": 15, "event": "warning[SC2034]", "message": "includes_NetBSD appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 341| '", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 342| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 343|-> includes_NetBSD='", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 344| #include <sys/types.h>", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 345| #include <sys/param.h>", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "4be02df231d8764809ac6bb9f47b12d976c64171", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/golang.org/x/sys/unix/mkerrors.sh", "line": 372, "column": 1, "h_size": 16, "event": "warning[SC2034]", "message": "includes_OpenBSD appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 370| '", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 371| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 372|-> includes_OpenBSD='", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 373| #include <sys/types.h>", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 374| #include <sys/param.h>", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 563, "language": "shell", "tool": "shellcheck", "hash_v1": "77b140c60d3d32143b2582a650fcfe5e63903523", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/golang.org/x/sys/unix/mkerrors.sh", "line": 413, "column": 1, "h_size": 14, "event": "warning[SC2034]", "message": "includes_SunOS appears unused. Verify use (or export if used externally).", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 411| '", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 412| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 413|-> includes_SunOS='", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 414| #include <limits.h>", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 415| #include <sys/types.h>", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 569, "language": "shell", "tool": "shellcheck", "hash_v1": "2af5c0a9caca69d07d673a6ccb5e13c48080e8d3", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tools/vendor/golang.org/x/sys/unix/mkerrors.sh", "line": 454, "column": 9, "h_size": 4, "event": "warning[SC2124]", "message": "Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 452| #include <time.h>", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 453| '", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 454|-> ccflags=\"$@\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 455| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 456| # Write go tool cgo -godefs input.", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "ef70d205a57b1611d913d2c091c943c863bb1ec9", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/tutorial.bats", "line": 18, "column": 2, "h_size": 1, "event": "error[SC2314]", "message": "In Bats, ! does not cause a test failure. Use 'run ! ' (on Bats >= 1.5.0) instead.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 16| \techo \"build output:\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 17| \techo \"${output}\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 18|-> \t! grep -q init.scope <<< \"$buildoutput\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 19| \trun sed -e '0,/^CUT START/d' -e '/^CUT END/,//d' <<< \"$buildoutput\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 20| \t# should've found a /sys/fs/cgroup with stuff in it", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 153, "language": "shell", "tool": "shellcheck", "hash_v1": "55b91ed82c1d2729c39b64fbd053684228ab871d", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/validate/pr-should-include-tests.t", "line": 63, "column": 25, "h_size": 12, "event": "warning[SC2053]", "message": "Quote the right-hand side of != in [[ ]] to prevent glob matching.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 61| local actual_rc=$?", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 62| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 63|-> if [[ $actual_rc != $expected_rc ]]; then", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 64| echo \"not ok $testnum $testname\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 65| echo \"# expected rc $expected_rc\"", "verbosity_level": 1 } ] }, { "checker": "SHELLCHECK_WARNING", "cwe": 571, "language": "shell", "tool": "shellcheck", "hash_v1": "30a31ad7b291af4b6ae1598fc27c2c851da4c2e2", "key_event_idx": 0, "events": [ { "file_name": "/usr/share/buildah/test/system/validate/pr-should-include-tests.t", "line": 120, "column": 12, "h_size": 19, "event": "warning[SC2155]", "message": "Declare and assign separately to avoid masking return values.", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 118| export GITVALIDATE_EPOCH=$parent_sha", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 119| export CIRRUS_CHANGE_IN_REPO=$commit_sha", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 120|-> export CIRRUS_CHANGE_TITLE=$(git log -1 --format=%s $commit_sha)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 121| export CIRRUS_CHANGE_MESSAGE=", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 122| export CIRRUS_PR=$pr", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "69a091ceacabfb5cb580c366147c2d2d6201337f", "key_event_idx": 1, "events": [ { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 108, "column": 14, "event": "note", "message": "(4) opened here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "6e11d7dbf2933849cbad2c446532092601bbbbdd", "key_event_idx": 0, "events": [ { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 108, "column": 14, "event": "note", "message": "(4) opened here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "d61a18da11171254f5570b0a53fbfb0535f650eb", "key_event_idx": 1, "events": [ { "file_name": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 0, "event": "scope_hint", "message": "In function ‘containers_reexec’", "verbosity_level": 1 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 67, "column": 11, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 73, "column": 9, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 309, "column": 20, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 327, "column": 22, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 336, "column": 15, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 343, "column": 16, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 350, "column": 16, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 357, "column": 12, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 125, "column": 28, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 131, "column": 20, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 136, "column": 9, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 143, "column": 32, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 143, "column": 15, "event": "note", "message": "(36) allocated here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 154, "column": 12, "event": "note", "message": "(41) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 284, "column": 19, "event": "note", "message": "(44) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "e3d545337fb831e285c88cbd2abdf0d626aabe90", "key_event_idx": 0, "events": [ { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 117, "column": 27, "event": "note", "message": "(6) allocated here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 125, "column": 28, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 131, "column": 20, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 134, "column": 22, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 125, "column": 28, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "ec3e79db6bbe66dc5ce9796816fefd6dabf9f62c", "key_event_idx": 1, "events": [ { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 117, "column": 27, "event": "note", "message": "(6) allocated here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 125, "column": 28, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "4ab1fe591b3ab92213f2c9d9bff0554593107c04", "key_event_idx": 0, "events": [ { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 117, "column": 27, "event": "note", "message": "(6) allocated here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 125, "column": 28, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 131, "column": 20, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 134, "column": 22, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 125, "column": 28, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 131, "column": 20, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 154, "column": 12, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "d67aacc7ee23d70efa77a48b041926aa72fa9603", "key_event_idx": 0, "events": [ { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 117, "column": 27, "event": "note", "message": "(6) allocated here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 125, "column": 28, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 131, "column": 20, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 136, "column": 9, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 143, "column": 32, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 154, "column": 12, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "ecd97f9db9b6fb9c4b07e8e0b9c52d828a7e03aa", "key_event_idx": 1, "events": [ { "file_name": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 0, "event": "scope_hint", "message": "In function ‘containers_reexec’", "verbosity_level": 1 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 67, "column": 11, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 73, "column": 9, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 309, "column": 20, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 327, "column": 22, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 336, "column": 15, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 343, "column": 16, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 350, "column": 16, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 357, "column": 12, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 125, "column": 28, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 131, "column": 20, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 136, "column": 9, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 143, "column": 32, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 143, "column": 15, "event": "note", "message": "(36) allocated here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 154, "column": 12, "event": "note", "message": "(41) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 284, "column": 19, "event": "note", "message": "(44) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 231, "column": 13, "event": "note", "message": "(48) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 18, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 236, "column": 19, "event": "note", "message": "(50) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 248, "column": 20, "event": "note", "message": "(54) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 229, "column": 24, "event": "note", "message": "(56) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c", "line": 291, "column": 13, "event": "note", "message": "(59) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c", "line": 0, "event": "internal warning", "message": "child 12883 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "COMPILER_WARNING", "language": "c/c++", "tool": "gcc", "key_event_idx": 0, "events": [ { "file_name": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c", "line": 0, "event": "internal warning", "message": "child 12884 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "CPPCHECK_WARNING", "language": "c/c++", "tool": "cppcheck", "key_event_idx": 0, "events": [ { "file_name": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c", "line": 0, "event": "internal warning", "message": "child 21100 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "COMPILER_WARNING", "language": "c/c++", "tool": "gcc", "key_event_idx": 0, "events": [ { "file_name": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c", "line": 0, "event": "internal warning", "message": "child 21115 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "CPPCHECK_WARNING", "language": "c/c++", "tool": "cppcheck", "key_event_idx": 0, "events": [ { "file_name": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c", "line": 0, "event": "internal warning", "message": "child 29182 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "COMPILER_WARNING", "language": "c/c++", "tool": "gcc", "key_event_idx": 0, "events": [ { "file_name": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c", "line": 0, "event": "internal warning", "message": "child 29185 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "CPPCHECK_WARNING", "language": "c/c++", "tool": "cppcheck", "key_event_idx": 0, "events": [ { "file_name": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c", "line": 0, "event": "internal warning", "message": "child 4931 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "COMPILER_WARNING", "language": "c/c++", "tool": "gcc", "key_event_idx": 0, "events": [ { "file_name": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c", "line": 0, "event": "internal warning", "message": "child 4943 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "COMPILER_WARNING", "cwe": 1164, "language": "c/c++", "tool": "gcc", "hash_v1": "28012e6fa8fa6d5c9b19ebf603ddd234797c9d45", "key_event_idx": 0, "events": [ { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "fbdc5c5e64a87c0deaf547e6d52150821b8c1d7c", "key_event_idx": 1, "events": [ { "file_name": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 0, "event": "scope_hint", "message": "In function 'New'", "verbosity_level": 1 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "75520e460438b438ad3a992c70873a1a6d9eb2bb", "key_event_idx": 1, "events": [ { "file_name": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 0, "event": "scope_hint", "message": "In function ‘New’", "verbosity_level": 1 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "31dff89c1f86f90952d9143b4a183d7ed241cd92", "key_event_idx": 1, "events": [ { "file_name": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 0, "event": "scope_hint", "message": "In function ‘GetAttributeValue.part.0’", "verbosity_level": 1 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 300, "column": 7, "event": "note", "message": "(3) entry to ‘GetAttributeValue’", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/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": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 312, "column": 35, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 312, "column": 20, "event": "note", "message": "(10) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 316, "column": 34, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/vendor/github.com/miekg/pkcs11/pkcs11.go", "line": 316, "column": 34, "event": "note", "message": "(12) allocated here", "verbosity_level": 2 }, { "file_name": "buildah-1.38.0-build/buildah-1.38.0/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 } ] } ] }