Task #13676 - libblockdev-3.2.0-1.20240926142521813787.pr1063.14.ge02104ad/scan-results.js
back to task #13676download
{ "scan": { "analyzer-version-clippy": "1.81.0", "analyzer-version-cppcheck": "2.15.0", "analyzer-version-gcc": "14.2.1", "analyzer-version-gcc-analyzer": "14.2.1", "analyzer-version-shellcheck": "0.10.0", "analyzer-version-unicontrol": "0.0.2", "enabled-plugins": "clippy, cppcheck, gcc, shellcheck, unicontrol", "exit-code": 0, "host": "ip-172-16-1-197.us-west-2.compute.internal", "mock-config": "fedora-rawhide-x86_64", "project-name": "libblockdev-3.2.0-1.20240926142521813787.pr1063.14.ge02104ad", "store-results-to": "/tmp/tmpebzc7kw6/libblockdev-3.2.0-1.20240926142521813787.pr1063.14.ge02104ad.tar.xz", "time-created": "2024-09-26 14:36:15", "time-finished": "2024-09-26 14:38:55", "tool": "csmock", "tool-args": "'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,gcc,shellcheck,cppcheck,clippy' '-o' '/tmp/tmpebzc7kw6/libblockdev-3.2.0-1.20240926142521813787.pr1063.14.ge02104ad.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmpebzc7kw6/libblockdev-3.2.0-1.20240926142521813787.pr1063.14.ge02104ad.src.rpm'", "tool-version": "csmock-3.7.0-1.el9" }, "defects": [ { "checker": "COMPILER_WARNING", "language": "c/c++", "tool": "gcc", "key_event_idx": 0, "events": [ { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/lib/blockdev.c", "line": 0, "event": "internal warning", "message": "child 7999 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 688, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "081afae988566a470d97a9b45bd9c3c38e5e58a9", "key_event_idx": 1, "events": [ { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/crypto.c", "line": 0, "event": "scope_hint", "message": "In function 'bd_crypto_escrow_device'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/crypto.c", "line": 3322, "column": 56, "event": "warning[-Wanalyzer-null-argument]", "message": "use of NULL where non-null expected", "verbosity_level": 0 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/crypto.c", "line": 3267, "column": 10, "event": "note", "message": "(1) entry to 'bd_crypto_escrow_device'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/crypto.c", "line": 3296, "column": 8, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/crypto.c", "line": 3302, "column": 10, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gstring.h", "line": 37, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/giochannel.h", "line": 36, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib.h", "line": 56, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/crypto.c", "line": 21, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gstrfuncs.h", "line": 324, "column": 21, "event": "note", "message": "(4) inlined call to 'g_strdup_inline' from 'bd_crypto_escrow_device'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/crypto.c", "line": 3309, "column": 23, "event": "note", "message": "in expansion of macro 'g_strdup'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gstrfuncs.h", "line": 311, "column": 6, "event": "note", "message": "(5) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/crypto.c", "line": 0, "event": "scope_hint", "message": "In function 'bd_crypto_escrow_device'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/crypto.c", "line": 3310, "column": 5, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/crypto.c", "line": 3312, "column": 8, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gstrfuncs.h", "line": 324, "column": 21, "event": "note", "message": "(8) inlined call to 'g_strdup_inline' from 'bd_crypto_escrow_device'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/crypto.c", "line": 3321, "column": 22, "event": "note", "message": "in expansion of macro 'g_strdup'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gstrfuncs.h", "line": 311, "column": 7, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gstrfuncs.h", "line": 311, "column": 6, "event": "note", "message": "(10) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/crypto.c", "line": 0, "event": "scope_hint", "message": "In function 'bd_crypto_escrow_device'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/crypto.c", "line": 3322, "column": 56, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/crypto.c", "line": 3322, "column": 56, "event": "note", "message": "(12) argument 1 ('<unknown>') NULL where non-null expected", "verbosity_level": 2 }, { "file_name": "<built-in>", "line": 0, "event": "note", "message": "argument 1 of '__builtin_strlen' must be non-null", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3320| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3321| cert_data_copy = g_strdup (cert_data);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3322|-> cert = CERT_DecodeCertFromPackage (cert_data_copy, strlen (cert_data_copy));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3323| if (!cert) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3324| g_set_error (&l_error, BD_CRYPTO_ERROR, BD_CRYPTO_ERROR_CERT_DECODE,", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "2c424dfcea4a0eea6812476194cb0a90126e8156", "key_event_idx": 1, "events": [ { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/loop.c", "line": 0, "event": "scope_hint", "message": "In function 'bd_loop_info'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/loop.c", "line": 157, "column": 10, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(<unknown>, 0)'", "verbosity_level": 0 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/loop.c", "line": 157, "column": 10, "event": "note", "message": "(1) opened here (2) 'open(<unknown>, 0)' leaks here; was opened at (1)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 155| dev_loop = g_strdup_printf (\"/dev/%s\", loop);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 156| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 157|-> fd = open (dev_loop ? dev_loop : loop, O_RDONLY);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 158| if (fd < 0) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 159| g_set_error (error, BD_LOOP_ERROR, BD_LOOP_ERROR_DEVICE,", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "a9c5908a2d87d5cda4747f519131acb42c87659c", "key_event_idx": 1, "events": [ { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 0, "event": "scope_hint", "message": "In function 'bd_nvme_get_controller_info'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 492, "column": 17, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL '0'", "verbosity_level": 0 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 467, "column": 24, "event": "note", "message": "(1) entry to 'bd_nvme_get_controller_info'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 474, "column": 10, "event": "note", "message": "(2) calling '_open_dev' from 'bd_nvme_get_controller_info'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 392, "column": 6, "event": "note", "message": "(3) entry to '_open_dev'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 396, "column": 8, "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": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 474, "column": 10, "event": "note", "message": "(6) returning to 'bd_nvme_get_controller_info' from '_open_dev'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 475, "column": 8, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 478, "column": 15, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 478, "column": 15, "event": "note", "message": "(9) calling '_nvme_alloc' from 'bd_nvme_get_controller_info'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 408, "column": 7, "event": "note", "message": "(10) entry to '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(11) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 478, "column": 15, "event": "note", "message": "(13) returning to 'bd_nvme_get_controller_info' from '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "/usr/lib64/glib-2.0/include/glibconfig.h", "line": 9, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gtypes.h", "line": 34, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/galloca.h", "line": 34, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib.h", "line": 32, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 20, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1241, "column": 7, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1247, "column": 31, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR_IMPL'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1248, "column": 43, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 562, "column": 8, "event": "note", "message": "in expansion of macro 'G_LIKELY'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 479, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib.h", "line": 64, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 563, "column": 10, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 479, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 482, "column": 8, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 489, "column": 5, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 492, "column": 17, "event": "note", "message": "(18) dereference of NULL '_nvme_alloc(4096)'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 490| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 491| info = g_new0 (BDNVMEControllerInfo, 1);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 492|-> if ((ctrl_id->cmic & NVME_CTRL_CMIC_MULTI_PORT) == NVME_CTRL_CMIC_MULTI_PORT)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 493| info->features |= BD_NVME_CTRL_FEAT_MULTIPORT;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 494| if ((ctrl_id->cmic & NVME_CTRL_CMIC_MULTI_CTRL) == NVME_CTRL_CMIC_MULTI_CTRL)", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "20f1b2245c1db29fb0874d957b2e3b4e05c95d44", "key_event_idx": 1, "events": [ { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 0, "event": "scope_hint", "message": "In function 'bd_nvme_get_namespace_info'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 636, "column": 50, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL '0'", "verbosity_level": 0 }, { "file_name": "/usr/lib64/glib-2.0/include/glibconfig.h", "line": 163, "column": 45, "event": "note", "message": "in definition of macro 'GUINT32_TO_LE'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 636, "column": 26, "event": "note", "message": "in expansion of macro 'GUINT32_FROM_LE'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 587, "column": 22, "event": "note", "message": "(1) entry to 'bd_nvme_get_namespace_info'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 605, "column": 10, "event": "note", "message": "(2) calling '_open_dev' from 'bd_nvme_get_namespace_info'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 392, "column": 6, "event": "note", "message": "(3) entry to '_open_dev'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 396, "column": 8, "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": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 605, "column": 10, "event": "note", "message": "(6) returning to 'bd_nvme_get_namespace_info' from '_open_dev'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 606, "column": 8, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 610, "column": 11, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 611, "column": 8, "event": "note", "message": "(9) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 619, "column": 15, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 619, "column": 15, "event": "note", "message": "(11) calling '_nvme_alloc' from 'bd_nvme_get_namespace_info'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 408, "column": 7, "event": "note", "message": "(12) entry to '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 619, "column": 15, "event": "note", "message": "(15) returning to 'bd_nvme_get_namespace_info' from '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1241, "column": 7, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1247, "column": 31, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR_IMPL'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1248, "column": 43, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 562, "column": 8, "event": "note", "message": "in expansion of macro 'G_LIKELY'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 620, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 563, "column": 10, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 620, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 622, "column": 8, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 631, "column": 15, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 631, "column": 15, "event": "note", "message": "(20) calling '_nvme_alloc' from 'bd_nvme_get_namespace_info'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 408, "column": 7, "event": "note", "message": "(21) entry to '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 631, "column": 15, "event": "note", "message": "(24) returning to 'bd_nvme_get_namespace_info' from '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1241, "column": 7, "event": "note", "message": "(25) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1247, "column": 31, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR_IMPL'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1248, "column": 43, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 562, "column": 8, "event": "note", "message": "in expansion of macro 'G_LIKELY'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 632, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 563, "column": 10, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 632, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 636, "column": 8, "event": "note", "message": "(27) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 636, "column": 50, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "/usr/lib64/glib-2.0/include/glibconfig.h", "line": 163, "column": 45, "event": "note", "message": "in definition of macro 'GUINT32_TO_LE'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 636, "column": 26, "event": "note", "message": "in expansion of macro 'GUINT32_FROM_LE'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 636, "column": 50, "event": "note", "message": "(29) dereference of NULL '_nvme_alloc(4096)'", "verbosity_level": 2 }, { "file_name": "/usr/lib64/glib-2.0/include/glibconfig.h", "line": 163, "column": 45, "event": "note", "message": "in definition of macro 'GUINT32_TO_LE'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 636, "column": 26, "event": "note", "message": "in expansion of macro 'GUINT32_FROM_LE'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 634| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 635| /* send the NVME_IDENTIFY_CNS_NS_DESC_LIST ioctl, NVMe 1.3 */", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 636|-> if (ret_ctrl == 0 && GUINT32_FROM_LE (ctrl_id->ver) >= 0x10300) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 637| descs = _nvme_alloc (NVME_IDENTIFY_DATA_SIZE);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 638| g_warn_if_fail (descs != NULL);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "0486aed4704604dcbbd6bd30a45e40d231077231", "key_event_idx": 0, "events": [ { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 652, "column": 43, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL '0'", "verbosity_level": 0 }, { "file_name": "/usr/lib64/glib-2.0/include/glibconfig.h", "line": 168, "column": 45, "event": "note", "message": "in definition of macro 'GUINT64_TO_LE'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 652, "column": 19, "event": "note", "message": "in expansion of macro 'GUINT64_FROM_LE'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 587, "column": 22, "event": "note", "message": "(1) entry to 'bd_nvme_get_namespace_info'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 605, "column": 10, "event": "note", "message": "(2) calling '_open_dev' from 'bd_nvme_get_namespace_info'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 392, "column": 6, "event": "note", "message": "(3) entry to '_open_dev'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 396, "column": 8, "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": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 605, "column": 10, "event": "note", "message": "(6) returning to 'bd_nvme_get_namespace_info' from '_open_dev'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 606, "column": 8, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 610, "column": 11, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 611, "column": 8, "event": "note", "message": "(9) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 619, "column": 15, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 619, "column": 15, "event": "note", "message": "(11) calling '_nvme_alloc' from 'bd_nvme_get_namespace_info'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 408, "column": 7, "event": "note", "message": "(12) entry to '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 619, "column": 15, "event": "note", "message": "(15) returning to 'bd_nvme_get_namespace_info' from '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1241, "column": 7, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1247, "column": 31, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR_IMPL'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1248, "column": 43, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 562, "column": 8, "event": "note", "message": "in expansion of macro 'G_LIKELY'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 620, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 563, "column": 10, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 620, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 622, "column": 8, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 631, "column": 15, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 631, "column": 15, "event": "note", "message": "(20) calling '_nvme_alloc' from 'bd_nvme_get_namespace_info'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 408, "column": 7, "event": "note", "message": "(21) entry to '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 631, "column": 15, "event": "note", "message": "(24) returning to 'bd_nvme_get_namespace_info' from '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1241, "column": 7, "event": "note", "message": "(25) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1247, "column": 31, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR_IMPL'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1248, "column": 43, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 562, "column": 8, "event": "note", "message": "in expansion of macro 'G_LIKELY'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 632, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 563, "column": 10, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 632, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 636, "column": 8, "event": "note", "message": "(27) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 648, "column": 5, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 652, "column": 43, "event": "note", "message": "(29) dereference of NULL '_nvme_alloc(4096)'", "verbosity_level": 2 }, { "file_name": "/usr/lib64/glib-2.0/include/glibconfig.h", "line": 168, "column": 45, "event": "note", "message": "in definition of macro 'GUINT64_TO_LE'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 652, "column": 19, "event": "note", "message": "in expansion of macro 'GUINT64_FROM_LE'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 650| info = g_new0 (BDNVMENamespaceInfo, 1);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 651| info->nsid = nsid;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 652|-> info->nsize = GUINT64_FROM_LE (ns_info->nsze);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 653| info->ncap = GUINT64_FROM_LE (ns_info->ncap);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 654| info->nuse = GUINT64_FROM_LE (ns_info->nuse);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "61a3e970652d8b08a3e9eb744ff0156810b2a4e4", "key_event_idx": 1, "events": [ { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 0, "event": "scope_hint", "message": "In function 'bd_nvme_get_smart_log'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 791, "column": 19, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL '0'", "verbosity_level": 0 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 750, "column": 18, "event": "note", "message": "(1) entry to 'bd_nvme_get_smart_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 760, "column": 10, "event": "note", "message": "(2) calling '_open_dev' from 'bd_nvme_get_smart_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 392, "column": 6, "event": "note", "message": "(3) entry to '_open_dev'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 396, "column": 8, "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": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 760, "column": 10, "event": "note", "message": "(6) returning to 'bd_nvme_get_smart_log' from '_open_dev'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 761, "column": 8, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 765, "column": 15, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 765, "column": 15, "event": "note", "message": "(9) calling '_nvme_alloc' from 'bd_nvme_get_smart_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 408, "column": 7, "event": "note", "message": "(10) entry to '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(11) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 765, "column": 15, "event": "note", "message": "(13) returning to 'bd_nvme_get_smart_log' from '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1241, "column": 7, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1247, "column": 31, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR_IMPL'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1248, "column": 43, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 562, "column": 8, "event": "note", "message": "in expansion of macro 'G_LIKELY'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 766, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 563, "column": 10, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 766, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 768, "column": 8, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 777, "column": 17, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 777, "column": 17, "event": "note", "message": "(18) calling '_nvme_alloc' from 'bd_nvme_get_smart_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 408, "column": 7, "event": "note", "message": "(19) entry to '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 777, "column": 17, "event": "note", "message": "(22) returning to 'bd_nvme_get_smart_log' from '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1241, "column": 7, "event": "note", "message": "(23) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1247, "column": 31, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR_IMPL'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1248, "column": 43, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 562, "column": 8, "event": "note", "message": "in expansion of macro 'G_LIKELY'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 778, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 563, "column": 10, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 778, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 780, "column": 8, "event": "note", "message": "(25) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 788, "column": 5, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 791, "column": 19, "event": "note", "message": "(27) dereference of NULL '_nvme_alloc(512)'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 789| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 790| log = g_new0 (BDNVMESmartLog, 1);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 791|-> if ((smart_log->critical_warning & NVME_SMART_CRIT_SPARE) == NVME_SMART_CRIT_SPARE)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 792| log->critical_warning |= BD_NVME_SMART_CRITICAL_WARNING_SPARE;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 793| if ((smart_log->critical_warning & NVME_SMART_CRIT_TEMPERATURE) == NVME_SMART_CRIT_TEMPERATURE)", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "307face9942e2fa8b8008cfa831262511a8acbcb", "key_event_idx": 0, "events": [ { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 822, "column": 47, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL '0'", "verbosity_level": 0 }, { "file_name": "/usr/lib64/glib-2.0/include/glibconfig.h", "line": 158, "column": 45, "event": "note", "message": "in definition of macro 'GUINT16_TO_LE'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 822, "column": 23, "event": "note", "message": "in expansion of macro 'GUINT16_FROM_LE'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 750, "column": 18, "event": "note", "message": "(1) entry to 'bd_nvme_get_smart_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 760, "column": 10, "event": "note", "message": "(2) calling '_open_dev' from 'bd_nvme_get_smart_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 392, "column": 6, "event": "note", "message": "(3) entry to '_open_dev'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 396, "column": 8, "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": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 760, "column": 10, "event": "note", "message": "(6) returning to 'bd_nvme_get_smart_log' from '_open_dev'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 761, "column": 8, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 765, "column": 15, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 765, "column": 15, "event": "note", "message": "(9) calling '_nvme_alloc' from 'bd_nvme_get_smart_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 408, "column": 7, "event": "note", "message": "(10) entry to '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(11) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 765, "column": 15, "event": "note", "message": "(13) returning to 'bd_nvme_get_smart_log' from '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1241, "column": 7, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1247, "column": 31, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR_IMPL'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1248, "column": 43, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 562, "column": 8, "event": "note", "message": "in expansion of macro 'G_LIKELY'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 766, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 563, "column": 10, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 766, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 768, "column": 8, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 777, "column": 17, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 777, "column": 17, "event": "note", "message": "(18) calling '_nvme_alloc' from 'bd_nvme_get_smart_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 408, "column": 7, "event": "note", "message": "(19) entry to '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(20) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 416, "column": 5, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 777, "column": 17, "event": "note", "message": "(22) returning to 'bd_nvme_get_smart_log' from '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1241, "column": 7, "event": "note", "message": "(23) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1247, "column": 31, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR_IMPL'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1248, "column": 43, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 562, "column": 8, "event": "note", "message": "in expansion of macro 'G_LIKELY'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 778, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 779, "column": 11, "event": "note", "message": "(24) inlined call to 'nvme_get_log_smart' from 'bd_nvme_get_smart_log'", "verbosity_level": 2 }, { "file_name": "/usr/include/nvme/ioctl.h", "line": 1428, "column": 16, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 0, "event": "scope_hint", "message": "In function 'bd_nvme_get_smart_log'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 780, "column": 8, "event": "note", "message": "(26) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 788, "column": 5, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 806, "column": 28, "event": "note", "message": "(28) calling 'int128_to_guint64' from 'bd_nvme_get_smart_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 369, "column": 16, "event": "note", "message": "(29) entry to 'int128_to_guint64'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 385, "column": 19, "event": "note", "message": "(30) following 'true' branch (when 'i != 16')...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 386, "column": 16, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 806, "column": 28, "event": "note", "message": "(32) returning to 'bd_nvme_get_smart_log' from 'int128_to_guint64'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 807, "column": 31, "event": "note", "message": "(33) calling 'int128_to_guint64' from 'bd_nvme_get_smart_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 369, "column": 16, "event": "note", "message": "(34) entry to 'int128_to_guint64'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 385, "column": 19, "event": "note", "message": "(35) following 'true' branch (when 'i != 16')...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 386, "column": 16, "event": "note", "message": "(36) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 807, "column": 31, "event": "note", "message": "(37) returning to 'bd_nvme_get_smart_log' from 'int128_to_guint64'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 808, "column": 27, "event": "note", "message": "(38) calling 'int128_to_guint64' from 'bd_nvme_get_smart_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 369, "column": 16, "event": "note", "message": "(39) entry to 'int128_to_guint64'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 385, "column": 19, "event": "note", "message": "(40) following 'true' branch (when 'i != 16')...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 386, "column": 16, "event": "note", "message": "(41) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 808, "column": 27, "event": "note", "message": "(42) returning to 'bd_nvme_get_smart_log' from 'int128_to_guint64'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 809, "column": 25, "event": "note", "message": "(43) calling 'int128_to_guint64' from 'bd_nvme_get_smart_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 369, "column": 16, "event": "note", "message": "(44) entry to 'int128_to_guint64'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 385, "column": 19, "event": "note", "message": "(45) following 'true' branch (when 'i != 16')...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 386, "column": 16, "event": "note", "message": "(46) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 809, "column": 25, "event": "note", "message": "(47) returning to 'bd_nvme_get_smart_log' from 'int128_to_guint64'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 810, "column": 27, "event": "note", "message": "(48) calling 'int128_to_guint64' from 'bd_nvme_get_smart_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 369, "column": 16, "event": "note", "message": "(49) entry to 'int128_to_guint64'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 385, "column": 19, "event": "note", "message": "(50) following 'true' branch (when 'i != 16')...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 386, "column": 16, "event": "note", "message": "(51) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 810, "column": 27, "event": "note", "message": "(52) returning to 'bd_nvme_get_smart_log' from 'int128_to_guint64'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 811, "column": 29, "event": "note", "message": "(53) calling 'int128_to_guint64' from 'bd_nvme_get_smart_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 369, "column": 16, "event": "note", "message": "(54) entry to 'int128_to_guint64'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 385, "column": 19, "event": "note", "message": "(55) following 'true' branch (when 'i != 16')...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 386, "column": 16, "event": "note", "message": "(56) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 811, "column": 29, "event": "note", "message": "(57) returning to 'bd_nvme_get_smart_log' from 'int128_to_guint64'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 812, "column": 25, "event": "note", "message": "(58) calling 'int128_to_guint64' from 'bd_nvme_get_smart_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 369, "column": 16, "event": "note", "message": "(59) entry to 'int128_to_guint64'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 385, "column": 19, "event": "note", "message": "(60) following 'true' branch (when 'i != 16')...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 386, "column": 16, "event": "note", "message": "(61) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 812, "column": 25, "event": "note", "message": "(62) returning to 'bd_nvme_get_smart_log' from 'int128_to_guint64'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 813, "column": 32, "event": "note", "message": "(63) calling 'int128_to_guint64' from 'bd_nvme_get_smart_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 369, "column": 16, "event": "note", "message": "(64) entry to 'int128_to_guint64'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 385, "column": 19, "event": "note", "message": "(65) following 'true' branch (when 'i != 16')...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 386, "column": 16, "event": "note", "message": "(66) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 813, "column": 32, "event": "note", "message": "(67) returning to 'bd_nvme_get_smart_log' from 'int128_to_guint64'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 816, "column": 19, "event": "note", "message": "(68) following 'true' branch (when 'i != 8')...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 817, "column": 71, "event": "note", "message": "(69) ...to here", "verbosity_level": 2 }, { "file_name": "/usr/lib64/glib-2.0/include/glibconfig.h", "line": 158, "column": 45, "event": "note", "message": "in definition of macro 'GUINT16_TO_LE'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 817, "column": 32, "event": "note", "message": "in expansion of macro 'GUINT16_FROM_LE'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 822, "column": 47, "event": "note", "message": "(70) dereference of NULL '_nvme_alloc(4096)'", "verbosity_level": 2 }, { "file_name": "/usr/lib64/glib-2.0/include/glibconfig.h", "line": 158, "column": 45, "event": "note", "message": "in definition of macro 'GUINT16_TO_LE'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 822, "column": 23, "event": "note", "message": "in expansion of macro 'GUINT16_FROM_LE'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 820| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 821| if (ret_identify == 0) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 822|-> log->wctemp = GUINT16_FROM_LE (ctrl_id->wctemp);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 823| log->cctemp = GUINT16_FROM_LE (ctrl_id->cctemp);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 824| }", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "89526b5dfa253f8798cd97a4e054786ec4c70232", "key_event_idx": 1, "events": [ { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 0, "event": "scope_hint", "message": "In function 'bd_nvme_get_error_log_entries'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 881, "column": 19, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL '0'", "verbosity_level": 0 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 855, "column": 24, "event": "note", "message": "(1) entry to 'bd_nvme_get_error_log_entries'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 865, "column": 10, "event": "note", "message": "(2) calling '_open_dev' from 'bd_nvme_get_error_log_entries'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 392, "column": 6, "event": "note", "message": "(3) entry to '_open_dev'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 396, "column": 8, "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": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 865, "column": 10, "event": "note", "message": "(6) returning to 'bd_nvme_get_error_log_entries' from '_open_dev'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 866, "column": 8, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 870, "column": 15, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 870, "column": 15, "event": "note", "message": "(9) calling '_nvme_alloc' from 'bd_nvme_get_error_log_entries'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 408, "column": 7, "event": "note", "message": "(10) entry to '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(11) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 870, "column": 15, "event": "note", "message": "(13) returning to 'bd_nvme_get_error_log_entries' from '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1241, "column": 7, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1247, "column": 31, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR_IMPL'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1248, "column": 43, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 562, "column": 8, "event": "note", "message": "in expansion of macro 'G_LIKELY'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 871, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 563, "column": 10, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 871, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 873, "column": 8, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 881, "column": 19, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 881, "column": 19, "event": "note", "message": "(18) dereference of NULL '_nvme_alloc(4096)'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 879| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 880| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 881|-> elpe = ctrl_id->elpe + 1;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 882| free (ctrl_id);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 883| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "8ab24bd4640d4453daad5c3175ed6e4b26862504", "key_event_idx": 0, "events": [ { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 900, "column": 40, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL '0'", "verbosity_level": 0 }, { "file_name": "/usr/lib64/glib-2.0/include/glibconfig.h", "line": 168, "column": 45, "event": "note", "message": "in definition of macro 'GUINT64_TO_LE'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 900, "column": 13, "event": "note", "message": "in expansion of macro 'GUINT64_FROM_LE'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 855, "column": 24, "event": "note", "message": "(1) entry to 'bd_nvme_get_error_log_entries'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 865, "column": 10, "event": "note", "message": "(2) calling '_open_dev' from 'bd_nvme_get_error_log_entries'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 392, "column": 6, "event": "note", "message": "(3) entry to '_open_dev'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 396, "column": 8, "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": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 865, "column": 10, "event": "note", "message": "(6) returning to 'bd_nvme_get_error_log_entries' from '_open_dev'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 866, "column": 8, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 870, "column": 15, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 870, "column": 15, "event": "note", "message": "(9) calling '_nvme_alloc' from 'bd_nvme_get_error_log_entries'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 408, "column": 7, "event": "note", "message": "(10) entry to '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(11) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 416, "column": 5, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 870, "column": 15, "event": "note", "message": "(13) returning to 'bd_nvme_get_error_log_entries' from '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1241, "column": 7, "event": "note", "message": "(14) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1247, "column": 31, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR_IMPL'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1248, "column": 43, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 562, "column": 8, "event": "note", "message": "in expansion of macro 'G_LIKELY'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 871, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 872, "column": 11, "event": "note", "message": "(15) inlined call to 'nvme_identify_ctrl' from 'bd_nvme_get_error_log_entries'", "verbosity_level": 2 }, { "file_name": "/usr/include/nvme/ioctl.h", "line": 614, "column": 16, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 0, "event": "scope_hint", "message": "In function 'bd_nvme_get_error_log_entries'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 873, "column": 8, "event": "note", "message": "(17) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 881, "column": 19, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 885, "column": 15, "event": "note", "message": "(19) calling '_nvme_alloc' from 'bd_nvme_get_error_log_entries'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 408, "column": 7, "event": "note", "message": "(20) entry to '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(21) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 885, "column": 15, "event": "note", "message": "(23) returning to 'bd_nvme_get_error_log_entries' from '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1241, "column": 7, "event": "note", "message": "(24) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1247, "column": 31, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR_IMPL'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1248, "column": 43, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 562, "column": 8, "event": "note", "message": "in expansion of macro 'G_LIKELY'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 886, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 563, "column": 10, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 886, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 888, "column": 8, "event": "note", "message": "(26) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 895, "column": 5, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 899, "column": 19, "event": "note", "message": "(28) following 'true' branch (when 'i < elpe')...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 900, "column": 37, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "/usr/lib64/glib-2.0/include/glibconfig.h", "line": 168, "column": 45, "event": "note", "message": "in definition of macro 'GUINT64_TO_LE'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 900, "column": 13, "event": "note", "message": "in expansion of macro 'GUINT64_FROM_LE'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 900, "column": 37, "event": "note", "message": "(30) '0' is NULL", "verbosity_level": 2 }, { "file_name": "/usr/lib64/glib-2.0/include/glibconfig.h", "line": 168, "column": 45, "event": "note", "message": "in definition of macro 'GUINT64_TO_LE'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 900, "column": 13, "event": "note", "message": "in expansion of macro 'GUINT64_FROM_LE'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 900, "column": 40, "event": "note", "message": "(31) dereference of NULL '_nvme_alloc((long unsigned int)((int)*<unknown>.elpe + 1) * 64) + (long unsigned int)i * 64'", "verbosity_level": 2 }, { "file_name": "/usr/lib64/glib-2.0/include/glibconfig.h", "line": 168, "column": 45, "event": "note", "message": "in definition of macro 'GUINT64_TO_LE'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 900, "column": 13, "event": "note", "message": "in expansion of macro 'GUINT64_FROM_LE'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 898| ptr_array = g_ptr_array_new ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 899| for (i = 0; i < elpe; i++) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 900|-> if (GUINT64_FROM_LE (err_log[i].error_count) > 0) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 901| BDNVMEErrorLogEntry *entry;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 902| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "649a2ebdd99464544b09656abf893a5781da244b", "key_event_idx": 1, "events": [ { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 0, "event": "scope_hint", "message": "In function 'bd_nvme_get_self_test_log'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 964, "column": 26, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL '0'", "verbosity_level": 0 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 937, "column": 21, "event": "note", "message": "(1) entry to 'bd_nvme_get_self_test_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 946, "column": 10, "event": "note", "message": "(2) calling '_open_dev' from 'bd_nvme_get_self_test_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 392, "column": 6, "event": "note", "message": "(3) entry to '_open_dev'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 396, "column": 8, "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": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 946, "column": 10, "event": "note", "message": "(6) returning to 'bd_nvme_get_self_test_log' from '_open_dev'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 947, "column": 8, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 951, "column": 21, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 951, "column": 21, "event": "note", "message": "(9) calling '_nvme_alloc' from 'bd_nvme_get_self_test_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 408, "column": 7, "event": "note", "message": "(10) entry to '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(11) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 951, "column": 21, "event": "note", "message": "(13) returning to 'bd_nvme_get_self_test_log' from '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1241, "column": 7, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1247, "column": 31, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR_IMPL'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1248, "column": 43, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 562, "column": 8, "event": "note", "message": "in expansion of macro 'G_LIKELY'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 952, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 563, "column": 10, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 952, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 953, "column": 11, "event": "note", "message": "(16) calling 'nvme_get_log_device_self_test' from 'bd_nvme_get_self_test_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 953, "column": 11, "event": "note", "message": "(17) returning to 'bd_nvme_get_self_test_log' from 'nvme_get_log_device_self_test'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 954, "column": 8, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 961, "column": 5, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 964, "column": 26, "event": "note", "message": "(20) dereference of NULL '_nvme_alloc(564)'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 962| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 963| log = g_new0 (BDNVMESelfTestLog, 1);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 964|-> switch (self_test_log->current_operation & NVME_ST_CURR_OP_MASK) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 965| case NVME_ST_CURR_OP_NOT_RUNNING:", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 966| log->current_operation = BD_NVME_SELF_TEST_ACTION_NOT_RUNNING;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "e343f536f46f75d30d196d53c47ffa993484400e", "key_event_idx": 1, "events": [ { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 0, "event": "scope_hint", "message": "In function 'bd_nvme_get_sanitize_log'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 1109, "column": 11, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL '0'", "verbosity_level": 0 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 1082, "column": 21, "event": "note", "message": "(1) entry to 'bd_nvme_get_sanitize_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 1090, "column": 10, "event": "note", "message": "(2) calling '_open_dev' from 'bd_nvme_get_sanitize_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 392, "column": 6, "event": "note", "message": "(3) entry to '_open_dev'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 396, "column": 8, "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": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 1090, "column": 10, "event": "note", "message": "(6) returning to 'bd_nvme_get_sanitize_log' from '_open_dev'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 1091, "column": 8, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 1095, "column": 20, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 1095, "column": 20, "event": "note", "message": "(9) calling '_nvme_alloc' from 'bd_nvme_get_sanitize_log'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 408, "column": 7, "event": "note", "message": "(10) entry to '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(11) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 1095, "column": 20, "event": "note", "message": "(13) returning to 'bd_nvme_get_sanitize_log' from '_nvme_alloc'", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1241, "column": 7, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1247, "column": 31, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR_IMPL'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmacros.h", "line": 1248, "column": 43, "event": "note", "message": "in expansion of macro '_G_BOOLEAN_EXPR'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 562, "column": 8, "event": "note", "message": "in expansion of macro 'G_LIKELY'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 1096, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "/usr/include/glib-2.0/glib/gmessages.h", "line": 563, "column": 10, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 1096, "column": 5, "event": "note", "message": "in expansion of macro 'g_warn_if_fail'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 1098, "column": 8, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 1105, "column": 5, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/nvme/nvme-info.c", "line": 1109, "column": 11, "event": "note", "message": "(18) dereference of NULL '_nvme_alloc(512)'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 1107| log = g_new0 (BDNVMESanitizeLog, 1);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1108| log->sanitize_progress = 0;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1109|-> sstat = GUINT16_FROM_LE (sanitize_log->sstat);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1110| if ((sstat & NVME_SANITIZE_SSTAT_STATUS_MASK) == NVME_SANITIZE_SSTAT_STATUS_IN_PROGESS)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1111| log->sanitize_progress = ((gdouble) GUINT16_FROM_LE (sanitize_log->sprog) * 100) / 0x10000;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "364bf65ad013b07422025d3bb524e098b6f6367d", "key_event_idx": 1, "events": [ { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 0, "event": "scope_hint", "message": "In function 'bd_part_delete_part'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1367, "column": 55, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL 'l_error'", "verbosity_level": 0 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1352, "column": 10, "event": "note", "message": "(1) entry to 'bd_part_delete_part'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1359, "column": 13, "event": "note", "message": "(2) 'l_error' is NULL", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1365, "column": 16, "event": "note", "message": "(3) calling 'get_part_num' from 'bd_part_delete_part'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 135, "column": 13, "event": "note", "message": "(4) entry to 'get_part_num'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 139, "column": 8, "event": "note", "message": "(5) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 145, "column": 28, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 152, "column": 8, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 156, "column": 15, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 156, "column": 15, "event": "note", "message": "(9) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1365, "column": 16, "event": "note", "message": "(11) returning to 'bd_part_delete_part' from 'get_part_num'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1366, "column": 8, "event": "note", "message": "(12) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1367, "column": 55, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1367, "column": 55, "event": "note", "message": "(14) 'l_error' is NULL", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1368, "column": 9, "event": "note", "message": "(15) 'l_error' is NULL", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1367, "column": 55, "event": "note", "message": "(16) dereference of NULL 'l_error'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 1365| part_num = get_part_num (part, &l_error);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1366| if (part_num == -1) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1367|-> bd_utils_report_finished (progress_id, l_error->message);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1368| g_propagate_error (error, l_error);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1369| return FALSE;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "364bf65ad013b07422025d3bb524e098b6f6367d", "key_event_idx": 1, "events": [ { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 0, "event": "scope_hint", "message": "In function 'bd_part_resize_part'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1529, "column": 55, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL 'l_error'", "verbosity_level": 0 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1506, "column": 10, "event": "note", "message": "(1) entry to 'bd_part_resize_part'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1521, "column": 13, "event": "note", "message": "(2) 'l_error' is NULL", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1527, "column": 16, "event": "note", "message": "(3) calling 'get_part_num' from 'bd_part_resize_part'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 135, "column": 13, "event": "note", "message": "(4) entry to 'get_part_num'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 139, "column": 8, "event": "note", "message": "(5) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 145, "column": 28, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 152, "column": 8, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 156, "column": 15, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 156, "column": 15, "event": "note", "message": "(9) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1527, "column": 16, "event": "note", "message": "(11) returning to 'bd_part_resize_part' from 'get_part_num'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1528, "column": 8, "event": "note", "message": "(12) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1529, "column": 55, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1529, "column": 55, "event": "note", "message": "(14) 'l_error' is NULL", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1530, "column": 9, "event": "note", "message": "(15) 'l_error' is NULL", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1529, "column": 55, "event": "note", "message": "(16) dereference of NULL 'l_error'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 1527| part_num = get_part_num (part, &l_error);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1528| if (part_num == -1) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1529|-> bd_utils_report_finished (progress_id, l_error->message);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1530| g_propagate_error (error, l_error);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1531| return FALSE;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "364bf65ad013b07422025d3bb524e098b6f6367d", "key_event_idx": 1, "events": [ { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 0, "event": "scope_hint", "message": "In function 'bd_part_set_part_name'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1845, "column": 55, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL 'l_error'", "verbosity_level": 0 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1800, "column": 10, "event": "note", "message": "(1) entry to 'bd_part_set_part_name'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1809, "column": 13, "event": "note", "message": "(2) 'l_error' is NULL", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1815, "column": 11, "event": "note", "message": "(3) calling 'get_device_context' from 'bd_part_set_part_name'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 192, "column": 30, "event": "note", "message": "(4) entry to 'get_device_context'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 196, "column": 8, "event": "note", "message": "(5) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 202, "column": 11, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 203, "column": 8, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 210, "column": 5, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1815, "column": 11, "event": "note", "message": "(9) returning to 'bd_part_set_part_name' from 'get_device_context'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1816, "column": 8, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1821, "column": 10, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1822, "column": 8, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1831, "column": 18, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1832, "column": 8, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1842, "column": 16, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1842, "column": 16, "event": "note", "message": "(16) calling 'get_part_num' from 'bd_part_set_part_name'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 135, "column": 13, "event": "note", "message": "(17) entry to 'get_part_num'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 139, "column": 8, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 145, "column": 28, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 152, "column": 8, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 156, "column": 15, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 156, "column": 15, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1842, "column": 16, "event": "note", "message": "(24) returning to 'bd_part_set_part_name' from 'get_part_num'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1843, "column": 8, "event": "note", "message": "(25) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1844, "column": 9, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1845, "column": 55, "event": "note", "message": "(27) 'l_error' is NULL", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1846, "column": 9, "event": "note", "message": "(28) 'l_error' is NULL", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1845, "column": 55, "event": "note", "message": "(29) dereference of NULL 'l_error'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 1843| if (part_num == -1) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1844| close_context (cxt);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1845|-> bd_utils_report_finished (progress_id, l_error->message);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1846| g_propagate_error (error, l_error);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1847| return FALSE;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "364bf65ad013b07422025d3bb524e098b6f6367d", "key_event_idx": 1, "events": [ { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 0, "event": "scope_hint", "message": "In function 'bd_part_set_part_type'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1926, "column": 55, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL 'l_error'", "verbosity_level": 0 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1913, "column": 10, "event": "note", "message": "(1) entry to 'bd_part_set_part_type'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1918, "column": 13, "event": "note", "message": "(2) 'l_error' is NULL", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1924, "column": 16, "event": "note", "message": "(3) calling 'get_part_num' from 'bd_part_set_part_type'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 135, "column": 13, "event": "note", "message": "(4) entry to 'get_part_num'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 139, "column": 8, "event": "note", "message": "(5) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 145, "column": 28, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 152, "column": 8, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 156, "column": 15, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 156, "column": 15, "event": "note", "message": "(9) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1924, "column": 16, "event": "note", "message": "(11) returning to 'bd_part_set_part_type' from 'get_part_num'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1925, "column": 8, "event": "note", "message": "(12) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1926, "column": 55, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1926, "column": 55, "event": "note", "message": "(14) 'l_error' is NULL", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1927, "column": 9, "event": "note", "message": "(15) 'l_error' is NULL", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1926, "column": 55, "event": "note", "message": "(16) dereference of NULL 'l_error'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 1924| part_num = get_part_num (part, &l_error);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1925| if (part_num == -1) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1926|-> bd_utils_report_finished (progress_id, l_error->message);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1927| g_propagate_error (error, l_error);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1928| return FALSE;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "364bf65ad013b07422025d3bb524e098b6f6367d", "key_event_idx": 1, "events": [ { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 0, "event": "scope_hint", "message": "In function 'bd_part_set_part_id'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1985, "column": 55, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL 'l_error'", "verbosity_level": 0 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1972, "column": 10, "event": "note", "message": "(1) entry to 'bd_part_set_part_id'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1977, "column": 13, "event": "note", "message": "(2) 'l_error' is NULL", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1983, "column": 16, "event": "note", "message": "(3) calling 'get_part_num' from 'bd_part_set_part_id'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 135, "column": 13, "event": "note", "message": "(4) entry to 'get_part_num'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 139, "column": 8, "event": "note", "message": "(5) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 145, "column": 28, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 152, "column": 8, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 156, "column": 15, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 156, "column": 15, "event": "note", "message": "(9) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1983, "column": 16, "event": "note", "message": "(11) returning to 'bd_part_set_part_id' from 'get_part_num'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1984, "column": 8, "event": "note", "message": "(12) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1985, "column": 55, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1985, "column": 55, "event": "note", "message": "(14) 'l_error' is NULL", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1986, "column": 9, "event": "note", "message": "(15) 'l_error' is NULL", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 1985, "column": 55, "event": "note", "message": "(16) dereference of NULL 'l_error'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 1983| part_num = get_part_num (part, &l_error);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1984| if (part_num == -1) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1985|-> bd_utils_report_finished (progress_id, l_error->message);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1986| g_propagate_error (error, l_error);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1987| return FALSE;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "364bf65ad013b07422025d3bb524e098b6f6367d", "key_event_idx": 1, "events": [ { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 0, "event": "scope_hint", "message": "In function 'bd_part_set_part_uuid'", "verbosity_level": 1 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 2076, "column": 55, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL 'l_error'", "verbosity_level": 0 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 2031, "column": 10, "event": "note", "message": "(1) entry to 'bd_part_set_part_uuid'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 2040, "column": 13, "event": "note", "message": "(2) 'l_error' is NULL", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 2046, "column": 11, "event": "note", "message": "(3) calling 'get_device_context' from 'bd_part_set_part_uuid'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 192, "column": 30, "event": "note", "message": "(4) entry to 'get_device_context'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 196, "column": 8, "event": "note", "message": "(5) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 202, "column": 11, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 203, "column": 8, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 210, "column": 5, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 2046, "column": 11, "event": "note", "message": "(9) returning to 'bd_part_set_part_uuid' from 'get_device_context'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 2047, "column": 8, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 2052, "column": 10, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 2053, "column": 8, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 2062, "column": 18, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 2063, "column": 8, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 2073, "column": 16, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 2073, "column": 16, "event": "note", "message": "(16) calling 'get_part_num' from 'bd_part_set_part_uuid'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 135, "column": 13, "event": "note", "message": "(17) entry to 'get_part_num'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 139, "column": 8, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 145, "column": 28, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 152, "column": 8, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 156, "column": 15, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 156, "column": 15, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 2073, "column": 16, "event": "note", "message": "(24) returning to 'bd_part_set_part_uuid' from 'get_part_num'", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 2074, "column": 8, "event": "note", "message": "(25) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 2075, "column": 9, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 2076, "column": 55, "event": "note", "message": "(27) 'l_error' is NULL", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 2077, "column": 9, "event": "note", "message": "(28) 'l_error' is NULL", "verbosity_level": 2 }, { "file_name": "libblockdev-3.2.0-build/libblockdev-3.2.0/src/plugins/part.c", "line": 2076, "column": 55, "event": "note", "message": "(29) dereference of NULL 'l_error'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 2074| if (part_num == -1) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2075| close_context (cxt);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2076|-> bd_utils_report_finished (progress_id, l_error->message);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2077| g_propagate_error (error, l_error);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2078| return FALSE;", "verbosity_level": 1 } ] } ] }