Task #20080 - crun-1.18-1.20241029183318479543.main.11.g056a407/scan-results.js
back to task #20080download
<...trimmed, download required for full log> "line": 150, "column": 49, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 162, "column": 29, "event": "note", "message": "in expansion of macro 'YAJL_IS_STRING'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c", "line": 41, "column": 25, "event": "note", "message": "in expansion of macro 'YAJL_GET_STRING'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c", "line": 43, "column": 16, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c", "line": 50, "column": 24, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c", "line": 103, "column": 12, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c", "line": 120, "column": 24, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c", "line": 147, "column": 8, "event": "note", "message": "(24) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c", "line": 153, "column": 12, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c", "line": 153, "column": 8, "event": "note", "message": "(26) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c", "line": 160, "column": 13, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c", "line": 559, "column": 7, "event": "note", "message": "(28) returning to 'runtime_spec_schema_features_schema_parse_data' from 'make_runtime_spec_schema_features_schema'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 150, "column": 49, "event": "note", "message": "(29) 'make_runtime_spec_schema_features_schema(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' leaks here; was allocated at (10)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 162, "column": 29, "event": "note", "message": "in expansion of macro 'YAJL_IS_STRING'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c", "line": 29, "column": 25, "event": "note", "message": "in expansion of macro 'YAJL_GET_STRING'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 148| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 149| /* Various convenience macros to check the type of a `yajl_val` */", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 150|-> #define YAJL_IS_STRING(v) (((v) != NULL) && ((v)->type == yajl_t_string))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 151| #define YAJL_IS_NUMBER(v) (((v) != NULL) && ((v)->type == yajl_t_number))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 152| #define YAJL_IS_INTEGER(v) (YAJL_IS_NUMBER(v) && ((v)->u.number.flags & YAJL_NUMBER_INT_VALID))", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "ac39a083766f00117f89d7e0d4a38442bafb36ca", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 0, "event": "scope_hint", "message": "In function 'image_spec_schema_image_manifest_schema_parse_file_stream'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 155, "column": 49, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'image_spec_schema_image_manifest_schema_parse_data(fread_file(stream, & filesize), ctx, err)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 180, "column": 29, "event": "note", "message": "in expansion of macro 'YAJL_IS_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 79, "column": 28, "event": "note", "message": "in expansion of macro 'YAJL_GET_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 408, "column": 1, "event": "note", "message": "(1) entry to 'image_spec_schema_image_manifest_schema_parse_file_stream'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 413, "column": 8, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 416, "column": 10, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 418, "column": 8, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 423, "column": 7, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 423, "column": 7, "event": "note", "message": "(6) calling 'image_spec_schema_image_manifest_schema_parse_data' from 'image_spec_schema_image_manifest_schema_parse_file_stream'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 428, "column": 44, "event": "note", "message": "(7) entry to 'image_spec_schema_image_manifest_schema_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 434, "column": 8, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 437, "column": 10, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 442, "column": 8, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 448, "column": 7, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 448, "column": 7, "event": "note", "message": "(12) calling 'make_image_spec_schema_image_manifest_schema' from 'image_spec_schema_image_manifest_schema_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 14, "column": 1, "event": "note", "message": "(13) entry to 'make_image_spec_schema_image_manifest_schema'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 19, "column": 8, "event": "note", "message": "(14) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 21, "column": 11, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 21, "column": 11, "event": "note", "message": "(16) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 22, "column": 8, "event": "note", "message": "(17) assuming 'calloc(1, 80)' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 22, "column": 8, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 26, "column": 24, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 27, "column": 12, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 48, "column": 24, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 49, "column": 12, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 60, "column": 24, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 61, "column": 12, "event": "note", "message": "(24) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 70, "column": 19, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 79, "column": 12, "event": "note", "message": "(26) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 82, "column": 20, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 86, "column": 16, "event": "note", "message": "(28) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 88, "column": 27, "event": "note", "message": "(30) following 'true' branch (when 'i < len')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 90, "column": 38, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 92, "column": 20, "event": "note", "message": "(32) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 88, "column": 35, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 88, "column": 27, "event": "note", "message": "(34) following 'true' branch (when 'i < len')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 90, "column": 38, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 92, "column": 20, "event": "note", "message": "(36) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 88, "column": 35, "event": "note", "message": "(37) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 88, "column": 27, "event": "note", "message": "(38) following 'true' branch (when 'i < len')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 90, "column": 38, "event": "note", "message": "(39) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 92, "column": 20, "event": "note", "message": "(40) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 88, "column": 35, "event": "note", "message": "(41) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 88, "column": 27, "event": "note", "message": "(42) following 'false' branch (when 'i >= len')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 100, "column": 24, "event": "note", "message": "(43) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 101, "column": 12, "event": "note", "message": "(44) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 116, "column": 12, "event": "note", "message": "(45) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 116, "column": 8, "event": "note", "message": "(46) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 122, "column": 12, "event": "note", "message": "(47) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 122, "column": 8, "event": "note", "message": "(48) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 129, "column": 13, "event": "note", "message": "(49) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 448, "column": 7, "event": "note", "message": "(50) returning to 'image_spec_schema_image_manifest_schema_parse_data' from 'make_image_spec_schema_image_manifest_schema'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 430, "column": 95, "event": "note", "message": "(51) inlined call to 'yajl_tree_free_function' from 'image_spec_schema_image_manifest_schema_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h", "line": 41, "column": 8, "event": "note", "message": "(52) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 426, "column": 1, "event": "note", "message": "in expansion of macro 'define_cleaner_function'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 426, "column": 36, "event": "note", "message": "(53) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h", "line": 42, "column": 7, "event": "note", "message": "in definition of macro 'define_cleaner_function'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 0, "event": "scope_hint", "message": "In function 'image_spec_schema_image_manifest_schema_parse_file_stream'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 423, "column": 7, "event": "note", "message": "(54) returning to 'image_spec_schema_image_manifest_schema_parse_file_stream' from 'image_spec_schema_image_manifest_schema_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 155, "column": 49, "event": "note", "message": "(55) 'image_spec_schema_image_manifest_schema_parse_data(fread_file(stream, & filesize), ctx, err)' leaks here; was allocated at (16)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 180, "column": 29, "event": "note", "message": "in expansion of macro 'YAJL_IS_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 79, "column": 28, "event": "note", "message": "in expansion of macro 'YAJL_GET_ARRAY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 153| #define YAJL_IS_DOUBLE(v) (YAJL_IS_NUMBER(v) && ((v)->u.number.flags & YAJL_NUMBER_DOUBLE_VALID))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 154| #define YAJL_IS_OBJECT(v) (((v) != NULL) && ((v)->type == yajl_t_object))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 155|-> #define YAJL_IS_ARRAY(v) (((v) != NULL) && ((v)->type == yajl_t_array ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 156| #define YAJL_IS_TRUE(v) (((v) != NULL) && ((v)->type == yajl_t_true ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 157| #define YAJL_IS_FALSE(v) (((v) != NULL) && ((v)->type == yajl_t_false ))", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "acea448e9fd6c66d83e7a1dd55122c3a3f26071c", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 0, "event": "scope_hint", "message": "In function 'basic_test_double_array_parse_data'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 155, "column": 49, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'make_basic_test_double_array(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 180, "column": 29, "event": "note", "message": "in expansion of macro 'YAJL_IS_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 142, "column": 28, "event": "note", "message": "in expansion of macro 'YAJL_GET_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 794, "column": 28, "event": "note", "message": "(1) entry to 'basic_test_double_array_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 800, "column": 8, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 803, "column": 10, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 808, "column": 8, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 814, "column": 7, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 814, "column": 7, "event": "note", "message": "(6) calling 'make_basic_test_double_array' from 'basic_test_double_array_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 129, "column": 1, "event": "note", "message": "(7) entry to 'make_basic_test_double_array'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 134, "column": 8, "event": "note", "message": "(8) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 136, "column": 11, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 136, "column": 11, "event": "note", "message": "(10) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 137, "column": 8, "event": "note", "message": "(11) assuming 'calloc(1, 128)' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 137, "column": 8, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 141, "column": 24, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 142, "column": 12, "event": "note", "message": "(14) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 145, "column": 20, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 149, "column": 16, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 151, "column": 40, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 152, "column": 16, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 154, "column": 27, "event": "note", "message": "(20) following 'false' branch (when 'i >= len')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 179, "column": 24, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 814, "column": 7, "event": "note", "message": "(22) returning to 'basic_test_double_array_parse_data' from 'make_basic_test_double_array'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 155, "column": 49, "event": "note", "message": "(23) 'make_basic_test_double_array(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' leaks here; was allocated at (10)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 180, "column": 29, "event": "note", "message": "in expansion of macro 'YAJL_IS_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 142, "column": 28, "event": "note", "message": "in expansion of macro 'YAJL_GET_ARRAY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 153| #define YAJL_IS_DOUBLE(v) (YAJL_IS_NUMBER(v) && ((v)->u.number.flags & YAJL_NUMBER_DOUBLE_VALID))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 154| #define YAJL_IS_OBJECT(v) (((v) != NULL) && ((v)->type == yajl_t_object))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 155|-> #define YAJL_IS_ARRAY(v) (((v) != NULL) && ((v)->type == yajl_t_array ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 156| #define YAJL_IS_TRUE(v) (((v) != NULL) && ((v)->type == yajl_t_true ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 157| #define YAJL_IS_FALSE(v) (((v) != NULL) && ((v)->type == yajl_t_false ))", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "5ff2fb91759490f560efbab1a3637085bcb9f1df", "key_event_idx": 4, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h", "line": 9, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.h", "line": 7, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 8, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 0, "event": "scope_hint", "message": "In function 'make_image_spec_schema_config_schema'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 155, "column": 49, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'make_image_spec_schema_config_schema_config(get_val(tree, \"config\", 3), ctx, err)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 180, "column": 29, "event": "note", "message": "in expansion of macro 'YAJL_IS_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 42, "column": 28, "event": "note", "message": "in expansion of macro 'YAJL_GET_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1615, "column": 36, "event": "note", "message": "(1) entry to 'image_spec_schema_config_schema_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1621, "column": 8, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1624, "column": 10, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1629, "column": 8, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1635, "column": 7, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1635, "column": 7, "event": "note", "message": "(6) calling 'make_image_spec_schema_config_schema' from 'image_spec_schema_config_schema_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1051, "column": 1, "event": "note", "message": "(7) entry to 'make_image_spec_schema_config_schema'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1056, "column": 8, "event": "note", "message": "(8) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1058, "column": 11, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1059, "column": 8, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1063, "column": 24, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1064, "column": 12, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1075, "column": 24, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1076, "column": 12, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1087, "column": 24, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1088, "column": 12, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1099, "column": 24, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1100, "column": 12, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1111, "column": 24, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1112, "column": 12, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1123, "column": 24, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1124, "column": 12, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1135, "column": 24, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1159, "column": 19, "event": "note", "message": "(24) calling 'make_image_spec_schema_config_schema_config' from 'make_image_spec_schema_config_schema'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 14, "column": 1, "event": "note", "message": "(25) entry to 'make_image_spec_schema_config_schema_config'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 19, "column": 8, "event": "note", "message": "(26) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 21, "column": 11, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 21, "column": 11, "event": "note", "message": "(28) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 22, "column": 8, "event": "note", "message": "(29) assuming 'calloc(1, 120)' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 22, "column": 8, "event": "note", "message": "(30) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 26, "column": 24, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 27, "column": 12, "event": "note", "message": "(32) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 36, "column": 26, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 42, "column": 12, "event": "note", "message": "(34) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 45, "column": 20, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 49, "column": 16, "event": "note", "message": "(36) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(37) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 123, "column": 12, "event": "note", "message": "(38) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 134, "column": 24, "event": "note", "message": "(39) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 135, "column": 12, "event": "note", "message": "(40) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 152, "column": 24, "event": "note", "message": "(41) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 153, "column": 12, "event": "note", "message": "(42) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 164, "column": 24, "event": "note", "message": "(43) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 165, "column": 12, "event": "note", "message": "(44) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "note", "message": "(45) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 167, "column": 33, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1159, "column": 19, "event": "note", "message": "(46) returning to 'make_image_spec_schema_config_schema' from 'make_image_spec_schema_config_schema_config'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 155, "column": 49, "event": "note", "message": "(47) 'make_image_spec_schema_config_schema_config(get_val(tree, \"config\", 3), ctx, err)' leaks here; was allocated at (28)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 180, "column": 29, "event": "note", "message": "in expansion of macro 'YAJL_IS_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 42, "column": 28, "event": "note", "message": "in expansion of macro 'YAJL_GET_ARRAY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 153| #define YAJL_IS_DOUBLE(v) (YAJL_IS_NUMBER(v) && ((v)->u.number.flags & YAJL_NUMBER_DOUBLE_VALID))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 154| #define YAJL_IS_OBJECT(v) (((v) != NULL) && ((v)->type == yajl_t_object))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 155|-> #define YAJL_IS_ARRAY(v) (((v) != NULL) && ((v)->type == yajl_t_array ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 156| #define YAJL_IS_TRUE(v) (((v) != NULL) && ((v)->type == yajl_t_true ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 157| #define YAJL_IS_FALSE(v) (((v) != NULL) && ((v)->type == yajl_t_false ))", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "1355f1c08c70a1d52252eb17641ca8cfd8d7e1d1", "key_event_idx": 4, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h", "line": 9, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.h", "line": 7, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 8, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 0, "event": "scope_hint", "message": "In function 'image_spec_schema_image_manifest_schema_parse_data'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 155, "column": 49, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'make_image_spec_schema_image_manifest_schema(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 180, "column": 29, "event": "note", "message": "in expansion of macro 'YAJL_IS_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 79, "column": 28, "event": "note", "message": "in expansion of macro 'YAJL_GET_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 428, "column": 44, "event": "note", "message": "(1) entry to 'image_spec_schema_image_manifest_schema_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 434, "column": 8, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 437, "column": 10, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 442, "column": 8, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 448, "column": 7, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 448, "column": 7, "event": "note", "message": "(6) calling 'make_image_spec_schema_image_manifest_schema' from 'image_spec_schema_image_manifest_schema_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 14, "column": 1, "event": "note", "message": "(7) entry to 'make_image_spec_schema_image_manifest_schema'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 19, "column": 8, "event": "note", "message": "(8) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 21, "column": 11, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 21, "column": 11, "event": "note", "message": "(10) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 22, "column": 8, "event": "note", "message": "(11) assuming 'calloc(1, 80)' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 22, "column": 8, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 26, "column": 24, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 27, "column": 12, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 48, "column": 24, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 49, "column": 12, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 60, "column": 24, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 61, "column": 12, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 70, "column": 19, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 79, "column": 12, "event": "note", "message": "(20) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 82, "column": 20, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 86, "column": 16, "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": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 88, "column": 27, "event": "note", "message": "(24) following 'false' branch (when 'i >= len')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 100, "column": 24, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 101, "column": 12, "event": "note", "message": "(26) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 116, "column": 12, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 116, "column": 8, "event": "note", "message": "(28) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 122, "column": 12, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 122, "column": 8, "event": "note", "message": "(30) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 129, "column": 13, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 448, "column": 7, "event": "note", "message": "(32) returning to 'image_spec_schema_image_manifest_schema_parse_data' from 'make_image_spec_schema_image_manifest_schema'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 155, "column": 49, "event": "note", "message": "(33) 'make_image_spec_schema_image_manifest_schema(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' leaks here; was allocated at (10)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 180, "column": 29, "event": "note", "message": "in expansion of macro 'YAJL_IS_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c", "line": 79, "column": 28, "event": "note", "message": "in expansion of macro 'YAJL_GET_ARRAY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 153| #define YAJL_IS_DOUBLE(v) (YAJL_IS_NUMBER(v) && ((v)->u.number.flags & YAJL_NUMBER_DOUBLE_VALID))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 154| #define YAJL_IS_OBJECT(v) (((v) != NULL) && ((v)->type == yajl_t_object))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 155|-> #define YAJL_IS_ARRAY(v) (((v) != NULL) && ((v)->type == yajl_t_array ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 156| #define YAJL_IS_TRUE(v) (((v) != NULL) && ((v)->type == yajl_t_true ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 157| #define YAJL_IS_FALSE(v) (((v) != NULL) && ((v)->type == yajl_t_false ))", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "fe12190584c5ca8655d2221dfb5c5766f7e6559a", "key_event_idx": 3, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h", "line": 9, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.h", "line": 7, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 8, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 155, "column": 49, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'make_runtime_spec_schema_config_linux_resources_block_io(get_val(tree, \"blockIO\", 3), ctx, err)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 180, "column": 29, "event": "note", "message": "in expansion of macro 'YAJL_IS_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 214, "column": 28, "event": "note", "message": "in expansion of macro 'YAJL_GET_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 3310, "column": 1, "event": "note", "message": "(1) entry to 'make_runtime_spec_schema_config_linux'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 3315, "column": 8, "event": "note", "message": "(2) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 3317, "column": 11, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 3318, "column": 8, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 3322, "column": 24, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 3408, "column": 22, "event": "note", "message": "(6) calling 'make_runtime_spec_schema_config_linux_resources' from 'make_runtime_spec_schema_config_linux'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 1964, "column": 1, "event": "note", "message": "(7) entry to 'make_runtime_spec_schema_config_linux_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 1969, "column": 8, "event": "note", "message": "(8) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 1971, "column": 11, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 1972, "column": 8, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 1976, "column": 24, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 1977, "column": 12, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 1994, "column": 24, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 2015, "column": 8, "event": "note", "message": "(14) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 2015, "column": 30, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 2015, "column": 27, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 2017, "column": 21, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 2017, "column": 21, "event": "note", "message": "(18) calling 'make_runtime_spec_schema_config_linux_resources_block_io' from 'make_runtime_spec_schema_config_linux_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 157, "column": 1, "event": "note", "message": "(19) entry to 'make_runtime_spec_schema_config_linux_resources_block_io'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 162, "column": 8, "event": "note", "message": "(20) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 164, "column": 11, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 164, "column": 11, "event": "note", "message": "(22) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 165, "column": 8, "event": "note", "message": "(23) assuming 'calloc(1, 104)' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 165, "column": 8, "event": "note", "message": "(24) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 169, "column": 24, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 170, "column": 12, "event": "note", "message": "(26) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 191, "column": 24, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 192, "column": 12, "event": "note", "message": "(28) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 213, "column": 24, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 214, "column": 12, "event": "note", "message": "(30) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 217, "column": 20, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 221, "column": 16, "event": "note", "message": "(32) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 223, "column": 27, "event": "note", "message": "(34) following 'false' branch (when 'i >= len')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 235, "column": 24, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 2017, "column": 21, "event": "note", "message": "(36) returning to 'make_runtime_spec_schema_config_linux_resources' from 'make_runtime_spec_schema_config_linux_resources_block_io'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 155, "column": 49, "event": "note", "message": "(37) 'make_runtime_spec_schema_config_linux_resources_block_io(get_val(tree, \"blockIO\", 3), ctx, err)' leaks here; was allocated at (22)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 180, "column": 29, "event": "note", "message": "in expansion of macro 'YAJL_IS_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c", "line": 214, "column": 28, "event": "note", "message": "in expansion of macro 'YAJL_GET_ARRAY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 153| #define YAJL_IS_DOUBLE(v) (YAJL_IS_NUMBER(v) && ((v)->u.number.flags & YAJL_NUMBER_DOUBLE_VALID))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 154| #define YAJL_IS_OBJECT(v) (((v) != NULL) && ((v)->type == yajl_t_object))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 155|-> #define YAJL_IS_ARRAY(v) (((v) != NULL) && ((v)->type == yajl_t_array ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 156| #define YAJL_IS_TRUE(v) (((v) != NULL) && ((v)->type == yajl_t_true ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 157| #define YAJL_IS_FALSE(v) (((v) != NULL) && ((v)->type == yajl_t_false ))", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "9aedb4cf00aecda3e612623e31998ec1c314d299", "key_event_idx": 4, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h", "line": 9, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.h", "line": 7, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 8, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 0, "event": "scope_hint", "message": "In function 'make_runtime_spec_schema_config_schema'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 155, "column": 49, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'make_runtime_spec_schema_config_schema_hooks(get_val(tree, \"hooks\", 3), ctx, err)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 180, "column": 29, "event": "note", "message": "in expansion of macro 'YAJL_IS_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 27, "column": 28, "event": "note", "message": "in expansion of macro 'YAJL_GET_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3776, "column": 38, "event": "note", "message": "(1) entry to 'runtime_spec_schema_config_schema_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3782, "column": 8, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3785, "column": 10, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3790, "column": 8, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3796, "column": 7, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3796, "column": 7, "event": "note", "message": "(6) calling 'make_runtime_spec_schema_config_schema' from 'runtime_spec_schema_config_schema_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3228, "column": 1, "event": "note", "message": "(7) entry to 'make_runtime_spec_schema_config_schema'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3233, "column": 8, "event": "note", "message": "(8) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3235, "column": 11, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3236, "column": 8, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3240, "column": 24, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3241, "column": 12, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3250, "column": 18, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3250, "column": 18, "event": "note", "message": "(14) calling 'make_runtime_spec_schema_config_schema_hooks' from 'make_runtime_spec_schema_config_schema'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 14, "column": 1, "event": "note", "message": "(15) entry to 'make_runtime_spec_schema_config_schema_hooks'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 19, "column": 8, "event": "note", "message": "(16) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 21, "column": 11, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 21, "column": 11, "event": "note", "message": "(18) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 22, "column": 8, "event": "note", "message": "(19) assuming 'calloc(1, 104)' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 22, "column": 8, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 26, "column": 24, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 27, "column": 12, "event": "note", "message": "(22) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 30, "column": 20, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 34, "column": 16, "event": "note", "message": "(24) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 36, "column": 27, "event": "note", "message": "(26) following 'false' branch (when 'i >= len')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 48, "column": 24, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3250, "column": 18, "event": "note", "message": "(28) returning to 'make_runtime_spec_schema_config_schema' from 'make_runtime_spec_schema_config_schema_hooks'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 155, "column": 49, "event": "note", "message": "(29) 'make_runtime_spec_schema_config_schema_hooks(get_val(tree, \"hooks\", 3), ctx, err)' leaks here; was allocated at (18)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 180, "column": 29, "event": "note", "message": "in expansion of macro 'YAJL_IS_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 27, "column": 28, "event": "note", "message": "in expansion of macro 'YAJL_GET_ARRAY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 153| #define YAJL_IS_DOUBLE(v) (YAJL_IS_NUMBER(v) && ((v)->u.number.flags & YAJL_NUMBER_DOUBLE_VALID))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 154| #define YAJL_IS_OBJECT(v) (((v) != NULL) && ((v)->type == yajl_t_object))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 155|-> #define YAJL_IS_ARRAY(v) (((v) != NULL) && ((v)->type == yajl_t_array ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 156| #define YAJL_IS_TRUE(v) (((v) != NULL) && ((v)->type == yajl_t_true ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 157| #define YAJL_IS_FALSE(v) (((v) != NULL) && ((v)->type == yajl_t_false ))", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "78a9c92f3c29f0b0a1f3c317fa1fb13bdb04d6ce", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 155, "column": 49, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'make_runtime_spec_schema_config_schema_process_capabilities(get_val(tree, \"capabilities\", 3), ctx, err)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 180, "column": 29, "event": "note", "message": "in expansion of macro 'YAJL_IS_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 1263, "column": 28, "event": "note", "message": "in expansion of macro 'YAJL_GET_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3776, "column": 38, "event": "note", "message": "(1) entry to 'runtime_spec_schema_config_schema_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3782, "column": 8, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3785, "column": 10, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3790, "column": 8, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3796, "column": 7, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3796, "column": 7, "event": "note", "message": "(6) calling 'make_runtime_spec_schema_config_schema' from 'runtime_spec_schema_config_schema_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3228, "column": 1, "event": "note", "message": "(7) entry to 'make_runtime_spec_schema_config_schema'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3233, "column": 8, "event": "note", "message": "(8) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3235, "column": 11, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3236, "column": 8, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3240, "column": 24, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3241, "column": 12, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3250, "column": 18, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3251, "column": 8, "event": "note", "message": "(14) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3251, "column": 31, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3251, "column": 28, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3255, "column": 24, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3256, "column": 12, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3273, "column": 24, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3274, "column": 12, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3285, "column": 24, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3286, "column": 12, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3297, "column": 24, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3318, "column": 8, "event": "note", "message": "(24) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3318, "column": 30, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3318, "column": 27, "event": "note", "message": "(26) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3320, "column": 20, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3320, "column": 20, "event": "note", "message": "(28) calling 'make_runtime_spec_schema_config_schema_process' from 'make_runtime_spec_schema_config_schema'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2519, "column": 1, "event": "note", "message": "(29) entry to 'make_runtime_spec_schema_config_schema_process'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2524, "column": 8, "event": "note", "message": "(30) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2526, "column": 11, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2527, "column": 8, "event": "note", "message": "(32) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2531, "column": 24, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2558, "column": 12, "event": "note", "message": "(34) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2567, "column": 25, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2568, "column": 8, "event": "note", "message": "(36) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2568, "column": 38, "event": "note", "message": "(37) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2568, "column": 35, "event": "note", "message": "(38) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2572, "column": 24, "event": "note", "message": "(39) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2573, "column": 12, "event": "note", "message": "(40) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2584, "column": 24, "event": "note", "message": "(41) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2611, "column": 12, "event": "note", "message": "(42) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "note", "message": "(43) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2613, "column": 29, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2628, "column": 8, "event": "note", "message": "(44) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2628, "column": 30, "event": "note", "message": "(45) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2628, "column": 27, "event": "note", "message": "(46) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2630, "column": 25, "event": "note", "message": "(47) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2630, "column": 25, "event": "note", "message": "(48) calling 'make_runtime_spec_schema_config_schema_process_capabilities' from 'make_runtime_spec_schema_config_schema_process'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 1250, "column": 1, "event": "note", "message": "(49) entry to 'make_runtime_spec_schema_config_schema_process_capabilities'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 1255, "column": 8, "event": "note", "message": "(50) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 1257, "column": 11, "event": "note", "message": "(51) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 1257, "column": 11, "event": "note", "message": "(52) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 1258, "column": 8, "event": "note", "message": "(53) assuming 'calloc(1, 88)' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 1258, "column": 8, "event": "note", "message": "(54) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 1262, "column": 24, "event": "note", "message": "(55) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 1263, "column": 12, "event": "note", "message": "(56) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 1266, "column": 20, "event": "note", "message": "(57) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 1270, "column": 16, "event": "note", "message": "(58) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(59) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2630, "column": 25, "event": "note", "message": "(60) returning to 'make_runtime_spec_schema_config_schema_process' from 'make_runtime_spec_schema_config_schema_process_capabilities'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 155, "column": 49, "event": "note", "message": "(61) 'make_runtime_spec_schema_config_schema_process_capabilities(get_val(tree, \"capabilities\", 3), ctx, err)' leaks here; was allocated at (52)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 180, "column": 29, "event": "note", "message": "in expansion of macro 'YAJL_IS_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 1263, "column": 28, "event": "note", "message": "in expansion of macro 'YAJL_GET_ARRAY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 153| #define YAJL_IS_DOUBLE(v) (YAJL_IS_NUMBER(v) && ((v)->u.number.flags & YAJL_NUMBER_DOUBLE_VALID))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 154| #define YAJL_IS_OBJECT(v) (((v) != NULL) && ((v)->type == yajl_t_object))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 155|-> #define YAJL_IS_ARRAY(v) (((v) != NULL) && ((v)->type == yajl_t_array ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 156| #define YAJL_IS_TRUE(v) (((v) != NULL) && ((v)->type == yajl_t_true ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 157| #define YAJL_IS_FALSE(v) (((v) != NULL) && ((v)->type == yajl_t_false ))", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "4da36eb801c810deddd7b595482703e0f74f409a", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 155, "column": 49, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'make_runtime_spec_schema_config_schema_process_user(get_val(tree, \"user\", 3), ctx, err)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 180, "column": 29, "event": "note", "message": "in expansion of macro 'YAJL_IS_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 1003, "column": 28, "event": "note", "message": "in expansion of macro 'YAJL_GET_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3776, "column": 38, "event": "note", "message": "(1) entry to 'runtime_spec_schema_config_schema_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3782, "column": 8, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3785, "column": 10, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3790, "column": 8, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3796, "column": 7, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3796, "column": 7, "event": "note", "message": "(6) calling 'make_runtime_spec_schema_config_schema' from 'runtime_spec_schema_config_schema_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3228, "column": 1, "event": "note", "message": "(7) entry to 'make_runtime_spec_schema_config_schema'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3233, "column": 8, "event": "note", "message": "(8) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3235, "column": 11, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3236, "column": 8, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3240, "column": 24, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3241, "column": 12, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3250, "column": 18, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3251, "column": 8, "event": "note", "message": "(14) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3251, "column": 31, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3251, "column": 28, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3255, "column": 24, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3256, "column": 12, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3273, "column": 24, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3274, "column": 12, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3285, "column": 24, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3286, "column": 12, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3297, "column": 24, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3318, "column": 8, "event": "note", "message": "(24) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3318, "column": 30, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3318, "column": 27, "event": "note", "message": "(26) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3320, "column": 20, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 3320, "column": 20, "event": "note", "message": "(28) calling 'make_runtime_spec_schema_config_schema_process' from 'make_runtime_spec_schema_config_schema'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2519, "column": 1, "event": "note", "message": "(29) entry to 'make_runtime_spec_schema_config_schema_process'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2524, "column": 8, "event": "note", "message": "(30) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2526, "column": 11, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2527, "column": 8, "event": "note", "message": "(32) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2531, "column": 24, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2558, "column": 12, "event": "note", "message": "(34) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2567, "column": 25, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2568, "column": 8, "event": "note", "message": "(36) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2568, "column": 38, "event": "note", "message": "(37) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2568, "column": 35, "event": "note", "message": "(38) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2572, "column": 24, "event": "note", "message": "(39) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2573, "column": 12, "event": "note", "message": "(40) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2584, "column": 24, "event": "note", "message": "(41) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2611, "column": 12, "event": "note", "message": "(42) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "note", "message": "(43) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2613, "column": 29, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2627, "column": 17, "event": "note", "message": "(44) calling 'make_runtime_spec_schema_config_schema_process_user' from 'make_runtime_spec_schema_config_schema_process'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 924, "column": 1, "event": "note", "message": "(45) entry to 'make_runtime_spec_schema_config_schema_process_user'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 929, "column": 8, "event": "note", "message": "(46) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 931, "column": 11, "event": "note", "message": "(47) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 931, "column": 11, "event": "note", "message": "(48) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 932, "column": 8, "event": "note", "message": "(49) assuming 'calloc(1, 56)' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 932, "column": 8, "event": "note", "message": "(50) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 936, "column": 24, "event": "note", "message": "(51) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 937, "column": 12, "event": "note", "message": "(52) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 958, "column": 24, "event": "note", "message": "(53) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 959, "column": 12, "event": "note", "message": "(54) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 980, "column": 24, "event": "note", "message": "(55) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 981, "column": 12, "event": "note", "message": "(56) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 1002, "column": 24, "event": "note", "message": "(57) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 1003, "column": 12, "event": "note", "message": "(58) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 1006, "column": 20, "event": "note", "message": "(59) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 1010, "column": 16, "event": "note", "message": "(60) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(61) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 1038, "column": 12, "event": "note", "message": "(62) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 1048, "column": 13, "event": "note", "message": "(63) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 2627, "column": 17, "event": "note", "message": "(64) returning to 'make_runtime_spec_schema_config_schema_process' from 'make_runtime_spec_schema_config_schema_process_user'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 155, "column": 49, "event": "note", "message": "(65) 'make_runtime_spec_schema_config_schema_process_user(get_val(tree, \"user\", 3), ctx, err)' leaks here; was allocated at (48)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 180, "column": 29, "event": "note", "message": "in expansion of macro 'YAJL_IS_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c", "line": 1003, "column": 28, "event": "note", "message": "in expansion of macro 'YAJL_GET_ARRAY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 153| #define YAJL_IS_DOUBLE(v) (YAJL_IS_NUMBER(v) && ((v)->u.number.flags & YAJL_NUMBER_DOUBLE_VALID))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 154| #define YAJL_IS_OBJECT(v) (((v) != NULL) && ((v)->type == yajl_t_object))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 155|-> #define YAJL_IS_ARRAY(v) (((v) != NULL) && ((v)->type == yajl_t_array ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 156| #define YAJL_IS_TRUE(v) (((v) != NULL) && ((v)->type == yajl_t_true ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 157| #define YAJL_IS_FALSE(v) (((v) != NULL) && ((v)->type == yajl_t_false ))", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "ff9b8570e8866e1d44acd89db80bdf58b31b70c8", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 0, "event": "scope_hint", "message": "In function 'basic_test_double_array_item_parse_file_stream'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'basic_test_double_array_item_parse_data(fread_file(stream, & filesize), ctx, err)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 63, "column": 26, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 243, "column": 1, "event": "note", "message": "(1) entry to 'basic_test_double_array_item_parse_file_stream'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 248, "column": 8, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 251, "column": 10, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 253, "column": 8, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 258, "column": 7, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 258, "column": 7, "event": "note", "message": "(6) calling 'basic_test_double_array_item_parse_data' from 'basic_test_double_array_item_parse_file_stream'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 263, "column": 33, "event": "note", "message": "(7) entry to 'basic_test_double_array_item_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 269, "column": 8, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 272, "column": 10, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 277, "column": 8, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 283, "column": 7, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 283, "column": 7, "event": "note", "message": "(12) calling 'make_basic_test_double_array_item' from 'basic_test_double_array_item_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 14, "column": 1, "event": "note", "message": "(13) entry to 'make_basic_test_double_array_item'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 19, "column": 8, "event": "note", "message": "(14) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 21, "column": 11, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 21, "column": 11, "event": "note", "message": "(16) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 22, "column": 8, "event": "note", "message": "(17) assuming 'calloc(1, 32)' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 22, "column": 8, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 26, "column": 24, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 27, "column": 12, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 38, "column": 24, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 39, "column": 12, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 60, "column": 24, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 61, "column": 12, "event": "note", "message": "(24) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 63, "column": 26, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 283, "column": 7, "event": "note", "message": "(26) returning to 'basic_test_double_array_item_parse_data' from 'make_basic_test_double_array_item'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 265, "column": 84, "event": "note", "message": "(27) inlined call to 'yajl_tree_free_function' from 'basic_test_double_array_item_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h", "line": 41, "column": 8, "event": "note", "message": "(28) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 261, "column": 1, "event": "note", "message": "in expansion of macro 'define_cleaner_function'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 261, "column": 36, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h", "line": 42, "column": 7, "event": "note", "message": "in definition of macro 'define_cleaner_function'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 0, "event": "scope_hint", "message": "In function 'basic_test_double_array_item_parse_file_stream'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 258, "column": 7, "event": "note", "message": "(30) returning to 'basic_test_double_array_item_parse_file_stream' from 'basic_test_double_array_item_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "note", "message": "(31) 'basic_test_double_array_item_parse_data(fread_file(stream, & filesize), ctx, err)' leaks here; was allocated at (16)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 63, "column": 26, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 154| #define YAJL_IS_OBJECT(v) (((v) != NULL) && ((v)->type == yajl_t_object))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 155| #define YAJL_IS_ARRAY(v) (((v) != NULL) && ((v)->type == yajl_t_array ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 156|-> #define YAJL_IS_TRUE(v) (((v) != NULL) && ((v)->type == yajl_t_true ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 157| #define YAJL_IS_FALSE(v) (((v) != NULL) && ((v)->type == yajl_t_false ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 158| #define YAJL_IS_NULL(v) (((v) != NULL) && ((v)->type == yajl_t_null ))", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "c11ebd7f221f43824c590c2f71e2a01bf5f96f5a", "key_event_idx": 4, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h", "line": 9, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.h", "line": 7, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 8, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 0, "event": "scope_hint", "message": "In function 'basic_test_double_array_item_parse_data'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'make_basic_test_double_array_item(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 63, "column": 26, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 263, "column": 33, "event": "note", "message": "(1) entry to 'basic_test_double_array_item_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 269, "column": 8, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 272, "column": 10, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 277, "column": 8, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 283, "column": 7, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 283, "column": 7, "event": "note", "message": "(6) calling 'make_basic_test_double_array_item' from 'basic_test_double_array_item_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 14, "column": 1, "event": "note", "message": "(7) entry to 'make_basic_test_double_array_item'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 19, "column": 8, "event": "note", "message": "(8) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 21, "column": 11, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 21, "column": 11, "event": "note", "message": "(10) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 22, "column": 8, "event": "note", "message": "(11) assuming 'calloc(1, 32)' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 22, "column": 8, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 26, "column": 24, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 27, "column": 12, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 38, "column": 24, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 39, "column": 12, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 60, "column": 24, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 61, "column": 12, "event": "note", "message": "(18) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 63, "column": 26, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 283, "column": 7, "event": "note", "message": "(20) returning to 'basic_test_double_array_item_parse_data' from 'make_basic_test_double_array_item'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "note", "message": "(21) 'make_basic_test_double_array_item(yajl_tree_parse(jsondata, & errbuf, 1024), ctx, err)' leaks here; was allocated at (10)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c", "line": 63, "column": 26, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 154| #define YAJL_IS_OBJECT(v) (((v) != NULL) && ((v)->type == yajl_t_object))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 155| #define YAJL_IS_ARRAY(v) (((v) != NULL) && ((v)->type == yajl_t_array ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 156|-> #define YAJL_IS_TRUE(v) (((v) != NULL) && ((v)->type == yajl_t_true ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 157| #define YAJL_IS_FALSE(v) (((v) != NULL) && ((v)->type == yajl_t_false ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 158| #define YAJL_IS_NULL(v) (((v) != NULL) && ((v)->type == yajl_t_null ))", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "7478ea0df96eb93ac963db4287d84c29b896c75a", "key_event_idx": 4, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h", "line": 9, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.h", "line": 7, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 8, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 0, "event": "scope_hint", "message": "In function 'make_basic_test_double_array'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'make_basic_test_double_array_objectarrays_element(*<unknown>, ctx, err)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 29, "column": 26, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 794, "column": 28, "event": "note", "message": "(1) entry to 'basic_test_double_array_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 800, "column": 8, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 803, "column": 10, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 808, "column": 8, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 814, "column": 7, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 814, "column": 7, "event": "note", "message": "(6) calling 'make_basic_test_double_array' from 'basic_test_double_array_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 129, "column": 1, "event": "note", "message": "(7) entry to 'make_basic_test_double_array'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 134, "column": 8, "event": "note", "message": "(8) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 136, "column": 11, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 137, "column": 8, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 141, "column": 24, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 262, "column": 12, "event": "note", "message": "(12) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 265, "column": 20, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 269, "column": 16, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 271, "column": 43, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 272, "column": 16, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 274, "column": 27, "event": "note", "message": "(18) following 'true' branch (when 'i < len')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 276, "column": 38, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 279, "column": 20, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 281, "column": 27, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 282, "column": 31, "event": "note", "message": "(22) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 284, "column": 103, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 284, "column": 47, "event": "note", "message": "(24) calling 'make_basic_test_double_array_objectarrays_element' from 'make_basic_test_double_array'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 14, "column": 1, "event": "note", "message": "(25) entry to 'make_basic_test_double_array_objectarrays_element'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 19, "column": 8, "event": "note", "message": "(26) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 21, "column": 11, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 21, "column": 11, "event": "note", "message": "(28) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 22, "column": 8, "event": "note", "message": "(29) assuming 'calloc(1, 24)' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 22, "column": 8, "event": "note", "message": "(30) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 26, "column": 24, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 27, "column": 12, "event": "note", "message": "(32) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 29, "column": 26, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 46, "column": 12, "event": "note", "message": "(34) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 284, "column": 47, "event": "note", "message": "(36) returning to 'make_basic_test_double_array' from 'make_basic_test_double_array_objectarrays_element'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "note", "message": "(37) 'make_basic_test_double_array_objectarrays_element(*<unknown>, ctx, err)' leaks here; was allocated at (28)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c", "line": 29, "column": 26, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 154| #define YAJL_IS_OBJECT(v) (((v) != NULL) && ((v)->type == yajl_t_object))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 155| #define YAJL_IS_ARRAY(v) (((v) != NULL) && ((v)->type == yajl_t_array ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 156|-> #define YAJL_IS_TRUE(v) (((v) != NULL) && ((v)->type == yajl_t_true ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 157| #define YAJL_IS_FALSE(v) (((v) != NULL) && ((v)->type == yajl_t_false ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 158| #define YAJL_IS_NULL(v) (((v) != NULL) && ((v)->type == yajl_t_null ))", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "344761e2aebbe184b61d504f05cfb0a8015437f0", "key_event_idx": 4, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h", "line": 9, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.h", "line": 7, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 8, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 0, "event": "scope_hint", "message": "In function 'make_basic_test_top_double_array_obj_container'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'make_basic_test_top_double_array_obj_element(*<unknown>, ctx, err)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 29, "column": 26, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 319, "column": 46, "event": "note", "message": "(1) entry to 'basic_test_top_double_array_obj_container_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 325, "column": 8, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 328, "column": 10, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 333, "column": 8, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 339, "column": 7, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 339, "column": 7, "event": "note", "message": "(6) calling 'make_basic_test_top_double_array_obj_container' from 'basic_test_top_double_array_obj_container_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 166, "column": 2, "event": "note", "message": "(7) entry to 'make_basic_test_top_double_array_obj_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 171, "column": 9, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 173, "column": 10, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 175, "column": 8, "event": "note", "message": "(10) following 'false' branch (when 'alen != 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 177, "column": 11, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 178, "column": 8, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 180, "column": 18, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 181, "column": 8, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 183, "column": 14, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 185, "column": 8, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 188, "column": 19, "event": "note", "message": "(18) following 'true' branch (when 'i < alen')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 190, "column": 55, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 193, "column": 12, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 195, "column": 19, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 196, "column": 23, "event": "note", "message": "(22) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 198, "column": 84, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 198, "column": 34, "event": "note", "message": "(24) calling 'make_basic_test_top_double_array_obj_element' from 'make_basic_test_top_double_array_obj_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 14, "column": 1, "event": "note", "message": "(25) entry to 'make_basic_test_top_double_array_obj_element'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 19, "column": 8, "event": "note", "message": "(26) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 21, "column": 11, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 21, "column": 11, "event": "note", "message": "(28) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 22, "column": 8, "event": "note", "message": "(29) assuming 'calloc(1, 24)' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 22, "column": 8, "event": "note", "message": "(30) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 26, "column": 24, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 27, "column": 12, "event": "note", "message": "(32) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 29, "column": 26, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 46, "column": 12, "event": "note", "message": "(34) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 67, "column": 24, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 68, "column": 12, "event": "note", "message": "(36) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(37) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 198, "column": 34, "event": "note", "message": "(38) returning to 'make_basic_test_top_double_array_obj_container' from 'make_basic_test_top_double_array_obj_element'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "note", "message": "(39) 'make_basic_test_top_double_array_obj_element(*<unknown>, ctx, err)' leaks here; was allocated at (28)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c", "line": 29, "column": 26, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 154| #define YAJL_IS_OBJECT(v) (((v) != NULL) && ((v)->type == yajl_t_object))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 155| #define YAJL_IS_ARRAY(v) (((v) != NULL) && ((v)->type == yajl_t_array ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 156|-> #define YAJL_IS_TRUE(v) (((v) != NULL) && ((v)->type == yajl_t_true ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 157| #define YAJL_IS_FALSE(v) (((v) != NULL) && ((v)->type == yajl_t_false ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 158| #define YAJL_IS_NULL(v) (((v) != NULL) && ((v)->type == yajl_t_null ))", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "a521afe010c845f2cef3e8d2822c10b10c8bfb7f", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'make_image_spec_schema_config_schema_config(get_val(tree, \"config\", 3), ctx, err)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 167, "column": 33, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1615, "column": 36, "event": "note", "message": "(1) entry to 'image_spec_schema_config_schema_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1621, "column": 8, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1624, "column": 10, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1629, "column": 8, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1635, "column": 7, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1635, "column": 7, "event": "note", "message": "(6) calling 'make_image_spec_schema_config_schema' from 'image_spec_schema_config_schema_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1051, "column": 1, "event": "note", "message": "(7) entry to 'make_image_spec_schema_config_schema'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1056, "column": 8, "event": "note", "message": "(8) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1058, "column": 11, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1059, "column": 8, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1063, "column": 24, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1064, "column": 12, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1075, "column": 24, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1076, "column": 12, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1087, "column": 24, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1088, "column": 12, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1099, "column": 24, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1100, "column": 12, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1111, "column": 24, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1112, "column": 12, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1123, "column": 24, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1124, "column": 12, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1135, "column": 24, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1159, "column": 19, "event": "note", "message": "(24) calling 'make_image_spec_schema_config_schema_config' from 'make_image_spec_schema_config_schema'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 14, "column": 1, "event": "note", "message": "(25) entry to 'make_image_spec_schema_config_schema_config'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 19, "column": 8, "event": "note", "message": "(26) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 21, "column": 11, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 21, "column": 11, "event": "note", "message": "(28) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 22, "column": 8, "event": "note", "message": "(29) assuming 'calloc(1, 120)' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 22, "column": 8, "event": "note", "message": "(30) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 26, "column": 24, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 27, "column": 12, "event": "note", "message": "(32) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 36, "column": 26, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 123, "column": 12, "event": "note", "message": "(34) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 134, "column": 24, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 135, "column": 12, "event": "note", "message": "(36) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 152, "column": 24, "event": "note", "message": "(37) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 153, "column": 12, "event": "note", "message": "(38) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 164, "column": 24, "event": "note", "message": "(39) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 165, "column": 12, "event": "note", "message": "(40) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "note", "message": "(41) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 167, "column": 33, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1159, "column": 19, "event": "note", "message": "(42) returning to 'make_image_spec_schema_config_schema' from 'make_image_spec_schema_config_schema_config'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "note", "message": "(43) 'make_image_spec_schema_config_schema_config(get_val(tree, \"config\", 3), ctx, err)' leaks here; was allocated at (28)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 167, "column": 33, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 154| #define YAJL_IS_OBJECT(v) (((v) != NULL) && ((v)->type == yajl_t_object))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 155| #define YAJL_IS_ARRAY(v) (((v) != NULL) && ((v)->type == yajl_t_array ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 156|-> #define YAJL_IS_TRUE(v) (((v) != NULL) && ((v)->type == yajl_t_true ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 157| #define YAJL_IS_FALSE(v) (((v) != NULL) && ((v)->type == yajl_t_false ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 158| #define YAJL_IS_NULL(v) (((v) != NULL) && ((v)->type == yajl_t_null ))", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "4a0f6fe7ed58f958eb47262c14d6801077e7152c", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'make_image_spec_schema_config_schema_history_element(val, ctx, err)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 903, "column": 32, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1615, "column": 36, "event": "note", "message": "(1) entry to 'image_spec_schema_config_schema_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1621, "column": 8, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1624, "column": 10, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1629, "column": 8, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1635, "column": 7, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1635, "column": 7, "event": "note", "message": "(6) calling 'make_image_spec_schema_config_schema' from 'image_spec_schema_config_schema_parse_data'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1051, "column": 1, "event": "note", "message": "(7) entry to 'make_image_spec_schema_config_schema'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1056, "column": 8, "event": "note", "message": "(8) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1058, "column": 11, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1059, "column": 8, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1063, "column": 24, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1064, "column": 12, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1075, "column": 24, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1076, "column": 12, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1087, "column": 24, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1088, "column": 12, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1099, "column": 24, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1100, "column": 12, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1111, "column": 24, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1112, "column": 12, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1123, "column": 24, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1124, "column": 12, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1135, "column": 24, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1160, "column": 8, "event": "note", "message": "(24) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1160, "column": 32, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1160, "column": 29, "event": "note", "message": "(26) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1162, "column": 19, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1163, "column": 8, "event": "note", "message": "(28) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1163, "column": 32, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1163, "column": 29, "event": "note", "message": "(30) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1167, "column": 24, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1168, "column": 12, "event": "note", "message": "(32) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1171, "column": 20, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1175, "column": 16, "event": "note", "message": "(34) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1177, "column": 27, "event": "note", "message": "(36) following 'true' branch (when 'i < len')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1179, "column": 38, "event": "note", "message": "(37) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1180, "column": 35, "event": "note", "message": "(38) calling 'make_image_spec_schema_config_schema_history_element' from 'make_image_spec_schema_config_schema'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 840, "column": 1, "event": "note", "message": "(39) entry to 'make_image_spec_schema_config_schema_history_element'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 845, "column": 8, "event": "note", "message": "(40) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 847, "column": 11, "event": "note", "message": "(41) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 847, "column": 11, "event": "note", "message": "(42) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 848, "column": 8, "event": "note", "message": "(43) assuming 'calloc(1, 40)' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 848, "column": 8, "event": "note", "message": "(44) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 852, "column": 24, "event": "note", "message": "(45) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 853, "column": 12, "event": "note", "message": "(46) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 864, "column": 24, "event": "note", "message": "(47) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 865, "column": 12, "event": "note", "message": "(48) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 876, "column": 24, "event": "note", "message": "(49) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 877, "column": 12, "event": "note", "message": "(50) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 888, "column": 24, "event": "note", "message": "(51) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 889, "column": 12, "event": "note", "message": "(52) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 900, "column": 24, "event": "note", "message": "(53) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 901, "column": 12, "event": "note", "message": "(54) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "note", "message": "(55) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 903, "column": 32, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 1180, "column": 35, "event": "note", "message": "(56) returning to 'make_image_spec_schema_config_schema' from 'make_image_spec_schema_config_schema_history_element'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "note", "message": "(57) 'make_image_spec_schema_config_schema_history_element(val, ctx, err)' leaks here; was allocated at (42)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c", "line": 903, "column": 32, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 154| #define YAJL_IS_OBJECT(v) (((v) != NULL) && ((v)->type == yajl_t_object))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 155| #define YAJL_IS_ARRAY(v) (((v) != NULL) && ((v)->type == yajl_t_array ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 156|-> #define YAJL_IS_TRUE(v) (((v) != NULL) && ((v)->type == yajl_t_true ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 157| #define YAJL_IS_FALSE(v) (((v) != NULL) && ((v)->type == yajl_t_false ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 158| #define YAJL_IS_NULL(v) (((v) != NULL) && ((v)->type == yajl_t_null ))", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "4b8ca7a9a09d0f54d73b03f20b87db8746de1c10", "key_event_idx": 4, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h", "line": 9, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.h", "line": 7, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 8, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 0, "event": "scope_hint", "message": "In function 'make_runtime_spec_schema_features_linux'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'make_runtime_spec_schema_features_linux_cgroup(get_val(tree, \"cgroup\", 3), ctx, err)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 29, "column": 23, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 1540, "column": 1, "event": "note", "message": "(1) entry to 'make_runtime_spec_schema_features_linux'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 1545, "column": 8, "event": "note", "message": "(2) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 1547, "column": 11, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 1548, "column": 8, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 1552, "column": 24, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 1602, "column": 19, "event": "note", "message": "(6) calling 'make_runtime_spec_schema_features_linux_cgroup' from 'make_runtime_spec_schema_features_linux'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 14, "column": 1, "event": "note", "message": "(7) entry to 'make_runtime_spec_schema_features_linux_cgroup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 19, "column": 8, "event": "note", "message": "(8) following 'false' branch (when 'tree' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 21, "column": 11, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 21, "column": 11, "event": "note", "message": "(10) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 22, "column": 8, "event": "note", "message": "(11) assuming 'calloc(1, 24)' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 22, "column": 8, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 26, "column": 24, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 27, "column": 12, "event": "note", "message": "(14) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 29, "column": 23, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 46, "column": 12, "event": "note", "message": "(16) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 48, "column": 23, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 65, "column": 12, "event": "note", "message": "(18) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 67, "column": 28, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 84, "column": 12, "event": "note", "message": "(20) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 86, "column": 33, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 103, "column": 12, "event": "note", "message": "(22) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 105, "column": 25, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 1602, "column": 19, "event": "note", "message": "(24) returning to 'make_runtime_spec_schema_features_linux' from 'make_runtime_spec_schema_features_linux_cgroup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 156, "column": 49, "event": "note", "message": "(25) 'make_runtime_spec_schema_features_linux_cgroup(get_val(tree, \"cgroup\", 3), ctx, err)' leaks here; was allocated at (10)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c", "line": 29, "column": 23, "event": "note", "message": "in expansion of macro 'YAJL_IS_TRUE'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 154| #define YAJL_IS_OBJECT(v) (((v) != NULL) && ((v)->type == yajl_t_object))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 155| #define YAJL_IS_ARRAY(v) (((v) != NULL) && ((v)->type == yajl_t_array ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 156|-> #define YAJL_IS_TRUE(v) (((v) != NULL) && ((v)->type == yajl_t_true ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 157| #define YAJL_IS_FALSE(v) (((v) != NULL) && ((v)->type == yajl_t_false ))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 158| #define YAJL_IS_NULL(v) (((v) != NULL) && ((v)->type == yajl_t_null ))", "verbosity_level": 1 } ] }, { "checker": "CPPCHECK_WARNING", "cwe": 457, "language": "c/c++", "tool": "cppcheck", "hash_v1": "0b370b3435f5d11b8b9491fbb5e62b4fdd49c61a", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/blake3/blake3.c", "line": 229, "event": "warning[uninitvar]", "message": "Uninitialized variable: parents_array", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 227| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 228| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 229|-> blake3_hash_many(parents_array, parents_array_len, 1, key,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 230| 0, // Parents always use counter 0.", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 231| false, flags | PARENT,", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "84a5d04b35fd010b8c9bf3e4f3a9e0966a211770", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_precreate_cgroup_cgroupfs'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c", "line": 82, "column": 12, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(cgroup_path, 720896)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c", "line": 68, "column": 6, "event": "note", "message": "(1) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c", "line": 71, "column": 9, "event": "note", "message": "(2) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c", "line": 72, "column": 6, "event": "note", "message": "(3) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c", "line": 78, "column": 9, "event": "note", "message": "(4) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c", "line": 79, "column": 6, "event": "note", "message": "(5) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c", "line": 82, "column": 12, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c", "line": 82, "column": 12, "event": "note", "message": "(7) opened here (8) 'open(cgroup_path, 720896)' leaks here; was opened at (7)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 80| return ret;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 81| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 82|-> *dirfd = open (cgroup_path, O_CLOEXEC | O_NOFOLLOW | O_DIRECTORY | O_RDONLY);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 83| if (UNLIKELY (*dirfd < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 84| return crun_make_error (err, errno, \"open `%s`\", cgroup_path);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 688, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "e139e3048478df007630f4a84959359b7010de4c", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 152, "column": 12, "event": "warning[-Wanalyzer-null-argument]", "message": "use of NULL 'controllers' where non-null expected", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1360, "column": 1, "event": "note", "message": "(1) entry to 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1370, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(4) following 'false' branch (when 'path' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(6) following 'case 1:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1397, "column": 5, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1398, "column": 14, "event": "note", "message": "(8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1287, "column": 1, "event": "note", "message": "(9) entry to 'update_cgroup_v2_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1289, "column": 22, "event": "note", "message": "(10) 'cgroup_path' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1293, "column": 6, "event": "note", "message": "(11) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1296, "column": 9, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1297, "column": 6, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1300, "column": 18, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1301, "column": 6, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1304, "column": 16, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1340, "column": 6, "event": "note", "message": "(17) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1342, "column": 13, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1342, "column": 13, "event": "note", "message": "(19) calling 'write_hugetlb_resources' from 'update_cgroup_v2_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 479, "column": 1, "event": "note", "message": "(20) entry to 'write_hugetlb_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 485, "column": 17, "event": "note", "message": "(21) following 'true' branch (when 'i < htlb_len')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 487, "column": 26, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 487, "column": 26, "event": "note", "message": "(23) 'filename' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 492, "column": 32, "event": "note", "message": "(24) following 'true' branch (when 'cgroup2 != 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 494, "column": 50, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 497, "column": 13, "event": "note", "message": "(26) calling 'write_file_and_check_controllers_at' from 'write_hugetlb_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 188, "column": 1, "event": "note", "message": "(27) entry to 'write_file_and_check_controllers_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 193, "column": 9, "event": "note", "message": "(28) calling 'write_cgroup_file_or_alias' from 'write_file_and_check_controllers_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 69, "column": 1, "event": "note", "message": "(29) entry to 'write_cgroup_file_or_alias'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 74, "column": 6, "event": "note", "message": "(30) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 193, "column": 9, "event": "note", "message": "(32) returning to 'write_file_and_check_controllers_at' from 'write_cgroup_file_or_alias'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 194, "column": 6, "event": "note", "message": "(33) following 'true' branch (when 'cgroup2 != 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 195, "column": 12, "event": "note", "message": "(34) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 195, "column": 12, "event": "note", "message": "(35) calling 'check_cgroup_v2_controller_available_wrapper' from 'write_file_and_check_controllers_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 131, "column": 1, "event": "note", "message": "(36) entry to 'check_cgroup_v2_controller_available_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 141, "column": 26, "event": "note", "message": "(37) 'controllers' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 144, "column": 13, "event": "note", "message": "(38) 'controllers' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 152, "column": 12, "event": "note", "message": "(39) argument 1 ('xstrdup(name)') NULL where non-null expected", "verbosity_level": 2 }, { "file_name": "<built-in>", "line": 0, "event": "note", "message": "argument 1 of '__builtin_strchr' must be non-null", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 150| key = xstrdup (name);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 151| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 152|-> it = strchr (key, '.');", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 153| if (it == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 154| {", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "c4aacc7302342c9db6a173c543e62bcd65a2ca66", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 0, "event": "scope_hint", "message": "In function 'update_cgroup_v1_resources'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1100, "column": 21, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(path_to_blkio, 2686976)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1360, "column": 1, "event": "note", "message": "(1) entry to 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1370, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(4) following 'false' branch (when 'path' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(6) following 'case 2 ... 3:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1400, "column": 5, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1402, "column": 14, "event": "note", "message": "(8) calling 'update_cgroup_v1_resources' from 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1086, "column": 1, "event": "note", "message": "(9) entry to 'update_cgroup_v1_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1090, "column": 6, "event": "note", "message": "(10) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1092, "column": 26, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1097, "column": 10, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1100, "column": 21, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1100, "column": 21, "event": "note", "message": "(14) opened here (15) 'open(path_to_blkio, 2686976)' leaks here; was opened at (14)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 1098| return ret;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1099| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1100|-> dirfd_blkio = open (path_to_blkio, O_DIRECTORY | O_PATH | O_CLOEXEC);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1101| if (UNLIKELY (dirfd_blkio < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1102| return crun_make_error (err, errno, \"open `%s`\", path_to_blkio);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "5263b55064a24a9a19db70130cc499eae5ea78d8", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1125, "column": 24, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(path_to_netclass, 2686976)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1360, "column": 1, "event": "note", "message": "(1) entry to 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1370, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(4) following 'false' branch (when 'path' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(6) following 'case 2 ... 3:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1400, "column": 5, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1402, "column": 14, "event": "note", "message": "(8) calling 'update_cgroup_v1_resources' from 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1086, "column": 1, "event": "note", "message": "(9) entry to 'update_cgroup_v1_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1109, "column": 6, "event": "note", "message": "(10) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1111, "column": 26, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1118, "column": 10, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1121, "column": 13, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1122, "column": 10, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1125, "column": 24, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1125, "column": 24, "event": "note", "message": "(16) opened here (17) 'open(path_to_netclass, 2686976)' leaks here; was opened at (16)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 1123| return ret;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1124| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1125|-> dirfd_netclass = open (path_to_netclass, O_DIRECTORY | O_PATH | O_CLOEXEC);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1126| if (UNLIKELY (dirfd_netclass < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1127| return crun_make_error (err, errno, \"open `%s`\", path_to_netclass);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "b3f4b2cb5313354a65a2f3cda1297b581daf4963", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1129, "column": 23, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(path_to_netprio, 2686976)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1360, "column": 1, "event": "note", "message": "(1) entry to 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1370, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(4) following 'false' branch (when 'path' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(6) following 'case 2 ... 3:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1400, "column": 5, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1402, "column": 14, "event": "note", "message": "(8) calling 'update_cgroup_v1_resources' from 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1086, "column": 1, "event": "note", "message": "(9) entry to 'update_cgroup_v1_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1109, "column": 6, "event": "note", "message": "(10) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1111, "column": 26, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1118, "column": 10, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1121, "column": 13, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1122, "column": 10, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1125, "column": 24, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1126, "column": 10, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1129, "column": 23, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1129, "column": 23, "event": "note", "message": "(18) opened here (19) 'open(path_to_netprio, 2686976)' leaks here; was opened at (18)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 1127| return crun_make_error (err, errno, \"open `%s`\", path_to_netclass);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1128| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1129|-> dirfd_netprio = open (path_to_netprio, O_DIRECTORY | O_PATH | O_CLOEXEC);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1130| if (UNLIKELY (dirfd_netprio < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1131| return crun_make_error (err, errno, \"open `%s`\", path_to_netprio);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "2d48fddaccc6b915730a1f238d0b9e5317da7b38", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1146, "column": 20, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(path_to_htlb, 2686976)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1360, "column": 1, "event": "note", "message": "(1) entry to 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1370, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(4) following 'false' branch (when 'path' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(6) following 'case 2 ... 3:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1400, "column": 5, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1402, "column": 14, "event": "note", "message": "(8) calling 'update_cgroup_v1_resources' from 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1086, "column": 1, "event": "note", "message": "(9) entry to 'update_cgroup_v1_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1138, "column": 6, "event": "note", "message": "(10) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1140, "column": 26, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1144, "column": 10, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1146, "column": 20, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1146, "column": 20, "event": "note", "message": "(14) opened here (15) 'open(path_to_htlb, 2686976)' leaks here; was opened at (14)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 1144| if (UNLIKELY (ret < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1145| return ret;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1146|-> dirfd_htlb = open (path_to_htlb, O_DIRECTORY | O_PATH | O_CLOEXEC);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1147| if (UNLIKELY (dirfd_htlb < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1148| return crun_make_error (err, errno, \"open `%s`\", path_to_htlb);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "96796353974ee6df1afc74a790b9013233dce7b9", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 0, "event": "scope_hint", "message": "In function 'update_cgroup_v2_resources'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1300, "column": 18, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(cgroup_path, 589824)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1360, "column": 1, "event": "note", "message": "(1) entry to 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1370, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(4) following 'false' branch (when 'path' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(6) following 'case 1:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1397, "column": 5, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1398, "column": 14, "event": "note", "message": "(8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1287, "column": 1, "event": "note", "message": "(9) entry to 'update_cgroup_v2_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1293, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1296, "column": 9, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1297, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1300, "column": 18, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1300, "column": 18, "event": "note", "message": "(14) opened here (15) 'open(cgroup_path, 589824)' leaks here; was opened at (14)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 1298| return ret;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1299| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1300|-> cgroup_dirfd = open (cgroup_path, O_DIRECTORY | O_CLOEXEC);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1301| if (UNLIKELY (cgroup_dirfd < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1302| return crun_make_error (err, errno, \"open `%s`\", cgroup_path);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "5f6d2bf6bd9d68c98c740be32e77a0e257384c55", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 0, "event": "scope_hint", "message": "In function 'initialize_cpuset_subsystem_rec'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 53, "column": 11, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(path, 2686976)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 493, "column": 1, "event": "note", "message": "(1) entry to 'enter_cgroup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 497, "column": 6, "event": "note", "message": "(2) following 'false' branch (when 'cgroup_mode != 1')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 505, "column": 13, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 505, "column": 13, "event": "note", "message": "(4) calling 'enter_cgroup_v1' from 'enter_cgroup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 323, "column": 1, "event": "note", "message": "(5) entry to 'enter_cgroup_v1'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 338, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 341, "column": 9, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 342, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 352, "column": 19, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 353, "column": 8, "event": "note", "message": "(10) following 'true' branch (when 'has_data != 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 359, "column": 11, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 371, "column": 10, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 373, "column": 10, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 373, "column": 10, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 377, "column": 13, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 377, "column": 13, "event": "note", "message": "(16) calling 'enter_cgroup_subsystem' from 'enter_cgroup_v1'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 197, "column": 1, "event": "note", "message": "(17) entry to 'enter_cgroup_subsystem'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 204, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 207, "column": 6, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 207, "column": 6, "event": "note", "message": "(20) following 'true' branch (when 'create_if_missing != 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 209, "column": 13, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 210, "column": 10, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 219, "column": 11, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 219, "column": 10, "event": "note", "message": "(24) following 'true' branch (when the strings are equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 221, "column": 17, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 221, "column": 17, "event": "note", "message": "(26) calling 'initialize_cpuset_subsystem' from 'enter_cgroup_subsystem'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 148, "column": 1, "event": "note", "message": "(27) entry to 'initialize_cpuset_subsystem'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 150, "column": 33, "event": "note", "message": "(28) calling 'xstrdup' from 'initialize_cpuset_subsystem'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(29) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(30) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(32) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 150, "column": 33, "event": "note", "message": "(34) returning to 'initialize_cpuset_subsystem' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 155, "column": 10, "event": "note", "message": "(35) calling 'initialize_cpuset_subsystem_rec' from 'initialize_cpuset_subsystem'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 43, "column": 1, "event": "note", "message": "(36) entry to 'initialize_cpuset_subsystem_rec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 53, "column": 11, "event": "note", "message": "(37) opened here (38) 'open(path, 2686976)' leaks here; was opened at (37)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 51| int b_len;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 52| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 53|-> dirfd = open (path, O_DIRECTORY | O_PATH | O_CLOEXEC);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 54| if (UNLIKELY (dirfd < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 55| return crun_make_error (err, errno, \"open `%s`\", path);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 688, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "b10ac9a46cea7881d153dd45988226e9ec21176e", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 0, "event": "scope_hint", "message": "In function 'initialize_cpuset_subsystem'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 155, "column": 10, "event": "warning[-Wanalyzer-null-argument]", "message": "use of NULL where non-null expected", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 493, "column": 1, "event": "note", "message": "(1) entry to 'enter_cgroup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 497, "column": 6, "event": "note", "message": "(2) following 'false' branch (when 'cgroup_mode != 1')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 505, "column": 13, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 505, "column": 13, "event": "note", "message": "(4) calling 'enter_cgroup_v1' from 'enter_cgroup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 323, "column": 1, "event": "note", "message": "(5) entry to 'enter_cgroup_v1'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 325, "column": 22, "event": "note", "message": "(6) 'content' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 338, "column": 6, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 341, "column": 9, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 342, "column": 6, "event": "note", "message": "(9) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 352, "column": 19, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 353, "column": 8, "event": "note", "message": "(11) following 'true' branch (when 'has_data != 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 359, "column": 11, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 371, "column": 10, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 373, "column": 10, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 373, "column": 10, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 377, "column": 13, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 377, "column": 13, "event": "note", "message": "(17) calling 'enter_cgroup_subsystem' from 'enter_cgroup_v1'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 197, "column": 1, "event": "note", "message": "(18) entry to 'enter_cgroup_subsystem'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 200, "column": 22, "event": "note", "message": "(19) 'cgroup_path' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 204, "column": 6, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 207, "column": 6, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 207, "column": 6, "event": "note", "message": "(22) following 'true' branch (when 'create_if_missing != 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 209, "column": 13, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 210, "column": 10, "event": "note", "message": "(24) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 219, "column": 11, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 219, "column": 10, "event": "note", "message": "(26) following 'true' branch (when the strings are equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 221, "column": 17, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 221, "column": 17, "event": "note", "message": "(28) calling 'initialize_cpuset_subsystem' from 'enter_cgroup_subsystem'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 148, "column": 1, "event": "note", "message": "(29) entry to 'initialize_cpuset_subsystem'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 150, "column": 33, "event": "note", "message": "(30) calling 'xstrdup' from 'initialize_cpuset_subsystem'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(31) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(32) following 'true' branch (when 'str' is NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 150, "column": 33, "event": "note", "message": "(34) returning to 'initialize_cpuset_subsystem' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 155, "column": 10, "event": "note", "message": "(35) argument 1 ('xstrdup(path)') 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": " 153| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 154| cpus_buf[0] = mems_buf[0] = '\\0';", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 155|-> return initialize_cpuset_subsystem_rec (tmp_path, strlen (tmp_path), cpus_buf, mems_buf, NULL, err);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 156| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 157| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 688, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "0546c18f3b3f06cb051b41567ae34bc8ccf31c92", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 0, "event": "scope_hint", "message": "In function 'enter_cgroup_v2'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 461, "column": 15, "event": "warning[-Wanalyzer-null-argument]", "message": "use of NULL 'cgroup_crun_exec_path' where non-null expected", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 493, "column": 1, "event": "note", "message": "(1) entry to 'enter_cgroup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 497, "column": 6, "event": "note", "message": "(2) following 'true' branch (when 'cgroup_mode == 1')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 499, "column": 13, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 499, "column": 13, "event": "note", "message": "(4) calling 'enter_cgroup_v2' from 'enter_cgroup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 397, "column": 1, "event": "note", "message": "(5) entry to 'enter_cgroup_v2'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 399, "column": 22, "event": "note", "message": "(6) 'cgroup_path_procs' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 400, "column": 22, "event": "note", "message": "(7) 'cgroup_path_procs' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 408, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 411, "column": 6, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 419, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 422, "column": 9, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 423, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 426, "column": 17, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 439, "column": 6, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 442, "column": 3, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 450, "column": 26, "event": "note", "message": "(16) 'cgroup_crun_exec_path' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 451, "column": 26, "event": "note", "message": "(17) 'cgroup_crun_exec_path' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 454, "column": 10, "event": "note", "message": "(18) following 'true' branch (when 'init_pid > 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 456, "column": 17, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 456, "column": 17, "event": "note", "message": "(20) calling 'read_unified_cgroup_pid' from 'enter_cgroup_v2'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 294, "column": 1, "event": "note", "message": "(21) entry to 'read_unified_cgroup_pid'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 299, "column": 22, "event": "note", "message": "(22) 'content' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 307, "column": 10, "event": "note", "message": "(23) when 'strstr' returns NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 308, "column": 6, "event": "note", "message": "(24) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.h", "line": 86, "column": 25, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 309, "column": 12, "event": "note", "message": "in expansion of macro 'crun_make_error'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 456, "column": 17, "event": "note", "message": "(26) returning to 'enter_cgroup_v2' from 'read_unified_cgroup_pid'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 457, "column": 14, "event": "note", "message": "(27) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 461, "column": 15, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 461, "column": 15, "event": "note", "message": "(29) 'cgroup_crun_exec_path' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 461, "column": 15, "event": "note", "message": "(30) 'cgroup_crun_exec_path' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 461, "column": 15, "event": "note", "message": "(31) argument 2 ('cgroup_crun_exec_path') NULL where non-null expected", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h", "line": 7, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.h", "line": 7, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.h", "line": 23, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "/usr/include/string.h", "line": 159, "column": 12, "event": "note", "message": "argument 2 of 'strncmp' must be non-null", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 459| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 460| /* Make sure the cgroup is below the initial cgroup specified for the container. */", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 461|-> if (strncmp (path, cgroup_crun_exec_path, strlen (path)))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 462| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 463| free (cgroup_crun_exec_path);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "2256f6506d959df09faca54948fbbf689b030c16", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_get_cgroup_dirfd'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 968, "column": 17, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(path_to_cgroup, 2818048)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 944, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_get_cgroup_dirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 952, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 955, "column": 6, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 955, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 958, "column": 6, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 958, "column": 6, "event": "note", "message": "(6) following 'false' branch (when 'status' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 961, "column": 30, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 961, "column": 7, "event": "note", "message": "(8) inlined call to 'is_empty_string' from 'libcrun_get_cgroup_dirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 395, "column": 20, "event": "note", "message": "(9) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_get_cgroup_dirfd'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 964, "column": 9, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 965, "column": 6, "event": "note", "message": "(11) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 968, "column": 17, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 968, "column": 17, "event": "note", "message": "(13) opened here (14) 'open(path_to_cgroup, 2818048)' leaks here; was opened at (13)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 966| return ret;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 967| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 968|-> cgroupdirfd = open (path_to_cgroup, O_CLOEXEC | O_NOFOLLOW | O_DIRECTORY | O_PATH);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 969| if (UNLIKELY (cgroupdirfd < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 970| return crun_make_error (err, errno, \"open `%s`\", path_to_cgroup);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "017c7a9860d36ef812bc0ee8f9d07b9e93707af0", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_cgroup_destroy'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 204, "column": 24, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL 'cgroup_manager'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 195, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_cgroup_destroy'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 197, "column": 34, "event": "note", "message": "(2) 'cgroup_manager' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 200, "column": 9, "event": "note", "message": "(3) calling 'get_cgroup_manager' from 'libcrun_cgroup_destroy'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 66, "column": 1, "event": "note", "message": "(4) entry to 'get_cgroup_manager'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 68, "column": 3, "event": "note", "message": "(5) following 'default:' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 200, "column": 9, "event": "note", "message": "(7) returning to 'libcrun_cgroup_destroy' from 'get_cgroup_manager'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 201, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 204, "column": 24, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 204, "column": 24, "event": "note", "message": "(10) 'cgroup_manager' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 204, "column": 24, "event": "note", "message": "(11) dereference of NULL 'cgroup_manager'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 202| return ret;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 203| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 204|-> return cgroup_manager->destroy_cgroup (cgroup_status, err);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 205| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 206| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "9c1e08f22012e5dab4b87b23324946228178f085", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_update_cgroup_resources'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 220, "column": 21, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL 'cgroup_manager'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 208, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 213, "column": 34, "event": "note", "message": "(2) 'cgroup_manager' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 216, "column": 9, "event": "note", "message": "(3) calling 'get_cgroup_manager' from 'libcrun_update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 66, "column": 1, "event": "note", "message": "(4) entry to 'get_cgroup_manager'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 68, "column": 3, "event": "note", "message": "(5) following 'default:' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 216, "column": 9, "event": "note", "message": "(7) returning to 'libcrun_update_cgroup_resources' from 'get_cgroup_manager'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 217, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 220, "column": 21, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 220, "column": 21, "event": "note", "message": "(10) 'cgroup_manager' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 220, "column": 21, "event": "note", "message": "(11) dereference of NULL 'cgroup_manager'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 218| return ret;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 219| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 220|-> if (cgroup_manager->update_resources)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 221| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 222| ret = cgroup_manager->update_resources (cgroup_status, state_root, resources, err);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "aa3b22793cbe7efda25ae7913c8c1a7ab236a696", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_cgroup_preenter'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 278, "column": 21, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL 'cgroup_manager'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 259, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_cgroup_preenter'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 268, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 271, "column": 6, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 271, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 274, "column": 9, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 274, "column": 9, "event": "note", "message": "(6) calling 'get_cgroup_manager' from 'libcrun_cgroup_preenter'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 66, "column": 1, "event": "note", "message": "(7) entry to 'get_cgroup_manager'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 68, "column": 3, "event": "note", "message": "(8) following 'default:' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(10) calling 'get_cgroup_manager.part.0' from 'get_cgroup_manager'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 66, "column": 1, "event": "note", "message": "(11) entry to 'get_cgroup_manager.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 83, "column": 8, "event": "note", "message": "(12) 'cgroup_manager' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 83, "column": 8, "event": "note", "message": "(13) 'cgroup_manager' is NULL", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(14) returning to 'get_cgroup_manager' from 'get_cgroup_manager.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 274, "column": 9, "event": "note", "message": "(15) returning to 'libcrun_cgroup_preenter' from 'get_cgroup_manager'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 275, "column": 6, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 278, "column": 21, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 278, "column": 21, "event": "note", "message": "(18) 'cgroup_manager' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 278, "column": 21, "event": "note", "message": "(19) dereference of NULL 'cgroup_manager'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 276| return ret;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 277| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 278|-> if (cgroup_manager->precreate_cgroup == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 279| return 0;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 280| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "bb9ca3e387dee22d5bd4a8da8bfb14334fda6c60", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_cgroup_enter'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 335, "column": 23, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL 'cgroup_manager'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 285, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_cgroup_enter'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 289, "column": 64, "event": "note", "message": "(2) calling 'xmalloc0' from 'libcrun_cgroup_enter'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(3) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 289, "column": 64, "event": "note", "message": "(6) returning to 'libcrun_cgroup_enter' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 297, "column": 6, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 305, "column": 7, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 329, "column": 9, "event": "note", "message": "(9) calling 'get_cgroup_manager' from 'libcrun_cgroup_enter'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 66, "column": 1, "event": "note", "message": "(10) entry to 'get_cgroup_manager'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 68, "column": 3, "event": "note", "message": "(11) following 'default:' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(13) calling 'get_cgroup_manager.part.0' from 'get_cgroup_manager'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 66, "column": 1, "event": "note", "message": "(14) entry to 'get_cgroup_manager.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 83, "column": 8, "event": "note", "message": "(15) 'cgroup_manager' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 83, "column": 8, "event": "note", "message": "(16) 'cgroup_manager' is NULL", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(17) returning to 'get_cgroup_manager' from 'get_cgroup_manager.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 329, "column": 9, "event": "note", "message": "(18) returning to 'libcrun_cgroup_enter' from 'get_cgroup_manager'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 330, "column": 6, "event": "note", "message": "(19) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 333, "column": 25, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 335, "column": 23, "event": "note", "message": "(21) 'cgroup_manager' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 335, "column": 23, "event": "note", "message": "(22) dereference of NULL 'cgroup_manager'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 333| status->manager = args->manager;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 334| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 335|-> ret = cgroup_manager->create_cgroup (args, status, err);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 336| if (UNLIKELY (ret < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 337| {", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "edb17d43d593208ddf4337c15f95692469692e9d", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 0, "event": "scope_hint", "message": "In function 'fetchve'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 190, "column": 40, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'read_file(\"/proc/self/cmdline\", &cmdline_size)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 520, "column": 5, "event": "note", "message": "(1) entry to 'ensure_cloned_binary'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 527, "column": 12, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 530, "column": 13, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 530, "column": 13, "event": "note", "message": "(4) calling 'fetchve' from 'ensure_cloned_binary'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 231, "column": 12, "event": "note", "message": "(5) entry to 'fetchve'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 236, "column": 19, "event": "note", "message": "(6) calling 'read_file' from 'fetchve'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 168, "column": 14, "event": "note", "message": "(7) entry to 'read_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 173, "column": 12, "event": "note", "message": "(8) following 'false' branch (when 'length' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 176, "column": 14, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 177, "column": 12, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 180, "column": 17, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 185, "column": 20, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 187, "column": 20, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 187, "column": 20, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 190, "column": 40, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 190, "column": 24, "event": "note", "message": "(16) calling 'xrealloc' from 'read_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 61, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(17) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(18) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(19) when 'realloc' succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 6, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 82, "column": 10, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 190, "column": 24, "event": "note", "message": "(22) returning to 'read_file' from 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 185, "column": 20, "event": "note", "message": "(23) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 187, "column": 20, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 187, "column": 20, "event": "note", "message": "(25) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 194, "column": 9, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 236, "column": 19, "event": "note", "message": "(27) returning to 'fetchve' from 'read_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 237, "column": 12, "event": "note", "message": "(28) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 240, "column": 13, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 240, "column": 13, "event": "note", "message": "(30) calling 'parse_xargs' from 'fetchve'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 208, "column": 12, "event": "note", "message": "(31) entry to 'parse_xargs'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 213, "column": 12, "event": "note", "message": "(32) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 216, "column": 20, "event": "note", "message": "(34) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 217, "column": 20, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 218, "column": 27, "event": "note", "message": "(36) calling 'xrealloc' from 'parse_xargs'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(37) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(38) when 'realloc' succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 6, "event": "note", "message": "(39) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 82, "column": 10, "event": "note", "message": "(40) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 218, "column": 27, "event": "note", "message": "(41) returning to 'parse_xargs' from 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 216, "column": 20, "event": "note", "message": "(42) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 217, "column": 20, "event": "note", "message": "(43) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 218, "column": 27, "event": "note", "message": "(44) calling 'xrealloc' from 'parse_xargs'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(45) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(46) when 'realloc' succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 6, "event": "note", "message": "(47) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 82, "column": 10, "event": "note", "message": "(48) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 218, "column": 27, "event": "note", "message": "(49) returning to 'parse_xargs' from 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 216, "column": 20, "event": "note", "message": "(50) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 222, "column": 10, "event": "note", "message": "(51) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 240, "column": 13, "event": "note", "message": "(52) returning to 'fetchve' from 'parse_xargs'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 190, "column": 40, "event": "note", "message": "(53) 'read_file(\"/proc/self/cmdline\", &cmdline_size)' leaks here; was allocated at (18)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 188| \t\t\tbreak;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 189| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 190|-> \t\tcopy = xrealloc(copy, (*length + n) * sizeof(*copy));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 191| \t\tmemcpy(copy + *length, buf, n);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 192| \t\t*length += n;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "072776e0573db52eeb3d2d29d7be5b6e732ed5d4", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 0, "event": "scope_hint", "message": "In function 'parse_xargs'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 222, "column": 24, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL '0'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 520, "column": 5, "event": "note", "message": "(1) entry to 'ensure_cloned_binary'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 523, "column": 16, "event": "note", "message": "(2) 'argv' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 527, "column": 12, "event": "note", "message": "(3) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 530, "column": 13, "event": "note", "message": "(4) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 530, "column": 13, "event": "note", "message": "(5) calling 'fetchve' from 'ensure_cloned_binary'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 231, "column": 12, "event": "note", "message": "(6) entry to 'fetchve'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 236, "column": 19, "event": "note", "message": "(7) calling 'read_file' from 'fetchve'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 168, "column": 14, "event": "note", "message": "(8) entry to 'read_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 173, "column": 12, "event": "note", "message": "(9) following 'false' branch (when 'length' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 176, "column": 14, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 177, "column": 12, "event": "note", "message": "(11) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 180, "column": 17, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 185, "column": 20, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 187, "column": 20, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 187, "column": 20, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 190, "column": 40, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 190, "column": 24, "event": "note", "message": "(17) calling 'xrealloc' from 'read_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(18) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(19) when 'realloc' succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 6, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 82, "column": 10, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 190, "column": 24, "event": "note", "message": "(22) returning to 'read_file' from 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 185, "column": 20, "event": "note", "message": "(23) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 187, "column": 20, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 187, "column": 20, "event": "note", "message": "(25) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 194, "column": 9, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 236, "column": 19, "event": "note", "message": "(27) returning to 'fetchve' from 'read_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 237, "column": 12, "event": "note", "message": "(28) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 240, "column": 13, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 240, "column": 13, "event": "note", "message": "(30) calling 'parse_xargs' from 'fetchve'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 208, "column": 12, "event": "note", "message": "(31) entry to 'parse_xargs'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 213, "column": 12, "event": "note", "message": "(32) following 'false' branch (when 'data' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 213, "column": 22, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 213, "column": 22, "event": "note", "message": "(34) 'argv' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 213, "column": 19, "event": "note", "message": "(35) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(36) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 216, "column": 20, "event": "note", "message": "(37) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 222, "column": 10, "event": "note", "message": "(38) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 222, "column": 10, "event": "note", "message": "(39) 'argv' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 222, "column": 18, "event": "note", "message": "(40) 'argv' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c", "line": 222, "column": 24, "event": "note", "message": "(41) dereference of NULL '*output + (long unsigned int)num * 8'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 220| \t\tcur += strlen(cur) + 1;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 221| \t}", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 222|-> \t(*output)[num] = NULL;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 223| \treturn num;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 224| }", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "3645cc98fac7384a25de680d1d6bcc0d68c0c28a", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_load_from_file'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 554, "column": 10, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of '<unknown>'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4209, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_restore'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4221, "column": 15, "event": "note", "message": "(2) calling 'libcrun_container_load_from_file' from 'libcrun_container_restore'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 572, "column": 1, "event": "note", "message": "(3) entry to 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 578, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(6) calling 'make_container' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 541, "column": 1, "event": "note", "message": "(7) entry to 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(8) calling 'xmalloc0' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(9) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(12) returning to 'make_container' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 549, "column": 6, "event": "note", "message": "(13) following 'true' branch (when 'path' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 550, "column": 30, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 550, "column": 30, "event": "note", "message": "(15) calling 'xstrdup' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(16) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(17) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(19) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(20) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(21) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 550, "column": 30, "event": "note", "message": "(23) returning to 'make_container' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 551, "column": 6, "event": "note", "message": "(24) following 'false' branch (when 'config' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 554, "column": 10, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(26) returning to 'libcrun_container_load_from_file' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 554, "column": 10, "event": "note", "message": "(27) '<unknown>' leaks here; was allocated at (19)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 552| container->config_file_content = xstrdup (config);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 553| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 554|-> return container;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 555| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 556| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "2efdd9bfcc52ff0988073130914caae5524f5c57", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'container_delete_internal'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1736, "column": 15, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL 'container'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4177, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_checkpoint'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4183, "column": 42, "event": "note", "message": "(2) 'container' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4183, "column": 42, "event": "note", "message": "(3) 'container' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4186, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4189, "column": 9, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4190, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4192, "column": 6, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4192, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4195, "column": 9, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4196, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4198, "column": 9, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4198, "column": 9, "event": "note", "message": "(12) 'container' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4199, "column": 6, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4202, "column": 20, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4202, "column": 6, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4203, "column": 12, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4203, "column": 12, "event": "note", "message": "(17) calling 'container_delete_internal' from 'libcrun_container_checkpoint'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1684, "column": 1, "event": "note", "message": "(18) entry to 'container_delete_internal'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1689, "column": 42, "event": "note", "message": "(19) 'container' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1694, "column": 6, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1708, "column": 19, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1710, "column": 6, "event": "note", "message": "(22) following 'true' branch (when 'force != 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1728, "column": 15, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1728, "column": 6, "event": "note", "message": "(24) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1730, "column": 10, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1730, "column": 10, "event": "note", "message": "(26) following 'true' branch (when 'def' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1732, "column": 17, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1733, "column": 14, "event": "note", "message": "(28) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1736, "column": 26, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1736, "column": 26, "event": "note", "message": "(30) 'container' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1736, "column": 15, "event": "note", "message": "(31) dereference of NULL 'container'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 1734| return ret;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1735| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1736|-> def = container->container_def;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1737| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1738| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "6dcd303716f8114579736a110da77b27de3ee284", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'exec_process_entrypoint'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3496, "column": 23, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'pipefd1'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3315, "column": 1, "event": "note", "message": "(1) entry to 'exec_process_entrypoint'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3348, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3351, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3352, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3355, "column": 14, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3384, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3387, "column": 9, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3388, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3391, "column": 16, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3391, "column": 6, "event": "note", "message": "(10) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3393, "column": 21, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3416, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3419, "column": 16, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3441, "column": 6, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3444, "column": 9, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3444, "column": 9, "event": "note", "message": "(16) calling 'maybe_chown_std_streams' from 'exec_process_entrypoint'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1018, "column": 1, "event": "note", "message": "(17) entry to 'maybe_chown_std_streams'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1023, "column": 17, "event": "note", "message": "(18) following 'true' branch (when 'i != 3')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1025, "column": 13, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1025, "column": 13, "event": "note", "message": "(20) when 'isatty' succeeds", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1025, "column": 10, "event": "note", "message": "(21) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1023, "column": 23, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3444, "column": 9, "event": "note", "message": "(23) returning to 'exec_process_entrypoint' from 'maybe_chown_std_streams'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3445, "column": 6, "event": "note", "message": "(24) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3448, "column": 14, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3454, "column": 6, "event": "note", "message": "(26) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3457, "column": 6, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3496, "column": 23, "event": "note", "message": "(28) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3496, "column": 3, "event": "note", "message": "(29) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(30) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3496, "column": 23, "event": "note", "message": "(31) second 'close' here; first 'close' was at (28)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 3494| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3495| TEMP_FAILURE_RETRY (write (pipefd1, \"0\", 1));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3496|-> TEMP_FAILURE_RETRY (close (pipefd1));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3497| pipefd1 = -1;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3498| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "106dff308bdca2ad5128a4565dd5855d675a0655", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_exec_with_options'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3665, "column": 9, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL 'process'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3293, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_exec_process_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3301, "column": 10, "event": "note", "message": "(2) calling 'libcrun_container_exec_with_options' from 'libcrun_container_exec_process_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3531, "column": 1, "event": "note", "message": "(3) entry to 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3555, "column": 46, "event": "note", "message": "(4) 'process' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3555, "column": 46, "event": "note", "message": "(5) 'process' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3555, "column": 46, "event": "note", "message": "(6) 'process' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3560, "column": 6, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3563, "column": 9, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3564, "column": 6, "event": "note", "message": "(9) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3568, "column": 9, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3569, "column": 6, "event": "note", "message": "(11) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3572, "column": 9, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3573, "column": 6, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(15) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 572, "column": 1, "event": "note", "message": "(16) entry to 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 578, "column": 6, "event": "note", "message": "(17) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(19) calling 'make_container' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 541, "column": 1, "event": "note", "message": "(20) entry to 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(21) calling 'xmalloc0' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(22) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(23) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(25) returning to 'make_container' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 551, "column": 6, "event": "note", "message": "(26) following 'false' branch (when 'config' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 554, "column": 10, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(28) returning to 'libcrun_container_load_from_file' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(29) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3577, "column": 6, "event": "note", "message": "(30) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3580, "column": 22, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3582, "column": 6, "event": "note", "message": "(32) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3588, "column": 21, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3591, "column": 8, "event": "note", "message": "(34) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3586, "column": 57, "event": "note", "message": "(35) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h", "line": 80, "column": 6, "event": "note", "message": "(36) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_exec_with_options'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3595, "column": 6, "event": "note", "message": "(37) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3598, "column": 9, "event": "note", "message": "(38) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3603, "column": 6, "event": "note", "message": "(39) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3606, "column": 9, "event": "note", "message": "(40) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3607, "column": 6, "event": "note", "message": "(41) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3610, "column": 3, "event": "note", "message": "(42) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h", "line": 52, "column": 3, "event": "note", "message": "(43) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_exec_with_options'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3613, "column": 6, "event": "note", "message": "(44) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3616, "column": 18, "event": "note", "message": "(45) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3616, "column": 6, "event": "note", "message": "(46) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3625, "column": 29, "event": "note", "message": "(47) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3625, "column": 6, "event": "note", "message": "(48) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 11, "event": "note", "message": "(49) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 6, "event": "note", "message": "(50) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3665, "column": 9, "event": "note", "message": "(51) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3665, "column": 9, "event": "note", "message": "(52) dereference of NULL 'process'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 3663| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3664| /* This must be done before we enter a user namespace. */", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3665|-> ret = libcrun_set_rlimits (process->rlimits, process->rlimits_len, err);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3666| if (UNLIKELY (ret < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3667| return ret;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "801f447dde82c6299057388ec2e93efa3dd830e9", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3680, "column": 32, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of '*process.selinux_label'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3531, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3560, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3563, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3564, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3568, "column": 9, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3569, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3572, "column": 9, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3573, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 572, "column": 1, "event": "note", "message": "(11) entry to 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 578, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(14) calling 'make_container' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 541, "column": 1, "event": "note", "message": "(15) entry to 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(16) calling 'xmalloc0' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(17) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(20) returning to 'make_container' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 551, "column": 6, "event": "note", "message": "(21) following 'false' branch (when 'config' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 554, "column": 10, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(23) returning to 'libcrun_container_load_from_file' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3577, "column": 6, "event": "note", "message": "(25) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3580, "column": 22, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3582, "column": 6, "event": "note", "message": "(27) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3588, "column": 21, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3591, "column": 8, "event": "note", "message": "(29) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3586, "column": 57, "event": "note", "message": "(30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h", "line": 80, "column": 6, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_exec_with_options'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3595, "column": 6, "event": "note", "message": "(32) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3598, "column": 9, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3603, "column": 6, "event": "note", "message": "(34) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3606, "column": 9, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3607, "column": 6, "event": "note", "message": "(36) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3610, "column": 3, "event": "note", "message": "(37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h", "line": 52, "column": 3, "event": "note", "message": "(38) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_exec_with_options'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3613, "column": 6, "event": "note", "message": "(39) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3616, "column": 18, "event": "note", "message": "(40) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3625, "column": 6, "event": "note", "message": "(41) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 11, "event": "note", "message": "(42) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 6, "event": "note", "message": "(43) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3665, "column": 9, "event": "note", "message": "(44) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3666, "column": 6, "event": "note", "message": "(45) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(46) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(47) when 'pipe2' succeeds", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3670, "column": 6, "event": "note", "message": "(48) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3672, "column": 33, "event": "note", "message": "(49) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3677, "column": 6, "event": "note", "message": "(50) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3679, "column": 18, "event": "note", "message": "(51) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3679, "column": 10, "event": "note", "message": "(52) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3680, "column": 34, "event": "note", "message": "(53) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3680, "column": 34, "event": "note", "message": "(54) calling 'xstrdup' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(55) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(56) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(57) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(58) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(59) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(60) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(61) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3680, "column": 34, "event": "note", "message": "(62) returning to 'libcrun_container_exec_with_options' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3680, "column": 32, "event": "note", "message": "(63) '*process.selinux_label' leaks here; was allocated at (58)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 3678| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3679| if (process->selinux_label == NULL && container->container_def->process->selinux_label)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3680|-> process->selinux_label = xstrdup (container->container_def->process->selinux_label);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3681| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3682| if (process->apparmor_profile == NULL && container->container_def->process->apparmor_profile)", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "43571b884c18246d44b911b08da68ad454f6531c", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3683, "column": 35, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of '*process.apparmor_profile'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3531, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3560, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3563, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3564, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3568, "column": 9, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3569, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3572, "column": 9, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3573, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 572, "column": 1, "event": "note", "message": "(11) entry to 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 578, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(14) calling 'make_container' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 541, "column": 1, "event": "note", "message": "(15) entry to 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(16) calling 'xmalloc0' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(17) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(20) returning to 'make_container' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 551, "column": 6, "event": "note", "message": "(21) following 'false' branch (when 'config' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 554, "column": 10, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(23) returning to 'libcrun_container_load_from_file' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3577, "column": 6, "event": "note", "message": "(25) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3580, "column": 22, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3582, "column": 6, "event": "note", "message": "(27) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3588, "column": 21, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3591, "column": 8, "event": "note", "message": "(29) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3586, "column": 57, "event": "note", "message": "(30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h", "line": 80, "column": 6, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_exec_with_options'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3595, "column": 6, "event": "note", "message": "(32) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3598, "column": 9, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3603, "column": 6, "event": "note", "message": "(34) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3606, "column": 9, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3607, "column": 6, "event": "note", "message": "(36) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3610, "column": 3, "event": "note", "message": "(37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h", "line": 52, "column": 3, "event": "note", "message": "(38) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_exec_with_options'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3613, "column": 6, "event": "note", "message": "(39) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3616, "column": 18, "event": "note", "message": "(40) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3625, "column": 6, "event": "note", "message": "(41) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 11, "event": "note", "message": "(42) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 6, "event": "note", "message": "(43) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3665, "column": 9, "event": "note", "message": "(44) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3666, "column": 6, "event": "note", "message": "(45) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(46) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(47) when 'pipe2' succeeds", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3670, "column": 6, "event": "note", "message": "(48) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3672, "column": 33, "event": "note", "message": "(49) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3677, "column": 6, "event": "note", "message": "(50) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3679, "column": 18, "event": "note", "message": "(51) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3682, "column": 10, "event": "note", "message": "(52) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3683, "column": 37, "event": "note", "message": "(53) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3683, "column": 37, "event": "note", "message": "(54) calling 'xstrdup' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(55) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(56) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(57) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(58) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(59) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(60) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(61) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3683, "column": 37, "event": "note", "message": "(62) returning to 'libcrun_container_exec_with_options' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3683, "column": 35, "event": "note", "message": "(63) '*process.apparmor_profile' leaks here; was allocated at (58)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 3681| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3682| if (process->apparmor_profile == NULL && container->container_def->process->apparmor_profile)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3683|-> process->apparmor_profile = xstrdup (container->container_def->process->apparmor_profile);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3684| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3685| if (process->user == NULL && container->container_def->process->user)", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "5b607e5ad3fc65e4c2a20772a70b28bd854abf01", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3709, "column": 27, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'pipefd0'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3531, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3560, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3563, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3564, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3568, "column": 9, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3569, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3572, "column": 9, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3573, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 572, "column": 1, "event": "note", "message": "(11) entry to 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 578, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(14) calling 'make_container' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 541, "column": 1, "event": "note", "message": "(15) entry to 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(16) calling 'xmalloc0' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(17) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(20) returning to 'make_container' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 551, "column": 6, "event": "note", "message": "(21) following 'false' branch (when 'config' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 554, "column": 10, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(23) returning to 'libcrun_container_load_from_file' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3577, "column": 6, "event": "note", "message": "(25) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3580, "column": 22, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3582, "column": 6, "event": "note", "message": "(27) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3588, "column": 21, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3591, "column": 8, "event": "note", "message": "(29) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3586, "column": 57, "event": "note", "message": "(30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h", "line": 80, "column": 6, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_exec_with_options'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3595, "column": 6, "event": "note", "message": "(32) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3598, "column": 9, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3603, "column": 6, "event": "note", "message": "(34) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3606, "column": 9, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3607, "column": 6, "event": "note", "message": "(36) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3610, "column": 3, "event": "note", "message": "(37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h", "line": 52, "column": 3, "event": "note", "message": "(38) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_exec_with_options'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3613, "column": 6, "event": "note", "message": "(39) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3616, "column": 18, "event": "note", "message": "(40) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3625, "column": 6, "event": "note", "message": "(41) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 11, "event": "note", "message": "(42) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 6, "event": "note", "message": "(43) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3665, "column": 9, "event": "note", "message": "(44) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3666, "column": 6, "event": "note", "message": "(45) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(46) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(47) opened here as read-write", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(48) when 'pipe2' succeeds", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3670, "column": 6, "event": "note", "message": "(49) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3672, "column": 33, "event": "note", "message": "(50) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3693, "column": 9, "event": "note", "message": "(51) calling 'initialize_security' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 641, "column": 1, "event": "note", "message": "(52) entry to 'initialize_security'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 645, "column": 6, "event": "note", "message": "(53) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 648, "column": 11, "event": "note", "message": "(54) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 656, "column": 6, "event": "note", "message": "(55) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 659, "column": 9, "event": "note", "message": "(56) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3693, "column": 9, "event": "note", "message": "(57) returning to 'libcrun_container_exec_with_options' from 'initialize_security'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3694, "column": 6, "event": "note", "message": "(58) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3697, "column": 9, "event": "note", "message": "(59) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3698, "column": 6, "event": "note", "message": "(60) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3702, "column": 47, "event": "note", "message": "(61) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3703, "column": 6, "event": "note", "message": "(62) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3707, "column": 6, "event": "note", "message": "(63) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3707, "column": 6, "event": "note", "message": "(64) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(65) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3709, "column": 27, "event": "note", "message": "(66) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3709, "column": 7, "event": "note", "message": "(67) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(68) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3709, "column": 27, "event": "note", "message": "(69) second 'close' here; first 'close' was at (66)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 3707| if (pid == 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3708| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3709|-> TEMP_FAILURE_RETRY (close (pipefd0));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3710| pipefd0 = -1;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3711| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "6dcd303716f8114579736a110da77b27de3ee284", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3720, "column": 23, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'pipefd1'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3531, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3560, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3563, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3564, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3568, "column": 9, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3569, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3572, "column": 9, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3573, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 572, "column": 1, "event": "note", "message": "(11) entry to 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 578, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(14) calling 'make_container' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 541, "column": 1, "event": "note", "message": "(15) entry to 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(16) calling 'xmalloc0' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(17) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(20) returning to 'make_container' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 551, "column": 6, "event": "note", "message": "(21) following 'false' branch (when 'config' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 554, "column": 10, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(23) returning to 'libcrun_container_load_from_file' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3577, "column": 6, "event": "note", "message": "(25) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3580, "column": 22, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3582, "column": 6, "event": "note", "message": "(27) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3588, "column": 21, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3591, "column": 8, "event": "note", "message": "(29) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3586, "column": 57, "event": "note", "message": "(30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h", "line": 80, "column": 6, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_exec_with_options'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3595, "column": 6, "event": "note", "message": "(32) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3598, "column": 9, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3603, "column": 6, "event": "note", "message": "(34) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3606, "column": 9, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3607, "column": 6, "event": "note", "message": "(36) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3610, "column": 3, "event": "note", "message": "(37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h", "line": 52, "column": 3, "event": "note", "message": "(38) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_exec_with_options'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3613, "column": 6, "event": "note", "message": "(39) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3616, "column": 18, "event": "note", "message": "(40) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3625, "column": 6, "event": "note", "message": "(41) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 11, "event": "note", "message": "(42) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 6, "event": "note", "message": "(43) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3665, "column": 9, "event": "note", "message": "(44) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3666, "column": 6, "event": "note", "message": "(45) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(46) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(47) opened here as read-write", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(48) when 'pipe2' succeeds", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3670, "column": 6, "event": "note", "message": "(49) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3672, "column": 33, "event": "note", "message": "(50) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3693, "column": 9, "event": "note", "message": "(51) calling 'initialize_security' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 641, "column": 1, "event": "note", "message": "(52) entry to 'initialize_security'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 645, "column": 6, "event": "note", "message": "(53) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 648, "column": 11, "event": "note", "message": "(54) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 656, "column": 6, "event": "note", "message": "(55) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 659, "column": 9, "event": "note", "message": "(56) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3693, "column": 9, "event": "note", "message": "(57) returning to 'libcrun_container_exec_with_options' from 'initialize_security'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3694, "column": 6, "event": "note", "message": "(58) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3697, "column": 9, "event": "note", "message": "(59) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3698, "column": 6, "event": "note", "message": "(60) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3702, "column": 47, "event": "note", "message": "(61) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3703, "column": 6, "event": "note", "message": "(62) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3707, "column": 6, "event": "note", "message": "(63) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3707, "column": 6, "event": "note", "message": "(64) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(65) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3720, "column": 23, "event": "note", "message": "(66) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3720, "column": 3, "event": "note", "message": "(67) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(68) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3720, "column": 23, "event": "note", "message": "(69) second 'close' here; first 'close' was at (66)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 3718| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3719| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3720|-> TEMP_FAILURE_RETRY (close (pipefd1));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3721| pipefd1 = -1;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3722| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "20d578e71f1c96e401b0467e3ec0a590db7395c6", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 0, "event": "scope_hint", "message": "In function 'restore_cgroup_v1_mount'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 298, "column": 22, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL '0'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 253, "column": 22, "event": "note", "message": "(1) 'content' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 255, "column": 9, "event": "note", "message": "(2) 'content' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 262, "column": 6, "event": "note", "message": "(3) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 265, "column": 6, "event": "note", "message": "(4) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 265, "column": 6, "event": "note", "message": "(5) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 278, "column": 6, "event": "note", "message": "(7) following 'true' branch (when 'has_cgroup_mount != 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 281, "column": 9, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 282, "column": 6, "event": "note", "message": "(9) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 285, "column": 25, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 285, "column": 6, "event": "note", "message": "(11) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 288, "column": 15, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 288, "column": 51, "event": "note", "message": "(13) following 'true' branch (when 'from' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 290, "column": 26, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 290, "column": 26, "event": "note", "message": "(15) 'destination' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 291, "column": 26, "event": "note", "message": "(16) 'destination' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 296, "column": 19, "event": "note", "message": "(17) when 'strchr' returns NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 297, "column": 17, "event": "note", "message": "(18) when 'strchr' returns NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 298, "column": 22, "event": "note", "message": "(19) dereference of NULL 'strchr(subsystem, 58)'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 296| subsystem = strchr (from, ':') + 1;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 297| subpath = strchr (subsystem, ':') + 1;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 298|-> *(subpath - 1) = '\\0';", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 299| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 300| if (subsystem[0] == '\\0')", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "1db324af00e696f76b4db9ac56ea877ed313c479", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 300, "column": 20, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL '0'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 253, "column": 22, "event": "note", "message": "(1) 'content' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 255, "column": 9, "event": "note", "message": "(2) 'content' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 262, "column": 6, "event": "note", "message": "(3) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 265, "column": 6, "event": "note", "message": "(4) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 265, "column": 6, "event": "note", "message": "(5) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 278, "column": 6, "event": "note", "message": "(7) following 'true' branch (when 'has_cgroup_mount != 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 281, "column": 9, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 282, "column": 6, "event": "note", "message": "(9) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 285, "column": 25, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 285, "column": 6, "event": "note", "message": "(11) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 288, "column": 15, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 288, "column": 51, "event": "note", "message": "(13) following 'true' branch (when 'from' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 290, "column": 26, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 290, "column": 26, "event": "note", "message": "(15) 'destination' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 291, "column": 26, "event": "note", "message": "(16) 'destination' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 296, "column": 19, "event": "note", "message": "(17) when 'strchr' returns NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 297, "column": 17, "event": "note", "message": "(18) when 'strchr' returns non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 300, "column": 20, "event": "note", "message": "(19) dereference of NULL 'strchr(from, 58)'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 298| *(subpath - 1) = '\\0';", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 299| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 300|-> if (subsystem[0] == '\\0')", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 301| continue;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 302| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "20d578e71f1c96e401b0467e3ec0a590db7395c6", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 0, "event": "scope_hint", "message": "In function 'checkpoint_cgroup_v1_mount'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 365, "column": 22, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL '0'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 329, "column": 22, "event": "note", "message": "(1) 'content' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 331, "column": 9, "event": "note", "message": "(2) 'content' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 346, "column": 6, "event": "note", "message": "(3) following 'true' branch (when 'has_cgroup_mount != 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 349, "column": 9, "event": "note", "message": "(4) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 350, "column": 6, "event": "note", "message": "(5) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 353, "column": 25, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 353, "column": 6, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 356, "column": 15, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 356, "column": 51, "event": "note", "message": "(9) following 'true' branch (when 'from' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 358, "column": 26, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 358, "column": 26, "event": "note", "message": "(11) 'source_path' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 363, "column": 19, "event": "note", "message": "(12) when 'strchr' returns NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 364, "column": 17, "event": "note", "message": "(13) when 'strchr' returns NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 365, "column": 22, "event": "note", "message": "(14) dereference of NULL 'strchr(subsystem, 58)'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 363| subsystem = strchr (from, ':') + 1;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 364| subpath = strchr (subsystem, ':') + 1;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 365|-> *(subpath - 1) = '\\0';", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 366| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 367| if (subsystem[0] == '\\0')", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "1db324af00e696f76b4db9ac56ea877ed313c479", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 367, "column": 20, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL '0'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 329, "column": 22, "event": "note", "message": "(1) 'content' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 331, "column": 9, "event": "note", "message": "(2) 'content' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 346, "column": 6, "event": "note", "message": "(3) following 'true' branch (when 'has_cgroup_mount != 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 349, "column": 9, "event": "note", "message": "(4) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 350, "column": 6, "event": "note", "message": "(5) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 353, "column": 25, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 353, "column": 6, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 356, "column": 15, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 356, "column": 51, "event": "note", "message": "(9) following 'true' branch (when 'from' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 358, "column": 26, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 358, "column": 26, "event": "note", "message": "(11) 'source_path' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 363, "column": 19, "event": "note", "message": "(12) when 'strchr' returns NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 364, "column": 17, "event": "note", "message": "(13) when 'strchr' returns non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 367, "column": 20, "event": "note", "message": "(14) dereference of NULL 'strchr(from, 58)'", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 365| *(subpath - 1) = '\\0';", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 366| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 367|-> if (subsystem[0] == '\\0')", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 368| continue;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 369| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "99a813f0437c686c5807fd072241ded77b377977", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_checkpoint_linux_criu'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 442, "column": 14, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(*cr_options.image_path, 589824)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 390, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_checkpoint_linux_criu'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 404, "column": 9, "event": "note", "message": "(2) calling 'load_wrapper' from 'libcrun_container_checkpoint_linux_criu'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 116, "column": 1, "event": "note", "message": "(3) entry to 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 118, "column": 52, "event": "note", "message": "(4) calling 'xmalloc0' from 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(5) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 118, "column": 52, "event": "note", "message": "(8) returning to 'load_wrapper' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 404, "column": 9, "event": "note", "message": "(9) returning to 'libcrun_container_checkpoint_linux_criu' from 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 405, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 408, "column": 7, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 408, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 428, "column": 24, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 429, "column": 6, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 432, "column": 24, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 432, "column": 6, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 435, "column": 27, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 435, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 438, "column": 9, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 442, "column": 14, "event": "note", "message": "(20) opened here (21) 'open(*cr_options.image_path, 589824)' leaks here; was opened at (20)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 440| return crun_make_error (err, errno, \"error creating checkpoint directory `%s`\", cr_options->image_path);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 441| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 442|-> image_fd = open (cr_options->image_path, O_DIRECTORY | O_CLOEXEC);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 443| if (UNLIKELY (image_fd == -1))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 444| return crun_make_error (err, errno, \"error opening checkpoint directory `%s`\", cr_options->image_path);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "4792d6860b1e4cccd82a99adaf29681c49883c3f", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 462, "column": 17, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(*cr_options.work_path, 589824)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 390, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_checkpoint_linux_criu'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 404, "column": 9, "event": "note", "message": "(2) calling 'load_wrapper' from 'libcrun_container_checkpoint_linux_criu'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 116, "column": 1, "event": "note", "message": "(3) entry to 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 118, "column": 52, "event": "note", "message": "(4) calling 'xmalloc0' from 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(5) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 118, "column": 52, "event": "note", "message": "(8) returning to 'load_wrapper' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 404, "column": 9, "event": "note", "message": "(9) returning to 'libcrun_container_checkpoint_linux_criu' from 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 405, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 408, "column": 7, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 408, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 428, "column": 24, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 429, "column": 6, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 432, "column": 24, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 432, "column": 6, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 435, "column": 27, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 435, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 438, "column": 9, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 443, "column": 6, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 446, "column": 18, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 460, "column": 6, "event": "note", "message": "(22) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 462, "column": 17, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 462, "column": 17, "event": "note", "message": "(24) opened here (25) 'open(*cr_options.work_path, 589824)' leaks here; was opened at (24)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 460| if (cr_options->work_path != NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 461| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 462|-> work_fd = open (cr_options->work_path, O_DIRECTORY | O_CLOEXEC);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 463| if (UNLIKELY (work_fd == -1))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 464| return crun_make_error (err, errno, \"error opening CRIU work directory `%s`\", cr_options->work_path);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "06b6575ef44c78695965cde7f3d9ae255fa5bfb1", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 0, "event": "scope_hint", "message": "In function 'prepare_restore_mounts'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 707, "column": 17, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(root, 524288)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 663, "column": 17, "event": "note", "message": "(1) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 665, "column": 23, "event": "note", "message": "(2) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 673, "column": 10, "event": "note", "message": "(3) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(4) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 678, "column": 21, "event": "note", "message": "(5) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 680, "column": 30, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 707, "column": 17, "event": "note", "message": "(7) opened here (8) 'open(root, 524288)' leaks here; was opened at (7)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 705| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 706| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 707|-> root_fd = open (root, O_RDONLY | O_CLOEXEC);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 708| if (UNLIKELY (root_fd == -1))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 709| return crun_make_error (err, errno, \"error opening container root directory `%s`\", root);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "99a813f0437c686c5807fd072241ded77b377977", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_restore_linux_criu'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 765, "column": 14, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(*cr_options.image_path, 589824)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 733, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_restore_linux_criu'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 748, "column": 9, "event": "note", "message": "(2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 116, "column": 1, "event": "note", "message": "(3) entry to 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 118, "column": 52, "event": "note", "message": "(4) calling 'xmalloc0' from 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(5) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 118, "column": 52, "event": "note", "message": "(8) returning to 'load_wrapper' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 748, "column": 9, "event": "note", "message": "(9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 749, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 752, "column": 7, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 752, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 755, "column": 24, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 756, "column": 6, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 759, "column": 24, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 759, "column": 6, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 762, "column": 27, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 762, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 765, "column": 14, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 765, "column": 14, "event": "note", "message": "(20) opened here (21) 'open(*cr_options.image_path, 589824)' leaks here; was opened at (20)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 763| return crun_make_error (err, 0, \"image path not set\");", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 764| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 765|-> image_fd = open (cr_options->image_path, O_DIRECTORY | O_CLOEXEC);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 766| if (UNLIKELY (image_fd == -1))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 767| return crun_make_error (err, errno, \"error opening checkpoint directory `%s`\", cr_options->image_path);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "4792d6860b1e4cccd82a99adaf29681c49883c3f", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 821, "column": 17, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(*cr_options.work_path, 589824)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 733, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_restore_linux_criu'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 748, "column": 9, "event": "note", "message": "(2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 116, "column": 1, "event": "note", "message": "(3) entry to 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 118, "column": 52, "event": "note", "message": "(4) calling 'xmalloc0' from 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(5) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 118, "column": 52, "event": "note", "message": "(8) returning to 'load_wrapper' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 748, "column": 9, "event": "note", "message": "(9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 749, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 752, "column": 7, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 752, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 755, "column": 24, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 756, "column": 6, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 759, "column": 24, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 759, "column": 6, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 762, "column": 27, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 762, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 765, "column": 14, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 766, "column": 6, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 769, "column": 18, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 779, "column": 8, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 782, "column": 11, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 783, "column": 8, "event": "note", "message": "(24) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 792, "column": 12, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 793, "column": 8, "event": "note", "message": "(26) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 155, "column": 49, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 796, "column": 17, "event": "note", "message": "in expansion of macro 'YAJL_IS_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 819, "column": 6, "event": "note", "message": "(28) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 821, "column": 17, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 821, "column": 17, "event": "note", "message": "(30) opened here (31) 'open(*cr_options.work_path, 589824)' leaks here; was opened at (30)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 819| if (cr_options->work_path != NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 820| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 821|-> work_fd = open (cr_options->work_path, O_DIRECTORY | O_CLOEXEC);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 822| if (UNLIKELY (work_fd == -1))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 823| return crun_make_error (err, errno, \"error opening CRIU work directory `%s`\", cr_options->work_path);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "14c4456a77b0e15251da83bd0866b9b530e4d8d3", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 924, "column": 32, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(**_148.path, 0)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 733, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_restore_linux_criu'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 748, "column": 9, "event": "note", "message": "(2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 116, "column": 1, "event": "note", "message": "(3) entry to 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 118, "column": 52, "event": "note", "message": "(4) calling 'xmalloc0' from 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(5) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 118, "column": 52, "event": "note", "message": "(8) returning to 'load_wrapper' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 748, "column": 9, "event": "note", "message": "(9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 749, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 752, "column": 7, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 752, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 755, "column": 24, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 756, "column": 6, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 759, "column": 24, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 759, "column": 6, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 762, "column": 27, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 762, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 765, "column": 14, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 766, "column": 6, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 769, "column": 18, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 779, "column": 8, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 782, "column": 11, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 783, "column": 8, "event": "note", "message": "(24) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 792, "column": 12, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 793, "column": 8, "event": "note", "message": "(26) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 155, "column": 49, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 796, "column": 17, "event": "note", "message": "in expansion of macro 'YAJL_IS_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 877, "column": 6, "event": "note", "message": "(28) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 880, "column": 9, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 881, "column": 6, "event": "note", "message": "(30) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 884, "column": 9, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 885, "column": 6, "event": "note", "message": "(32) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 898, "column": 9, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 899, "column": 6, "event": "note", "message": "(34) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 902, "column": 24, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 903, "column": 6, "event": "note", "message": "(36) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(37) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 915, "column": 17, "event": "note", "message": "(38) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 918, "column": 53, "event": "note", "message": "(39) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 919, "column": 10, "event": "note", "message": "(40) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 922, "column": 10, "event": "note", "message": "(41) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 922, "column": 10, "event": "note", "message": "(42) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 924, "column": 32, "event": "note", "message": "(43) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 924, "column": 32, "event": "note", "message": "(44) opened here (45) 'open(**_148.path, 0)' leaks here; was opened at (44)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 922| if (value == CLONE_NEWNET && def->linux->namespaces[i]->path != NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 923| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 924|-> inherit_new_net_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 925| if (UNLIKELY (inherit_new_net_fd < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 926| return crun_make_error (err, errno, \"unable to open(): `%s`\", def->linux->namespaces[i]->path);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "f61529fe4d53ba8648579cd9ce0b9ce1f25520fc", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 933, "column": 32, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(**_165.path, 0)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 733, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_restore_linux_criu'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 748, "column": 9, "event": "note", "message": "(2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 116, "column": 1, "event": "note", "message": "(3) entry to 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 118, "column": 52, "event": "note", "message": "(4) calling 'xmalloc0' from 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(5) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 118, "column": 52, "event": "note", "message": "(8) returning to 'load_wrapper' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 748, "column": 9, "event": "note", "message": "(9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 749, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 752, "column": 7, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 752, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 755, "column": 24, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 756, "column": 6, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 759, "column": 24, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 759, "column": 6, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 762, "column": 27, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 762, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 765, "column": 14, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 766, "column": 6, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 769, "column": 18, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 779, "column": 8, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 782, "column": 11, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 783, "column": 8, "event": "note", "message": "(24) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 792, "column": 12, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 793, "column": 8, "event": "note", "message": "(26) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 155, "column": 49, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 796, "column": 17, "event": "note", "message": "in expansion of macro 'YAJL_IS_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 877, "column": 6, "event": "note", "message": "(28) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 880, "column": 9, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 881, "column": 6, "event": "note", "message": "(30) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 884, "column": 9, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 885, "column": 6, "event": "note", "message": "(32) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 898, "column": 9, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 899, "column": 6, "event": "note", "message": "(34) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 902, "column": 24, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 903, "column": 6, "event": "note", "message": "(36) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(37) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 915, "column": 17, "event": "note", "message": "(38) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 918, "column": 53, "event": "note", "message": "(39) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 919, "column": 10, "event": "note", "message": "(40) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 922, "column": 10, "event": "note", "message": "(41) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 931, "column": 10, "event": "note", "message": "(42) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 933, "column": 32, "event": "note", "message": "(43) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 933, "column": 32, "event": "note", "message": "(44) opened here (45) 'open(**_165.path, 0)' leaks here; was opened at (44)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 931| if (value == CLONE_NEWPID && def->linux->namespaces[i]->path != NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 932| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 933|-> inherit_new_pid_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 934| if (UNLIKELY (inherit_new_pid_fd < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 935| return crun_make_error (err, errno, \"unable to open(): `%s`\", def->linux->namespaces[i]->path);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 835, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "22442d7526d36768792c3bb7ef9e7c2e32bd150a", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 0, "event": "scope_hint", "message": "In function 'read_all_progs'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 294, "column": 18, "event": "warning[-Wanalyzer-infinite-loop]", "message": "infinite loop", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 363, "column": 1, "event": "note", "message": "(1) entry to 'ebpf_attach_program'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 272, "column": 1, "event": "note", "message": "(2) entry to 'read_all_progs'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(3) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(4) when 'realloc' succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(5) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(6) when 'realloc' succeeds, without moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(7) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(8) when 'realloc' succeeds, without moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(9) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(10) when 'realloc' succeeds, without moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(11) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(12) when 'realloc' succeeds, without moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(13) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(14) when 'realloc' succeeds, without moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(15) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(16) when 'realloc' succeeds, without moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 294, "column": 18, "event": "note", "message": "(17) infinite loop here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 294, "column": 18, "event": "note", "message": "(18) when 'ret < 0': always following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.h", "line": 25, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 294, "column": 21, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 294, "column": 18, "event": "note", "message": "(20) if it ever follows 'true' branch, it will always do so...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(22) looping back...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 294, "column": 18, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 292| ret = bpf (BPF_PROG_QUERY, &attr, sizeof (attr));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 293| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 294|-> while (ret < 0 && errno == ENOSPC)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 295| ;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 296| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 457, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "7c377f3039612bf467a3938c802dd3618087202e", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 0, "event": "scope_hint", "message": "In function 'log_write_to_syslog'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 308, "column": 5, "event": "warning[-Wanalyzer-use-of-uninitialized-value]", "message": "use of uninitialized value 'priority'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 294, "column": 7, "event": "note", "message": "(1) region created on stack here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 294, "column": 7, "event": "note", "message": "(2) capacity: 4 bytes", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(3) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 307, "column": 6, "event": "note", "message": "(4) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 307, "column": 6, "event": "note", "message": "(5) following 'true' branch (when 'errno_ == 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 308, "column": 5, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 308, "column": 5, "event": "note", "message": "(7) use of uninitialized value 'priority' here", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 306| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 307| if (errno_ == 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 308|-> syslog (priority, \"%s\", msg);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 309| else", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 310| syslog (priority, \"%s: %s\", msg, strerror (errno_));", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 457, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "58b4be20b326c331b7e54f7bcfc47a22c0eccc05", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 310, "column": 5, "event": "warning[-Wanalyzer-use-of-uninitialized-value]", "message": "use of uninitialized value 'priority'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 294, "column": 7, "event": "note", "message": "(1) region created on stack here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 294, "column": 7, "event": "note", "message": "(2) capacity: 4 bytes", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(3) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 307, "column": 6, "event": "note", "message": "(4) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 307, "column": 6, "event": "note", "message": "(5) following 'false' branch (when 'errno_ != 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 310, "column": 5, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 310, "column": 5, "event": "note", "message": "(7) use of uninitialized value 'priority' here", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 308| syslog (priority, \"%s\", msg);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 309| else", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 310|-> syslog (priority, \"%s: %s\", msg, strerror (errno_));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 311| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 312| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 457, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "bf42350382213a2c995cb76e65fcf9c172202e2f", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 0, "event": "scope_hint", "message": "In function 'make_json_error'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 407, "column": 3, "event": "warning[-Wanalyzer-use-of-uninitialized-value]", "message": "use of uninitialized value 'level'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 366, "column": 15, "event": "note", "message": "(1) region created on stack here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 366, "column": 15, "event": "note", "message": "(2) capacity: 8 bytes", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(3) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 379, "column": 24, "event": "note", "message": "(4) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 388, "column": 6, "event": "note", "message": "(5) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 391, "column": 3, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.c", "line": 407, "column": 3, "event": "note", "message": "(7) use of uninitialized value 'level' here", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 405| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 406| yajl_gen_string (gen, YAJL_STR (\"level\"), strlen (\"level\"));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 407|-> yajl_gen_string (gen, YAJL_STR (level), strlen (level));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 408| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 409| yajl_gen_string (gen, YAJL_STR (\"time\"), strlen (\"time\"));", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "7ae24832aa6c348920cdb655add4626f4685b739", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 0, "event": "scope_hint", "message": "In function 'libkrun_configure_container'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 186, "column": 37, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(rootfs, 2621440)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 182, "column": 6, "event": "note", "message": "(1) following 'false' branch (when 'rootfs' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 186, "column": 37, "event": "note", "message": "(2) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 186, "column": 37, "event": "note", "message": "(3) opened here (4) 'open(rootfs, 2621440)' leaks here; was opened at (3)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 184| else", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 185| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 186|-> rootfsfd = rootfsfd_cleanup = open (rootfs, O_PATH | O_CLOEXEC);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 187| if (UNLIKELY (rootfsfd < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 188| return crun_make_error (err, errno, \"open `%s`\", rootfs);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 457, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "7ae071f959a5597348c03662a432214b92e83cd5", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 248, "column": 6, "event": "warning[-Wanalyzer-use-of-uninitialized-value]", "message": "use of uninitialized value 'create_sev'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 180, "column": 8, "event": "note", "message": "(1) region created on stack here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 180, "column": 8, "event": "note", "message": "(2) capacity: 1 byte", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 191, "column": 6, "event": "note", "message": "(3) following 'false' branch (when 'phase != 1')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 215, "column": 6, "event": "note", "message": "(4) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 215, "column": 6, "event": "note", "message": "(5) following 'false' branch (when 'phase == 2')...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 225, "column": 6, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 235, "column": 11, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 236, "column": 6, "event": "note", "message": "(9) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 239, "column": 9, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 240, "column": 6, "event": "note", "message": "(11) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 242, "column": 14, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 245, "column": 6, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 248, "column": 6, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 248, "column": 6, "event": "note", "message": "(15) use of uninitialized value 'create_sev' here", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 246| return ret;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 247| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 248|-> if (create_sev)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 249| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 250| ret = libcrun_create_dev (container, devfd, -1, &sev_device, is_user_ns, true, err);", "verbosity_level": 1 } ] }, { "checker": "COMPILER_WARNING", "cwe": 457, "language": "c/c++", "tool": "gcc", "hash_v1": "368e138497c771b3bb4227f56435c393334d8b57", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 0, "event": "scope_hint", "message": "In function 'libkrun_configure_container'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 248, "column": 6, "event": "warning[-Wmaybe-uninitialized]", "message": "'create_sev' may be used uninitialized", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 248 | if (create_sev)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " | ^", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 180, "column": 8, "event": "note", "message": "'create_sev' was declared here", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 180 | bool create_sev;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " | ^~~~~~~~~~", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 246| return ret;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 247| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 248|-> if (create_sev)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 249| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 250| ret = libcrun_create_dev (container, devfd, -1, &sev_device, is_user_ns, true, err);", "verbosity_level": 1 } ] }, { "checker": "COMPILER_WARNING", "cwe": 563, "language": "c/c++", "tool": "gcc", "hash_v1": "e9a48d13002335428565abada1003eb4d7bfd061", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 0, "event": "scope_hint", "message": "In function 'libkrun_load'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 262, "column": 9, "event": "warning[-Wunused-variable]", "message": "unused variable 'handle'", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 262 | void *handle;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " | ^~~~~~", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 260| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 261| struct krun_config *kconf;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 262|-> void *handle;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 263| const char *libkrun_so = \"libkrun.so.1\";", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 264| const char *libkrun_sev_so = \"libkrun-sev.so.1\";", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "a4b7edc366e05472678263127e876f3b17d6f6fb", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 0, "event": "scope_hint", "message": "In function 'resctl_update'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 313, "column": 8, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(path, 524289)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 303, "column": 6, "event": "note", "message": "(1) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 306, "column": 9, "event": "note", "message": "(2) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 307, "column": 6, "event": "note", "message": "(3) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 310, "column": 6, "event": "note", "message": "(4) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 310, "column": 6, "event": "note", "message": "(5) following 'false' branch (when 'l3_cache_schema' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 313, "column": 8, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 313, "column": 8, "event": "note", "message": "(7) opened here (8) 'open(path, 524289)' leaks here; was opened at (7)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 311| l3_cache_schema = cleaned_l3_cache_schema = intelrdt_clean_l3_cache_schema (l3_cache_schema);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 312| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 313|-> fd = open (path, O_WRONLY | O_CLOEXEC);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 314| if (UNLIKELY (fd < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 315| return crun_make_error (err, errno, \"open `%s`\", path);", "verbosity_level": 1 } ] }, { "checker": "COMPILER_WARNING", "language": "c/c++", "tool": "gcc", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/linux.c", "line": 0, "event": "internal warning", "message": "child 11307 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "COMPILER_WARNING", "language": "c/c++", "tool": "gcc", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/linux.c", "line": 0, "event": "internal warning", "message": "child 12971 timed out after 30s", "verbosity_level": 0 } ] }, { "checker": "CPPCHECK_WARNING", "cwe": 457, "language": "c/c++", "tool": "cppcheck", "hash_v1": "7eed1dcd8acaf2393a44a56825f0f00165a50ee5", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/linux.c", "line": 3680, "event": "error[uninitvar]", "message": "Uninitialized variable: code", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 3678| if (UNLIKELY (ret < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3679| return false;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3680|-> *error = code;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3681| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 3682| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "e6c7bf65accc180ea592287e2bdc4999e56ce371", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 0, "event": "scope_hint", "message": "In function 'store_seccomp_cache'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 461, "column": 21, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open_rundir_dirfd(*container_44->context.state_root, err)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 572, "column": 1, "event": "note", "message": "(1) entry to 'store_seccomp_cache'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 580, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 583, "column": 7, "event": "note", "message": "(3) inlined call to 'is_empty_string' from 'store_seccomp_cache'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 395, "column": 24, "event": "note", "message": "(4) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 395, "column": 20, "event": "note", "message": "(5) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 0, "event": "scope_hint", "message": "In function 'store_seccomp_cache'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 586, "column": 39, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 586, "column": 11, "event": "note", "message": "(7) calling 'open_rundir_dirfd' from 'store_seccomp_cache'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 455, "column": 1, "event": "note", "message": "(8) entry to 'open_rundir_dirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 461, "column": 6, "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": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 464, "column": 31, "event": "note", "message": "(11) opened here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 464, "column": 11, "event": "note", "message": "(12) assuming 'open(libcrun_get_state_directory(state_root, 0), 2686976)' is a valid file descriptor (>= 0)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 465, "column": 6, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 457, "column": 22, "event": "note", "message": "(14) inlined call to 'cleanup_freep' from 'open_rundir_dirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 89, "column": 3, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 0, "event": "scope_hint", "message": "In function 'store_seccomp_cache'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 586, "column": 11, "event": "note", "message": "(16) returning to 'store_seccomp_cache' from 'open_rundir_dirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 461, "column": 21, "event": "note", "message": "(17) 'open_rundir_dirfd(*container_44->context.state_root, err)' leaks here; was opened at (11)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 459| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 460| dir = libcrun_get_state_directory (state_root, NULL);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 461|-> if (UNLIKELY (dir == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 462| return crun_make_error (err, 0, \"cannot get state directory\");", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 463| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "a9341f094768508cca202eac70147379395184d1", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_open_seccomp_bpf'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 461, "column": 21, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open_rundir_dirfd(*container_50->context.state_root, err)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 859, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_open_seccomp_bpf'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 868, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 871, "column": 11, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 871, "column": 11, "event": "note", "message": "(4) calling 'open_rundir_dirfd' from 'libcrun_open_seccomp_bpf'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 455, "column": 1, "event": "note", "message": "(5) entry to 'open_rundir_dirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 461, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 464, "column": 31, "event": "note", "message": "(8) opened here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 464, "column": 11, "event": "note", "message": "(9) assuming 'open(libcrun_get_state_directory(state_root, 0), 2686976)' is a valid file descriptor (>= 0)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 465, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 457, "column": 22, "event": "note", "message": "(11) inlined call to 'cleanup_freep' from 'open_rundir_dirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 89, "column": 3, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_open_seccomp_bpf'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 871, "column": 11, "event": "note", "message": "(13) returning to 'libcrun_open_seccomp_bpf' from 'open_rundir_dirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 461, "column": 21, "event": "note", "message": "(14) 'open_rundir_dirfd(*container_50->context.state_root, err)' leaks here; was opened at (8)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 459| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 460| dir = libcrun_get_state_directory (state_root, NULL);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 461|-> if (UNLIKELY (dir == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 462| return crun_make_error (err, 0, \"cannot get state directory\");", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 463| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "83146f707492bcecf1af9cac7995d67f5c244245", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 0, "event": "scope_hint", "message": "In function 'open_rundir_dirfd'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 464, "column": 31, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(libcrun_get_state_directory(state_root, 0), 2686976)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 461, "column": 6, "event": "note", "message": "(1) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(2) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 464, "column": 31, "event": "note", "message": "(3) opened here (4) 'open(libcrun_get_state_directory(state_root, 0), 2686976)' leaks here; was opened at (3)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 462| return crun_make_error (err, 0, \"cannot get state directory\");", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 463| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 464|-> dirfd = TEMP_FAILURE_RETRY (open (dir, O_PATH | O_DIRECTORY | O_CLOEXEC));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 465| if (UNLIKELY (dirfd < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 466| return crun_make_error (err, errno, \"open `%s`\", dir);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "4eb1457499aa2cb427aae063914414bdf8c5cfe6", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 465, "column": 6, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor '<unknown>'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 461, "column": 6, "event": "note", "message": "(1) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(2) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 464, "column": 31, "event": "note", "message": "(3) opened here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 464, "column": 11, "event": "note", "message": "(4) assuming 'open(libcrun_get_state_directory(state_root, 0), 2686976)' is a valid file descriptor (>= 0)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 465, "column": 6, "event": "note", "message": "(5) '<unknown>' leaks here; was opened at (3)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 463| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 464| dirfd = TEMP_FAILURE_RETRY (open (dir, O_PATH | O_DIRECTORY | O_CLOEXEC));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 465|-> if (UNLIKELY (dirfd < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 466| return crun_make_error (err, errno, \"open `%s`\", dir);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 467| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "bcb6c2c4f5421edf6e27e5e73f229c8bf42c59a5", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 0, "event": "scope_hint", "message": "In function 'evict_cache'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 522, "column": 11, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'fdopendir(cache_dir_fd)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 500, "column": 6, "event": "note", "message": "(1) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 503, "column": 30, "event": "note", "message": "(2) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 506, "column": 6, "event": "note", "message": "(3) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(4) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 514, "column": 6, "event": "note", "message": "(5) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 522, "column": 11, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 522, "column": 11, "event": "note", "message": "(7) allocated here (8) 'fdopendir(cache_dir_fd)' leaks here; was allocated at (7)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 520| int dfd;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 521| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 522|-> d = fdopendir (cache_dir_fd);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 523| if (d == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 524| return crun_make_error (err, errno, \"cannot open seccomp cache directory\");", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 688, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "38d0f9779279dbca19509e822c45cb37187d711c", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 562, "column": 7, "event": "warning[-Wanalyzer-null-argument]", "message": "use of NULL 'entries' where non-null expected", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 500, "column": 6, "event": "note", "message": "(1) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 503, "column": 30, "event": "note", "message": "(2) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 506, "column": 6, "event": "note", "message": "(3) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(4) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 514, "column": 6, "event": "note", "message": "(5) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 522, "column": 11, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 523, "column": 10, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 526, "column": 20, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 562, "column": 7, "event": "note", "message": "(9) argument 1 ('entries') NULL where non-null expected", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h", "line": 22, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "/usr/include/stdlib.h", "line": 970, "column": 13, "event": "note", "message": "argument 1 of 'qsort' must be non-null", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 560| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 561| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 562|-> qsort (entries, n_entries, sizeof (struct cache_entry), compare_entries_by_atime);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 563| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 564| /* Attempt to delete half of them. */", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "b8fc2b952dfa753b945693af19dfb34dcfb7d415", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_delete_status'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 12, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'get_run_directory(state_root)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 525, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_delete_status'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 532, "column": 9, "event": "note", "message": "(2) calling 'get_run_directory' from 'libcrun_container_delete_status'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 42, "column": 1, "event": "note", "message": "(3) entry to 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 48, "column": 6, "event": "note", "message": "(4) following 'true' branch (when 'state_root' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 49, "column": 12, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 49, "column": 12, "event": "note", "message": "(6) calling 'xstrdup' from 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(7) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(8) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(10) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(11) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(12) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 49, "column": 12, "event": "note", "message": "(14) returning to 'get_run_directory' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 6, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 63, "column": 12, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 63, "column": 6, "event": "note", "message": "(17) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 66, "column": 9, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 532, "column": 9, "event": "note", "message": "(19) returning to 'libcrun_container_delete_status' from 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 12, "event": "note", "message": "(20) 'get_run_directory(state_root)' leaks here; was allocated at (10)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 48| if (state_root)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 49| root = xstrdup (state_root);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 50|-> if (root == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 51| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 52| const char *runtime_dir = getenv (\"XDG_RUNTIME_DIR\");", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "0e02f22a120bcae15b1edef007ee4bfae4f6d537", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 0, "event": "scope_hint", "message": "In function 'read_pid_stat'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 119, "column": 8, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(&pid_stat_file, 524288)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 643, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_check_pid_valid'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 649, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 652, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 652, "column": 9, "event": "note", "message": "(4) calling 'read_pid_stat' from 'libcrun_check_pid_valid'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 109, "column": 1, "event": "note", "message": "(5) entry to 'read_pid_stat'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 119, "column": 8, "event": "note", "message": "(6) opened here (7) 'open(&pid_stat_file, 524288)' leaks here; was opened at (6)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 117| sprintf (pid_stat_file, \"/proc/%d/stat\", pid);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 118| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 119|-> fd = open (pid_stat_file, O_RDONLY | O_CLOEXEC);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 120| if (fd < 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 121| {", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "9cd9bcdb881f2727508f6316e832138fada51d3a", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 0, "event": "scope_hint", "message": "In function 'rmdirfd'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 474, "column": 7, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'fdopendir(fd)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 474, "column": 7, "event": "note", "message": "(1) allocated here (2) 'fdopendir(fd)' leaks here; was allocated at (1)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 472| __attribute__ ((unused)) cleanup_close int fd_cleanup = fd;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 473| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 474|-> d = fdopendir (fd);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 475| if (d == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 476| return crun_make_error (err, errno, \"cannot open directory `%s`\", namedir);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "c13fe091bf739aada8f6d407c659ff0cb274ba70", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_delete_status'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 536, "column": 36, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(get_run_directory(state_root), 2686976)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 525, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_delete_status'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 532, "column": 9, "event": "note", "message": "(2) calling 'get_run_directory' from 'libcrun_container_delete_status'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 42, "column": 1, "event": "note", "message": "(3) entry to 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 48, "column": 6, "event": "note", "message": "(4) following 'false' branch (when 'state_root' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 12, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 6, "event": "note", "message": "(6) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 52, "column": 33, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 53, "column": 10, "event": "note", "message": "(8) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 55, "column": 17, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 56, "column": 14, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 63, "column": 12, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 67, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 69, "column": 10, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 532, "column": 9, "event": "note", "message": "(14) returning to 'libcrun_container_delete_status' from 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 533, "column": 6, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 536, "column": 36, "event": "note", "message": "(17) opened here (18) 'open(get_run_directory(state_root), 2686976)' leaks here; was opened at (17)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 534| return crun_make_error (err, 0, \"cannot get state directory\");", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 535| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 536|-> rundir_dfd = TEMP_FAILURE_RETRY (open (dir, O_DIRECTORY | O_PATH | O_CLOEXEC));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 537| if (UNLIKELY (rundir_dfd < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 538| return crun_make_error (err, errno, \"cannot open run directory `%s`\", dir);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "24b2550ca8d5d2276dd2ed88cacd5fc86e277bf7", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_delete_status'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 557, "column": 1, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'rundir_dfd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 525, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_delete_status'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 532, "column": 9, "event": "note", "message": "(2) calling 'get_run_directory' from 'libcrun_container_delete_status'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 42, "column": 1, "event": "note", "message": "(3) entry to 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 48, "column": 6, "event": "note", "message": "(4) following 'false' branch (when 'state_root' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 12, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 6, "event": "note", "message": "(6) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 52, "column": 33, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 56, "column": 14, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 63, "column": 12, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 532, "column": 9, "event": "note", "message": "(10) returning to 'libcrun_container_delete_status' from 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 533, "column": 6, "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": "crun-1.18-build/crun-HEAD/src/libcrun/error.h", "line": 42, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.h", "line": 24, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 21, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 536, "column": 36, "event": "note", "message": "(13) opened here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 536, "column": 16, "event": "note", "message": "(14) assuming 'open(get_run_directory(state_root), 2686976)' is a valid file descriptor (>= 0)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 537, "column": 6, "event": "note", "message": "(15) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 24, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 22, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 538, "column": 34, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 529, "column": 21, "event": "note", "message": "(17) inlined call to 'cleanup_closep' from 'libcrun_container_delete_status'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 557, "column": 1, "event": "note", "message": "(20) 'rundir_dfd' leaks here; was opened at (13)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 555| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 556| return 0;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 557|-> }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 558| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 559| void", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "e2fe60be4e4eb71171d1fe0740971b02c09be2fe", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 583, "column": 9, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'opendir(get_run_directory(state_root))'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 575, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_get_containers_list'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 579, "column": 29, "event": "note", "message": "(2) calling 'get_run_directory' from 'libcrun_get_containers_list'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 42, "column": 1, "event": "note", "message": "(3) entry to 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 48, "column": 6, "event": "note", "message": "(4) following 'false' branch (when 'state_root' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 12, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 6, "event": "note", "message": "(6) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 52, "column": 33, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 53, "column": 10, "event": "note", "message": "(8) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 55, "column": 17, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 56, "column": 14, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 63, "column": 12, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 67, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 69, "column": 10, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 579, "column": 29, "event": "note", "message": "(14) returning to 'libcrun_get_containers_list' from 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 583, "column": 9, "event": "note", "message": "(15) allocated here (16) 'opendir(get_run_directory(state_root))' leaks here; was allocated at (15)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 581| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 582| *ret = NULL;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 583|-> dir = opendir (path);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 584| if (UNLIKELY (dir == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 585| return crun_make_error (err, errno, \"cannot opendir `%s`\", path);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 688, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "f650564616be886086359cb060f460ec9a8551d4", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_get_containers_list'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 583, "column": 9, "event": "warning[-Wanalyzer-null-argument]", "message": "use of NULL where non-null expected", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 575, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_get_containers_list'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 579, "column": 29, "event": "note", "message": "(2) calling 'get_run_directory' from 'libcrun_get_containers_list'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 42, "column": 1, "event": "note", "message": "(3) entry to 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 45, "column": 9, "event": "note", "message": "(4) 'root' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 48, "column": 6, "event": "note", "message": "(5) following 'false' branch (when 'state_root' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 12, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 12, "event": "note", "message": "(7) 'root' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 6, "event": "note", "message": "(8) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 52, "column": 33, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 53, "column": 10, "event": "note", "message": "(10) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 55, "column": 17, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 56, "column": 14, "event": "note", "message": "(12) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 58, "column": 15, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 579, "column": 29, "event": "note", "message": "(14) returning to 'libcrun_get_containers_list' from 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 583, "column": 9, "event": "note", "message": "(15) argument 1 ('get_run_directory(state_root)') NULL where non-null expected", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 27, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "/usr/include/dirent.h", "line": 141, "column": 13, "event": "note", "message": "argument 1 of 'opendir' must be non-null", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 581| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 582| *ret = NULL;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 583|-> dir = opendir (path);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 584| if (UNLIKELY (dir == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 585| return crun_make_error (err, errno, \"cannot opendir `%s`\", path);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "2458316217a7fe742b6ae5da2644365546923fd1", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_status_create_exec_fifo'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 693, "column": 8, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(fifo_path, 526336)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 678, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_status_create_exec_fifo'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 680, "column": 34, "event": "note", "message": "(2) calling 'libcrun_get_state_directory' from 'libcrun_status_create_exec_fifo'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 73, "column": 1, "event": "note", "message": "(3) entry to 'libcrun_get_state_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 78, "column": 29, "event": "note", "message": "(4) calling 'get_run_directory' from 'libcrun_get_state_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 42, "column": 1, "event": "note", "message": "(5) entry to 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 48, "column": 6, "event": "note", "message": "(6) following 'false' branch (when 'state_root' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 12, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 6, "event": "note", "message": "(8) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 52, "column": 33, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 78, "column": 29, "event": "note", "message": "(10) returning to 'libcrun_get_state_directory' from 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 81, "column": 6, "event": "note", "message": "(11) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 83, "column": 7, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 680, "column": 34, "event": "note", "message": "(13) returning to 'libcrun_status_create_exec_fifo' from 'libcrun_get_state_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 685, "column": 6, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 688, "column": 3, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 690, "column": 6, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 693, "column": 8, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 693, "column": 8, "event": "note", "message": "(18) opened here (19) 'open(fifo_path, 526336)' leaks here; was opened at (18)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 691| return crun_make_error (err, errno, \"mkfifo\");", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 692| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 693|-> fd = open (fifo_path, O_NONBLOCK | O_CLOEXEC);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 694| if (UNLIKELY (fd < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 695| return crun_make_error (err, errno, \"cannot open pipe `%s`\", fifo_path);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "74ca46f315df863a4ea520acd3ed63ad912ed4de", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_status_write_exec_fifo'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 715, "column": 8, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(fifo_path, 524289)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 701, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_status_write_exec_fifo'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 703, "column": 34, "event": "note", "message": "(2) calling 'libcrun_get_state_directory' from 'libcrun_status_write_exec_fifo'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 73, "column": 1, "event": "note", "message": "(3) entry to 'libcrun_get_state_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 78, "column": 29, "event": "note", "message": "(4) calling 'get_run_directory' from 'libcrun_get_state_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 42, "column": 1, "event": "note", "message": "(5) entry to 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 48, "column": 6, "event": "note", "message": "(6) following 'false' branch (when 'state_root' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 12, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 6, "event": "note", "message": "(8) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 52, "column": 33, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 78, "column": 29, "event": "note", "message": "(10) returning to 'libcrun_get_state_directory' from 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 81, "column": 6, "event": "note", "message": "(11) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 83, "column": 7, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 703, "column": 34, "event": "note", "message": "(13) returning to 'libcrun_status_write_exec_fifo' from 'libcrun_get_state_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 712, "column": 6, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 715, "column": 8, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 715, "column": 8, "event": "note", "message": "(16) opened here (17) 'open(fifo_path, 524289)' leaks here; was opened at (16)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 713| return ret;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 714| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 715|-> fd = open (fifo_path, O_WRONLY | O_CLOEXEC);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 716| if (UNLIKELY (fd < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 717| return crun_make_error (err, errno, \"cannot open `%s`\", fifo_path);", "verbosity_level": 1 } ] }, { "checker": "COMPILER_WARNING", "cwe": 457, "language": "c/c++", "tool": "gcc", "hash_v1": "3170836c456f098da3a2661772d4108d2432d952", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 0, "event": "scope_hint", "message": "In function 'format_default_id_mapping'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1560, "column": 12, "event": "warning[-Wmaybe-uninitialized]", "message": "'from' may be used uninitialized", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 1560 | from += used;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " | ^~", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1544, "column": 12, "event": "note", "message": "'from' was declared here", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1544 | uint32_t from, available;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " | ^~~~", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1558| uint32_t used = MIN (container_id, available);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1559| written += sprintf (buffer + written, \"%d %d %d\\n\", 0, from, used);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1560|-> from += used;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1561| available -= used;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1562| }", "verbosity_level": 1 } ] }, { "checker": "COMPILER_WARNING", "cwe": 457, "language": "c/c++", "tool": "gcc", "hash_v1": "9df9eefcd54bfbfe9761ddd0bba69137b0edf8ec", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1561, "column": 17, "event": "warning[-Wmaybe-uninitialized]", "message": "'available' may be used uninitialized", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 1561 | available -= used;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " | ^~", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1544, "column": 18, "event": "note", "message": "'available' was declared here", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1544 | uint32_t from, available;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " | ^~~~~~~~~", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1559| written += sprintf (buffer + written, \"%d %d %d\\n\", 0, from, used);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1560| from += used;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1561|-> available -= used;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1562| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1563| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "d8af44efd029c048ce0688019d8487668ed4620f", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 0, "event": "scope_hint", "message": "In function 'copy_recursive_fd_to_fd'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2085, "column": 12, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'fdopendir(srcdirfd)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2085, "column": 12, "event": "note", "message": "(1) allocated here (2) 'fdopendir(srcdirfd)' leaks here; was allocated at (1)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 2083| struct dirent *de;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2084| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2085|-> dsrcfd = fdopendir (srcdirfd);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2086| if (UNLIKELY (dsrcfd == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2087| {", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "90d0d8e5ebcee2869f4e73585d18a96362e16779", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2088, "column": 27, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'srcdirfd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2086, "column": 6, "event": "note", "message": "(1) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(2) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2088, "column": 27, "event": "note", "message": "(3) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2088, "column": 7, "event": "note", "message": "(4) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2088, "column": 27, "event": "note", "message": "(6) second 'close' here; first 'close' was at (3)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 2086| if (UNLIKELY (dsrcfd == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2087| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2088|-> TEMP_FAILURE_RETRY (close (srcdirfd));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2089| return crun_make_error (err, errno, \"cannot open directory `%s`\", destname);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2090| }", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "1ba126001d4204e94116627e8b50099b45dc415e", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2132, "column": 31, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'destfd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2079, "column": 1, "event": "note", "message": "(1) entry to 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2086, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2092, "column": 13, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2092, "column": 31, "event": "note", "message": "(4) following 'true' branch (when 'de' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2094, "column": 25, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2104, "column": 10, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2037, "column": 1, "event": "note", "message": "(9) entry to 'copy_rec_stat_file_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2049, "column": 6, "event": "note", "message": "(10) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2051, "column": 11, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2108, "column": 10, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2111, "column": 20, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2111, "column": 7, "event": "note", "message": "(15) following 'case 32768:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2113, "column": 9, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2115, "column": 14, "event": "note", "message": "(17) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2118, "column": 20, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2119, "column": 14, "event": "note", "message": "(19) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2122, "column": 17, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2123, "column": 14, "event": "note", "message": "(21) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2127, "column": 23, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2128, "column": 14, "event": "note", "message": "(23) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2132, "column": 31, "event": "note", "message": "(25) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2132, "column": 11, "event": "note", "message": "(26) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2132, "column": 31, "event": "note", "message": "(28) second 'close' here; first 'close' was at (25)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 2130| #endif", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2131| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2132|-> TEMP_FAILURE_RETRY (close (destfd));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2133| destfd = -1;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2134| break;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 688, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "38419c36cfa1876ee8a02c9e27df59d19947c14b", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2166, "column": 17, "event": "warning[-Wanalyzer-null-argument]", "message": "use of NULL 'target_buf' where non-null expected", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2079, "column": 1, "event": "note", "message": "(1) entry to 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2086, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2092, "column": 13, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2092, "column": 31, "event": "note", "message": "(4) following 'true' branch (when 'de' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2094, "column": 25, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2096, "column": 26, "event": "note", "message": "(6) 'target_buf' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2104, "column": 10, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(9) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2037, "column": 1, "event": "note", "message": "(10) entry to 'copy_rec_stat_file_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2049, "column": 6, "event": "note", "message": "(11) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2051, "column": 11, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(13) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2108, "column": 10, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2111, "column": 20, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2111, "column": 7, "event": "note", "message": "(16) following 'case 40960:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2161, "column": 9, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2162, "column": 17, "event": "note", "message": "(18) calling 'safe_readlinkat' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 420, "column": 1, "event": "note", "message": "(19) entry to 'safe_readlinkat'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 428, "column": 10, "event": "note", "message": "(20) following 'false' branch (when 'tmp_buf' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 432, "column": 45, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 432, "column": 17, "event": "note", "message": "(22) calling 'xrealloc' from 'safe_readlinkat'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(23) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(24) when 'realloc' succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 6, "event": "note", "message": "(25) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 82, "column": 10, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 432, "column": 17, "event": "note", "message": "(27) returning to 'safe_readlinkat' from 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2162, "column": 17, "event": "note", "message": "(28) returning to 'copy_recursive_fd_to_fd' from 'safe_readlinkat'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2163, "column": 14, "event": "note", "message": "(29) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2166, "column": 17, "event": "note", "message": "(30) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2166, "column": 17, "event": "note", "message": "(31) 'target_buf' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2166, "column": 17, "event": "note", "message": "(32) 'target_buf' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2166, "column": 17, "event": "note", "message": "(33) argument 1 ('target_buf') NULL where non-null expected", "verbosity_level": 2 }, { "file_name": "/usr/include/unistd.h", "line": 847, "column": 12, "event": "note", "message": "argument 1 of 'symlinkat' must be non-null", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2164| return ret;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2165| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2166|-> ret = symlinkat (target_buf, destdirfd, de->d_name);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2167| if (UNLIKELY (ret < 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2168| return crun_make_error (err, errno, \"create symlink `%s/%s`\", destname, de->d_name);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 688, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "7e8ec8f3d53f535cebbceaddb53428fe772b348a", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 0, "event": "scope_hint", "message": "In function 'read_file_as_long_or_default'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2491, "column": 9, "event": "warning[-Wanalyzer-null-argument]", "message": "use of NULL 'content' where non-null expected", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2477, "column": 22, "event": "note", "message": "(1) 'content' is NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2484, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2490, "column": 3, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2491, "column": 9, "event": "note", "message": "(4) argument 1 ('content') NULL where non-null expected", "verbosity_level": 2 }, { "file_name": "/usr/include/features.h", "line": 511, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "/usr/include/bits/libc-header-start.h", "line": 33, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "/usr/include/stdio.h", "line": 28, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 22, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "/usr/include/stdlib.h", "line": 215, "column": 17, "event": "note", "message": "argument 1 of 'strtol' must be non-null", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2489| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2490| errno = 0;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2491|-> val = strtol (content, &endptr, 10);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2492| if (UNLIKELY (errno))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 2493| return def_value;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "d89134b054709f61c0b028e20b5c62eae5c1e5e8", "key_event_idx": 2, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 23, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'resctl_update'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'intelrdt_clean_l3_cache_schema(l3_cache_schema)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 295, "column": 1, "event": "note", "message": "(1) entry to 'resctl_update'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 303, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 306, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 307, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 310, "column": 6, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 310, "column": 6, "event": "note", "message": "(6) following 'true' branch (when 'l3_cache_schema' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 310, "column": 26, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 310, "column": 26, "event": "note", "message": "(8) when 'strstr' returns non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 310, "column": 23, "event": "note", "message": "(9) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 311, "column": 49, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 311, "column": 49, "event": "note", "message": "(11) calling 'intelrdt_clean_l3_cache_schema' from 'resctl_update'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 210, "column": 1, "event": "note", "message": "(12) entry to 'intelrdt_clean_l3_cache_schema'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 215, "column": 9, "event": "note", "message": "(13) calling 'xmalloc' from 'intelrdt_clean_l3_cache_schema'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(14) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 61, "column": 15, "event": "note", "message": "(15) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(16) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(17) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 215, "column": 9, "event": "note", "message": "(19) returning to 'intelrdt_clean_l3_cache_schema' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 311, "column": 49, "event": "note", "message": "(20) returning to 'resctl_update' from 'intelrdt_clean_l3_cache_schema'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "note", "message": "(21) 'intelrdt_clean_l3_cache_schema(l3_cache_schema)' leaks here; was allocated at (15)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 60| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 61| void *res = malloc (size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 62|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 63| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 64| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "903d74405c483a99b31c94d37cc107a79fa307a2", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'safe_read_xattr'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xmalloc((long unsigned int)(current_size + 1))'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1953, "column": 1, "event": "note", "message": "(1) entry to 'safe_read_xattr'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1960, "column": 12, "event": "note", "message": "(2) calling 'xmalloc' from 'safe_read_xattr'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(3) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 61, "column": 15, "event": "note", "message": "(4) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(5) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1960, "column": 12, "event": "note", "message": "(8) returning to 'safe_read_xattr' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "note", "message": "(9) 'xmalloc((long unsigned int)(current_size + 1))' leaks here; was allocated at (4)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 60| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 61| void *res = malloc (size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 62|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 63| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 64| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "cfcbee2ca0dc398f7e8d235067db2ccdd0db266f", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'copy_xattr'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xmalloc((long unsigned int)(xattr_len + 1))'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1988, "column": 1, "event": "note", "message": "(1) entry to 'copy_xattr'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1995, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2003, "column": 6, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2003, "column": 6, "event": "note", "message": "(4) following 'false' branch (when 'xattr_len != 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2006, "column": 28, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2006, "column": 9, "event": "note", "message": "(6) calling 'xmalloc' from 'copy_xattr'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(7) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 61, "column": 15, "event": "note", "message": "(8) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(9) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2006, "column": 9, "event": "note", "message": "(12) returning to 'copy_xattr' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "note", "message": "(13) 'xmalloc((long unsigned int)(xattr_len + 1))' leaks here; was allocated at (8)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 60| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 61| void *res = malloc (size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 62|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 63| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 64| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "80489e0dcb3709467e485ea8fcf6ffe0f56d3c4a", "key_event_idx": 2, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 32, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_load_seccomp_notify_plugins'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xmalloc((long unsigned int)*(struct seccomp_notify_context_s *)<unknown>.sizes.seccomp_notif)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 83, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_load_seccomp_notify_plugins'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 87, "column": 73, "event": "note", "message": "(2) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(3) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 87, "column": 73, "event": "note", "message": "(6) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 92, "column": 6, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 95, "column": 34, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 95, "column": 15, "event": "note", "message": "(9) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(10) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 61, "column": 15, "event": "note", "message": "(11) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(12) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 95, "column": 15, "event": "note", "message": "(15) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "note", "message": "(16) 'xmalloc((long unsigned int)*(struct seccomp_notify_context_s *)<unknown>.sizes.seccomp_notif)' leaks here; was allocated at (11)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 60| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 61| void *res = malloc (size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 62|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 63| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 64| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "3bf83e75f3b4675273f5f34cb78c57d8606aab66", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xmalloc((long unsigned int)*(struct seccomp_notify_context_s *)<unknown>.sizes.seccomp_notif_resp)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 83, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_load_seccomp_notify_plugins'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 87, "column": 73, "event": "note", "message": "(2) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(3) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 87, "column": 73, "event": "note", "message": "(6) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 92, "column": 6, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 95, "column": 34, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 95, "column": 15, "event": "note", "message": "(9) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(10) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(11) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 95, "column": 15, "event": "note", "message": "(13) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 96, "column": 16, "event": "note", "message": "(14) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(15) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 61, "column": 15, "event": "note", "message": "(16) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(17) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 96, "column": 16, "event": "note", "message": "(20) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "note", "message": "(21) 'xmalloc((long unsigned int)*(struct seccomp_notify_context_s *)<unknown>.sizes.seccomp_notif_resp)' leaks here; was allocated at (16)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 60| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 61| void *res = malloc (size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 62|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 63| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 64| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "1f137e0e87fab4318b08038316e14fb44881c9bc", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'compare_rdt_configurations'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xmalloc((n_parts_a + 1) * 8)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 233, "column": 1, "event": "note", "message": "(1) entry to 'resctl_create'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 241, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 243, "column": 6, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 243, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 246, "column": 9, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 247, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 250, "column": 11, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 251, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 254, "column": 6, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 254, "column": 6, "event": "note", "message": "(10) following 'true' branch (when 'l3_cache_schema' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 254, "column": 26, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 254, "column": 26, "event": "note", "message": "(12) when 'strstr' returns NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 254, "column": 23, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 259, "column": 43, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 259, "column": 6, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 268, "column": 6, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 268, "column": 6, "event": "note", "message": "(17) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 269, "column": 12, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 269, "column": 12, "event": "note", "message": "(19) calling 'validate_rdt_configuration' from 'resctl_create'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 158, "column": 1, "event": "note", "message": "(20) entry to 'validate_rdt_configuration'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 166, "column": 6, "event": "note", "message": "(21) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 169, "column": 9, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 170, "column": 6, "event": "note", "message": "(23) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 173, "column": 7, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 174, "column": 10, "event": "note", "message": "(25) following 'true' branch (when 'it' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 178, "column": 10, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 178, "column": 10, "event": "note", "message": "(27) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 179, "column": 15, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 179, "column": 15, "event": "note", "message": "(29) calling 'compare_rdt_configurations' from 'validate_rdt_configuration'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 98, "column": 1, "event": "note", "message": "(30) entry to 'compare_rdt_configurations'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 108, "column": 8, "event": "note", "message": "(31) when 'strchr' returns NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 109, "column": 19, "event": "note", "message": "(32) following 'false' branch (when 'it' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 111, "column": 8, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 111, "column": 8, "event": "note", "message": "(34) when 'strchr' returns NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 112, "column": 19, "event": "note", "message": "(35) following 'false' branch (when 'it' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 114, "column": 15, "event": "note", "message": "(36) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 117, "column": 6, "event": "note", "message": "(37) following 'false' branch (when 'n_parts_a == n_parts_b')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 120, "column": 56, "event": "note", "message": "(38) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 120, "column": 8, "event": "note", "message": "(39) calling 'xmalloc' from 'compare_rdt_configurations'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(40) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 61, "column": 15, "event": "note", "message": "(41) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(42) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(43) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(44) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 120, "column": 8, "event": "note", "message": "(45) returning to 'compare_rdt_configurations' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "note", "message": "(46) 'xmalloc((n_parts_a + 1) * 8)' leaks here; was allocated at (41)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 60| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 61| void *res = malloc (size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 62|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 63| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 64| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "8f2b5b79dd955ee9991e98e71e899a9164826364", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'test_write_read_file'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xmalloc(1024)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 190, "column": 1, "event": "note", "message": "(1) entry to 'test_write_read_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 198, "column": 32, "event": "note", "message": "(2) calling 'xmalloc' from 'test_write_read_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(3) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 61, "column": 15, "event": "note", "message": "(4) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(5) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 198, "column": 32, "event": "note", "message": "(8) returning to 'test_write_read_file' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "note", "message": "(9) 'xmalloc(1024)' leaks here; was allocated at (4)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 60| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 61| void *res = malloc (size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 62|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 63| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 64| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "185bb671affb519c55ff7be6a95b5394b7b78072", "key_event_idx": 2, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 21, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'read_dir_entries'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xmalloc(128)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2542, "column": 1, "event": "note", "message": "(1) entry to 'read_dir_entries'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2551, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2557, "column": 13, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2557, "column": 13, "event": "note", "message": "(4) calling 'xmalloc' from 'read_dir_entries'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(5) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 61, "column": 15, "event": "note", "message": "(6) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(7) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2557, "column": 13, "event": "note", "message": "(10) returning to 'read_dir_entries' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "note", "message": "(11) 'xmalloc(128)' leaks here; was allocated at (6)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 60| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 61| void *res = malloc (size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 62|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 63| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 64| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "48d00940b2b6b69efe682136303cbc06f733615d", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_get_containers_list'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xmalloc(16)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 575, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_get_containers_list'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 579, "column": 29, "event": "note", "message": "(2) calling 'get_run_directory' from 'libcrun_get_containers_list'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 42, "column": 1, "event": "note", "message": "(3) entry to 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 48, "column": 6, "event": "note", "message": "(4) following 'false' branch (when 'state_root' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 12, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 6, "event": "note", "message": "(6) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 52, "column": 33, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 56, "column": 14, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 63, "column": 12, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 579, "column": 29, "event": "note", "message": "(10) returning to 'libcrun_get_containers_list' from 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 584, "column": 6, "event": "note", "message": "(11) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 587, "column": 15, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 587, "column": 30, "event": "note", "message": "(13) following 'true' branch (when 'next' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 590, "column": 26, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 594, "column": 10, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 597, "column": 54, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 598, "column": 10, "event": "note", "message": "(17) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 601, "column": 16, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 602, "column": 10, "event": "note", "message": "(19) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 607, "column": 10, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 607, "column": 10, "event": "note", "message": "(21) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 613, "column": 24, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 613, "column": 24, "event": "note", "message": "(23) calling 'xmalloc' from 'libcrun_get_containers_list'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(24) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 61, "column": 15, "event": "note", "message": "(25) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(26) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(27) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 613, "column": 24, "event": "note", "message": "(29) returning to 'libcrun_get_containers_list' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "note", "message": "(30) 'xmalloc(16)' leaks here; was allocated at (25)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 60| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 61| void *res = malloc (size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 62|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 63| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 64| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "ffcf8b9990aeaf38c380ee996b437d8cbcfc33d9", "key_event_idx": 2, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 29, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'crun_command_exec'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xmalloc(88)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 245, "column": 1, "event": "note", "message": "(1) entry to 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 264, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 267, "column": 37, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 272, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 278, "column": 19, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 278, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 282, "column": 17, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 282, "column": 17, "event": "note", "message": "(8) calling 'xmalloc0' from 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(9) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 282, "column": 17, "event": "note", "message": "(12) returning to 'crun_command_exec' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 286, "column": 23, "event": "note", "message": "(13) calling 'xmalloc0' from 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(14) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 286, "column": 23, "event": "note", "message": "(17) returning to 'crun_command_exec' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 287, "column": 21, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 289, "column": 14, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 290, "column": 10, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 292, "column": 39, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 295, "column": 23, "event": "note", "message": "(22) calling 'make_oci_process_user' from 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 202, "column": 1, "event": "note", "message": "(23) entry to 'make_oci_process_user'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 207, "column": 6, "event": "note", "message": "(24) following 'true' branch (when 'userspec' is NULL)...", "verbosity_level": 2 }, { "file_name": "/usr/include/bits/types/stack_t.h", "line": 23, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "/usr/include/signal.h", "line": 313, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 29, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 208, "column": 12, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 295, "column": 23, "event": "note", "message": "(26) returning to 'crun_command_exec' from 'make_oci_process_user'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 297, "column": 10, "event": "note", "message": "(27) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 300, "column": 23, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 300, "column": 10, "event": "note", "message": "(29) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 303, "column": 23, "event": "note", "message": "(30) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 303, "column": 10, "event": "note", "message": "(31) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 306, "column": 17, "event": "note", "message": "(32) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 306, "column": 17, "event": "note", "message": "(33) calling 'xmalloc' from 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(34) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 61, "column": 15, "event": "note", "message": "(35) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(36) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(37) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(38) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 306, "column": 17, "event": "note", "message": "(39) returning to 'crun_command_exec' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "note", "message": "(40) 'xmalloc(88)' leaks here; was allocated at (35)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 60| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 61| void *res = malloc (size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 62|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 63| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 64| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "6292c55fb74a3ed57081b3d6d4e7673dcbaa8042", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'read_all_fd_with_size_hint'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xmalloc(allocated + 1)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2475, "column": 1, "event": "note", "message": "(1) entry to 'read_file_as_long_or_default'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2483, "column": 9, "event": "note", "message": "(2) calling 'read_all_file' from 'read_file_as_long_or_default'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1050, "column": 1, "event": "note", "message": "(3) entry to 'read_all_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1055, "column": 10, "event": "note", "message": "(4) calling 'read_all_file_at' from 'read_all_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1038, "column": 1, "event": "note", "message": "(5) entry to 'read_all_file_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1043, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1046, "column": 10, "event": "note", "message": "(7) inlined call to 'read_all_fd' from 'read_all_file_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 305, "column": 10, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 305, "column": 10, "event": "note", "message": "(9) calling 'read_all_fd_with_size_hint' from 'read_all_file_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 0, "event": "scope_hint", "message": "In function 'read_all_fd_with_size_hint'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 975, "column": 1, "event": "note", "message": "(10) entry to 'read_all_fd_with_size_hint'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 983, "column": 6, "event": "note", "message": "(11) following 'false' branch (when 'size_hint == 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 987, "column": 13, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 987, "column": 13, "event": "note", "message": "(13) calling 'get_file_size' from 'read_all_fd_with_size_hint'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 657, "column": 1, "event": "note", "message": "(14) entry to 'get_file_size'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 667, "column": 6, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 673, "column": 14, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 987, "column": 13, "event": "note", "message": "(17) returning to 'read_all_fd_with_size_hint' from 'get_file_size'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 988, "column": 10, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 991, "column": 24, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 995, "column": 9, "event": "note", "message": "(20) calling 'xmalloc' from 'read_all_fd_with_size_hint'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(21) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 61, "column": 15, "event": "note", "message": "(22) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(23) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(24) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 995, "column": 9, "event": "note", "message": "(26) returning to 'read_all_fd_with_size_hint' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "note", "message": "(27) 'xmalloc(allocated + 1)' leaks here; was allocated at (22)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 60| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 61| void *res = malloc (size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 62|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 63| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 64| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "622c39b7881963e6d739a1e39a5f97d4fa8d68da", "key_event_idx": 3, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-internal.h", "line": 22, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 23, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'write_controller_file'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xmalloc(controllers_len + 1)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 758, "column": 1, "event": "note", "message": "(1) entry to 'write_controller_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 773, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 775, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 776, "column": 6, "event": "note", "message": "(4) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 778, "column": 45, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 778, "column": 45, "event": "note", "message": "(6) calling 'xmalloc' from 'write_controller_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(7) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 61, "column": 15, "event": "note", "message": "(8) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(9) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 778, "column": 45, "event": "note", "message": "(12) returning to 'write_controller_file' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "note", "message": "(13) 'xmalloc(controllers_len + 1)' leaks here; was allocated at (8)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 60| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 61| void *res = malloc (size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 62|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 63| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 64| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "685840e5586dade6f36cbd1e9809f045d4d078a7", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'copy_from_fd_to_fd'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xmalloc(get_page_size())'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2079, "column": 1, "event": "note", "message": "(1) entry to 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2086, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2092, "column": 13, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2092, "column": 31, "event": "note", "message": "(4) following 'true' branch (when 'de' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2094, "column": 25, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2104, "column": 10, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2037, "column": 1, "event": "note", "message": "(9) entry to 'copy_rec_stat_file_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2049, "column": 6, "event": "note", "message": "(10) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 24, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2051, "column": 11, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2108, "column": 10, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2111, "column": 20, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2111, "column": 7, "event": "note", "message": "(15) following 'case 32768:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2113, "column": 9, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2115, "column": 14, "event": "note", "message": "(17) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2118, "column": 20, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2119, "column": 14, "event": "note", "message": "(19) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2122, "column": 17, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2122, "column": 17, "event": "note", "message": "(21) calling 'copy_from_fd_to_fd' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1279, "column": 1, "event": "note", "message": "(22) entry to 'copy_from_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1304, "column": 16, "event": "note", "message": "(23) calling 'xmalloc' from 'copy_from_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(24) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 61, "column": 15, "event": "note", "message": "(25) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(26) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(27) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1304, "column": 16, "event": "note", "message": "(29) returning to 'copy_from_fd_to_fd' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "note", "message": "(30) 'xmalloc(get_page_size())' leaks here; was allocated at (25)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 60| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 61| void *res = malloc (size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 62|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 63| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 64| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "145cab06debec5869b7d670f6a94c6599da1426c", "key_event_idx": 2, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 25, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_copy_seccomp'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xmalloc(in_size + 1)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 836, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_copy_seccomp'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 845, "column": 14, "event": "note", "message": "(2) calling 'xmalloc' from 'libcrun_copy_seccomp'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(3) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 61, "column": 15, "event": "note", "message": "(4) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(5) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 845, "column": 14, "event": "note", "message": "(8) returning to 'libcrun_copy_seccomp' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 21, "event": "note", "message": "(9) 'xmalloc(in_size + 1)' leaks here; was allocated at (4)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 60| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 61| void *res = malloc (size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 62|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 63| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 64| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "d839e7ce7d9f804dc178941c162053b5584368a5", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_restore'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'libcrun_container_load_from_file(\"config.json\", err)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4209, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_restore'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4221, "column": 15, "event": "note", "message": "(2) calling 'libcrun_container_load_from_file' from 'libcrun_container_restore'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 572, "column": 1, "event": "note", "message": "(3) entry to 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 578, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(6) calling 'make_container' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 541, "column": 1, "event": "note", "message": "(7) entry to 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(8) calling 'xmalloc0' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(9) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 70, "column": 15, "event": "note", "message": "(10) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(11) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(14) returning to 'make_container' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 549, "column": 6, "event": "note", "message": "(15) following 'true' branch (when 'path' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 550, "column": 30, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 550, "column": 30, "event": "note", "message": "(17) calling 'xstrdup' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(18) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(19) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(21) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 550, "column": 30, "event": "note", "message": "(23) returning to 'make_container' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 551, "column": 6, "event": "note", "message": "(24) following 'false' branch (when 'config' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 554, "column": 10, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(26) returning to 'libcrun_container_load_from_file' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4221, "column": 15, "event": "note", "message": "(27) returning to 'libcrun_container_restore' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "note", "message": "(28) 'libcrun_container_load_from_file(\"config.json\", err)' leaks here; was allocated at (10)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 69| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 70| void *res = calloc (1, size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 71|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 72| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 73| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "b956bc59005c0142a318cd4ec41e9224a0623df6", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_update_intel_rdt'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'libcrun_container_load_from_file(config_file, err)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4437, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_update_intel_rdt'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4445, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4448, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4449, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4452, "column": 15, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4452, "column": 15, "event": "note", "message": "(6) calling 'libcrun_container_load_from_file' from 'libcrun_container_update_intel_rdt'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 572, "column": 1, "event": "note", "message": "(7) entry to 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 578, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(10) calling 'make_container' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 541, "column": 1, "event": "note", "message": "(11) entry to 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(12) calling 'xmalloc0' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(13) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 70, "column": 15, "event": "note", "message": "(14) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(15) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(18) returning to 'make_container' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 549, "column": 6, "event": "note", "message": "(19) following 'false' branch (when 'path' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 551, "column": 6, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 551, "column": 6, "event": "note", "message": "(21) following 'false' branch (when 'config' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 554, "column": 10, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(23) returning to 'libcrun_container_load_from_file' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4452, "column": 15, "event": "note", "message": "(24) returning to 'libcrun_container_update_intel_rdt' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "note", "message": "(25) 'libcrun_container_load_from_file(config_file, err)' leaks here; was allocated at (14)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 69| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 70| void *res = calloc (1, size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 71|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 72| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 73| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "1a349258689258508e2d3a7ee756e048814609ad", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_load_from_file'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'make_container(runtime_spec_schema_config_schema_parse_file(path, 0, & oci_error), path, 0)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4437, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_update_intel_rdt'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4445, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4448, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4449, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4452, "column": 15, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4452, "column": 15, "event": "note", "message": "(6) calling 'libcrun_container_load_from_file' from 'libcrun_container_update_intel_rdt'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 572, "column": 1, "event": "note", "message": "(7) entry to 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 578, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(10) calling 'make_container' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 541, "column": 1, "event": "note", "message": "(11) entry to 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(12) calling 'xmalloc0' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(13) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 70, "column": 15, "event": "note", "message": "(14) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(15) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(18) returning to 'make_container' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 549, "column": 6, "event": "note", "message": "(19) following 'false' branch (when 'path' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 551, "column": 6, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 551, "column": 6, "event": "note", "message": "(21) following 'false' branch (when 'config' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 554, "column": 10, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(23) returning to 'libcrun_container_load_from_file' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "note", "message": "(24) 'make_container(runtime_spec_schema_config_schema_parse_file(path, 0, & oci_error), path, 0)' leaks here; was allocated at (14)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 69| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 70| void *res = calloc (1, size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 71|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 72| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 73| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "513f5155e39467fddc63ce0c0be278d6d6657241", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'crun_command_exec'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'make_oci_process_user(exec_options.user)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 245, "column": 1, "event": "note", "message": "(1) entry to 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 264, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 267, "column": 37, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 278, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 282, "column": 17, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 282, "column": 17, "event": "note", "message": "(6) calling 'xmalloc0' from 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(7) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 282, "column": 17, "event": "note", "message": "(10) returning to 'crun_command_exec' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 286, "column": 23, "event": "note", "message": "(11) calling 'xmalloc0' from 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(12) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 286, "column": 23, "event": "note", "message": "(15) returning to 'crun_command_exec' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 287, "column": 21, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 289, "column": 14, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 290, "column": 10, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 292, "column": 39, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 295, "column": 23, "event": "note", "message": "(20) calling 'make_oci_process_user' from 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 202, "column": 1, "event": "note", "message": "(21) entry to 'make_oci_process_user'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 207, "column": 6, "event": "note", "message": "(22) following 'false' branch (when 'userspec' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 210, "column": 7, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 210, "column": 7, "event": "note", "message": "(24) calling 'xmalloc0' from 'make_oci_process_user'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(25) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 70, "column": 15, "event": "note", "message": "(26) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(27) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(28) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 210, "column": 7, "event": "note", "message": "(30) returning to 'make_oci_process_user' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 213, "column": 6, "event": "note", "message": "(31) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 215, "column": 7, "event": "note", "message": "(32) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 215, "column": 6, "event": "note", "message": "(33) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(34) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 295, "column": 23, "event": "note", "message": "(35) returning to 'crun_command_exec' from 'make_oci_process_user'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "note", "message": "(36) 'make_oci_process_user(exec_options.user)' leaks here; was allocated at (26)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 69| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 70| void *res = calloc (1, size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 71|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 72| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 73| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "81887c7c8b93210c9a60f3e4925249703e5bafe3", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xmalloc0((long unsigned int)(argc + 1) * 8)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 245, "column": 1, "event": "note", "message": "(1) entry to 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 264, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 267, "column": 37, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 272, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 278, "column": 19, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 278, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 282, "column": 17, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 282, "column": 17, "event": "note", "message": "(8) calling 'xmalloc0' from 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(9) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 282, "column": 17, "event": "note", "message": "(12) returning to 'crun_command_exec' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 286, "column": 23, "event": "note", "message": "(13) calling 'xmalloc0' from 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(14) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 70, "column": 15, "event": "note", "message": "(15) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(16) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(17) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 286, "column": 23, "event": "note", "message": "(19) returning to 'crun_command_exec' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "note", "message": "(20) 'xmalloc0((long unsigned int)(argc + 1) * 8)' leaks here; was allocated at (15)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 69| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 70| void *res = calloc (1, size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 71|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 72| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 73| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "25e509c9c8124b76b6b647edfbc1141d4665f56a", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'retrieve_mount_options'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xmalloc0((num_mount_options + 1) * 8)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4013, "column": 1, "event": "note", "message": "(1) entry to 'retrieve_mount_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4026, "column": 28, "event": "note", "message": "(2) calling 'xmalloc0' from 'retrieve_mount_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(3) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 70, "column": 15, "event": "note", "message": "(4) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(5) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4026, "column": 28, "event": "note", "message": "(8) returning to 'retrieve_mount_options' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "note", "message": "(9) 'xmalloc0((num_mount_options + 1) * 8)' leaks here; was allocated at (4)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 69| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 70| void *res = calloc (1, size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 71|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 72| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 73| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "a4c7d8e0cfb87da9b365e3a068161d15649e4ca7", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xmalloc0(120)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3803, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_update'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3817, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3820, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3821, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3824, "column": 9, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3829, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3832, "column": 9, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3833, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3836, "column": 15, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3837, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3843, "column": 7, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3843, "column": 6, "event": "note", "message": "(12) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3846, "column": 62, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3846, "column": 62, "event": "note", "message": "(14) calling 'xmalloc0' from 'libcrun_container_update'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(15) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3846, "column": 62, "event": "note", "message": "(18) returning to 'libcrun_container_update' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3847, "column": 61, "event": "note", "message": "(19) calling 'xmalloc0' from 'libcrun_container_update'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(20) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 70, "column": 15, "event": "note", "message": "(21) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(22) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(23) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3847, "column": 61, "event": "note", "message": "(25) returning to 'libcrun_container_update' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "note", "message": "(26) 'xmalloc0(120)' leaks here; was allocated at (21)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 69| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 70| void *res = calloc (1, size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 71|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 72| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 73| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "93946c7238578cf3c7df847327f0ba3800622e95", "key_event_idx": 2, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 24, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_get_features'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xmalloc0(144)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4034, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_get_features'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4046, "column": 11, "event": "note", "message": "(2) calling 'xmalloc0' from 'libcrun_container_get_features'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(3) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 70, "column": 15, "event": "note", "message": "(4) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(5) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4046, "column": 11, "event": "note", "message": "(8) returning to 'libcrun_container_get_features' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "note", "message": "(9) 'xmalloc0(144)' leaks here; was allocated at (4)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 69| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 70| void *res = calloc (1, size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 71|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 72| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 73| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "57c151900e42f4e684d9d765fdaa36c8ce15f0c4", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_update'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xmalloc0(176)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3803, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_update'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3817, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3820, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3821, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3824, "column": 9, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3829, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3832, "column": 9, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3833, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3836, "column": 15, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3837, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3843, "column": 7, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3843, "column": 6, "event": "note", "message": "(12) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3846, "column": 62, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3846, "column": 62, "event": "note", "message": "(14) calling 'xmalloc0' from 'libcrun_container_update'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(15) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 70, "column": 15, "event": "note", "message": "(16) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(17) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3846, "column": 62, "event": "note", "message": "(20) returning to 'libcrun_container_update' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "note", "message": "(21) 'xmalloc0(176)' leaks here; was allocated at (16)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 69| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 70| void *res = calloc (1, size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 71|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 72| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 73| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "d9819b38a01ae0f5ab72a27da5669d44f2d61d4a", "key_event_idx": 3, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-internal.h", "line": 22, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 24, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_cgroup_enter'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xmalloc0(24)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 285, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_cgroup_enter'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 289, "column": 64, "event": "note", "message": "(2) calling 'xmalloc0' from 'libcrun_cgroup_enter'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(3) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 70, "column": 15, "event": "note", "message": "(4) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(5) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c", "line": 289, "column": 64, "event": "note", "message": "(8) returning to 'libcrun_cgroup_enter' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "note", "message": "(9) 'xmalloc0(24)' leaks here; was allocated at (4)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 69| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 70| void *res = calloc (1, size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 71|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 72| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 73| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "b4d7e5825f28c8c5d824b97d4f95e7e721eb430f", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xmalloc0(48)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 83, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_load_seccomp_notify_plugins'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 87, "column": 73, "event": "note", "message": "(2) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(3) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 87, "column": 73, "event": "note", "message": "(6) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 92, "column": 6, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 95, "column": 34, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 95, "column": 15, "event": "note", "message": "(9) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(10) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(11) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 95, "column": 15, "event": "note", "message": "(13) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 96, "column": 16, "event": "note", "message": "(14) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(15) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 96, "column": 16, "event": "note", "message": "(18) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 102, "column": 18, "event": "note", "message": "(19) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(20) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 70, "column": 15, "event": "note", "message": "(21) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(22) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(23) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 102, "column": 18, "event": "note", "message": "(25) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "note", "message": "(26) 'xmalloc0(48)' leaks here; was allocated at (21)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 69| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 70| void *res = calloc (1, size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 71|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 72| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 73| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "ee295c2dc27d203b2f60d2629d27605b5dab7d1a", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'make_oci_process_user'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xmalloc0(56)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 245, "column": 1, "event": "note", "message": "(1) entry to 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 264, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 267, "column": 37, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 272, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 278, "column": 19, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 278, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 282, "column": 17, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 282, "column": 17, "event": "note", "message": "(8) calling 'xmalloc0' from 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(9) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 282, "column": 17, "event": "note", "message": "(12) returning to 'crun_command_exec' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 286, "column": 23, "event": "note", "message": "(13) calling 'xmalloc0' from 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(14) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 286, "column": 23, "event": "note", "message": "(17) returning to 'crun_command_exec' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 287, "column": 21, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 289, "column": 14, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 290, "column": 10, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 292, "column": 39, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 295, "column": 23, "event": "note", "message": "(22) calling 'make_oci_process_user' from 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 202, "column": 1, "event": "note", "message": "(23) entry to 'make_oci_process_user'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 207, "column": 6, "event": "note", "message": "(24) following 'false' branch (when 'userspec' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 210, "column": 7, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 210, "column": 7, "event": "note", "message": "(26) calling 'xmalloc0' from 'make_oci_process_user'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(27) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 70, "column": 15, "event": "note", "message": "(28) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(29) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(30) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 210, "column": 7, "event": "note", "message": "(32) returning to 'make_oci_process_user' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 21, "event": "note", "message": "(33) 'xmalloc0(56)' leaks here; was allocated at (28)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 69| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 70| void *res = calloc (1, size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 71|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 72| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 73| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "c088900eeff9995f9b3e0182f8776ccee7a7afa5", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'safe_read_xattr'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xrealloc(buffer, (long unsigned int)(current_size + 1))'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1953, "column": 1, "event": "note", "message": "(1) entry to 'safe_read_xattr'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1960, "column": 12, "event": "note", "message": "(2) calling 'xmalloc' from 'safe_read_xattr'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(3) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1960, "column": 12, "event": "note", "message": "(6) returning to 'safe_read_xattr' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1965, "column": 10, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1968, "column": 10, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1968, "column": 10, "event": "note", "message": "(9) following 'false' branch (when 'current_size <= s')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1971, "column": 20, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1972, "column": 16, "event": "note", "message": "(11) calling 'xrealloc' from 'safe_read_xattr'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(12) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(13) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(14) when 'realloc' succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 6, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 82, "column": 10, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1972, "column": 16, "event": "note", "message": "(17) returning to 'safe_read_xattr' from 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 21, "event": "note", "message": "(18) 'xrealloc(buffer, (long unsigned int)(current_size + 1))' leaks here; was allocated at (13)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 78| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 79| void *res = realloc (ptr, size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 80|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 81| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 82| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "19296099d801452e9ef651173873650f4d46c717", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xrealloc(entries, entries_size * 16)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2542, "column": 1, "event": "note", "message": "(1) entry to 'read_dir_entries'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2551, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2557, "column": 13, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2557, "column": 13, "event": "note", "message": "(4) calling 'xmalloc' from 'read_dir_entries'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(5) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2557, "column": 13, "event": "note", "message": "(8) returning to 'read_dir_entries' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2558, "column": 10, "event": "note", "message": "(9) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2560, "column": 21, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2562, "column": 10, "event": "note", "message": "(11) following 'false' branch (when 'n_entries != entries_size')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2567, "column": 24, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2567, "column": 30, "event": "note", "message": "(13) calling 'xstrdup' from 'read_dir_entries'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(14) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(15) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(17) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2567, "column": 30, "event": "note", "message": "(19) returning to 'read_dir_entries' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2558, "column": 10, "event": "note", "message": "(20) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2560, "column": 21, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2562, "column": 10, "event": "note", "message": "(22) following 'true' branch (when 'n_entries == entries_size')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2564, "column": 24, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2565, "column": 21, "event": "note", "message": "(24) calling 'xrealloc' from 'read_dir_entries'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(25) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(26) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(27) when 'realloc' succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 6, "event": "note", "message": "(28) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 82, "column": 10, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2565, "column": 21, "event": "note", "message": "(30) returning to 'read_dir_entries' from 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 21, "event": "note", "message": "(31) 'xrealloc(entries, entries_size * 16)' leaks here; was allocated at (26)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 78| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 79| void *res = realloc (ptr, size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 80|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 81| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 82| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "94aa1dd2225e4db26a9ab8a2793c05a0d4843764", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'read_dir_entries'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xrealloc(entries, (n_entries + 1) * 8)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2542, "column": 1, "event": "note", "message": "(1) entry to 'read_dir_entries'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2551, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2557, "column": 13, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2557, "column": 13, "event": "note", "message": "(4) calling 'xmalloc' from 'read_dir_entries'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(5) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2557, "column": 13, "event": "note", "message": "(8) returning to 'read_dir_entries' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2569, "column": 13, "event": "note", "message": "(9) calling 'xrealloc' from 'read_dir_entries'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(10) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(11) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(12) when 'realloc' succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 6, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 82, "column": 10, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2569, "column": 13, "event": "note", "message": "(15) returning to 'read_dir_entries' from 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 21, "event": "note", "message": "(16) 'xrealloc(entries, (n_entries + 1) * 8)' leaks here; was allocated at (11)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 78| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 79| void *res = realloc (ptr, size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 80|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 81| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 82| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "b9e8749e3e4113472c69426a98a8f0be4da663e2", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'evict_cache'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xrealloc(entries, (n_entries + 1) * 88)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 492, "column": 1, "event": "note", "message": "(1) entry to 'evict_cache'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 500, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 503, "column": 30, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 506, "column": 6, "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": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 514, "column": 6, "event": "note", "message": "(6) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 522, "column": 11, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 523, "column": 10, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 526, "column": 20, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 529, "column": 14, "event": "note", "message": "(10) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 531, "column": 25, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 554, "column": 25, "event": "note", "message": "(12) calling 'xrealloc' from 'evict_cache'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(13) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(14) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(15) when 'realloc' succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 6, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 82, "column": 10, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 554, "column": 25, "event": "note", "message": "(18) returning to 'evict_cache' from 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 21, "event": "note", "message": "(19) 'xrealloc(entries, (n_entries + 1) * 88)' leaks here; was allocated at (14)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 78| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 79| void *res = realloc (ptr, size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 80|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 81| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 82| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "0ec91c912c4bf39f6938d2531f8877b98bf3c75c", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_ebpf_load'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xrealloc(log, log_size)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 475, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_ebpf_load'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 504, "column": 6, "event": "note", "message": "(2) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 511, "column": 13, "event": "note", "message": "(4) calling 'xrealloc' from 'libcrun_ebpf_load'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(5) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(6) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(7) when 'realloc' succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 82, "column": 10, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 511, "column": 13, "event": "note", "message": "(10) returning to 'libcrun_ebpf_load' from 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 21, "event": "note", "message": "(11) 'xrealloc(log, log_size)' leaks here; was allocated at (6)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 78| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 79| void *res = realloc (ptr, size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 80|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 81| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 82| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "cce3fc1dfdc6c8da88c2874cee49006a714f9fc0", "key_event_idx": 2, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 23, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'read_all_progs'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xrealloc(progs, cur_size * 4)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 363, "column": 1, "event": "note", "message": "(1) entry to 'ebpf_attach_program'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 387, "column": 13, "event": "note", "message": "(2) calling 'read_all_progs' from 'ebpf_attach_program'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 272, "column": 1, "event": "note", "message": "(3) entry to 'read_all_progs'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 282, "column": 32, "event": "note", "message": "(4) following 'true' branch (when 'cur_size <= 4096')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 284, "column": 15, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 284, "column": 15, "event": "note", "message": "(6) calling 'xrealloc' from 'read_all_progs'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(7) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(8) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(9) when 'realloc' succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 82, "column": 10, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 284, "column": 15, "event": "note", "message": "(12) returning to 'read_all_progs' from 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 21, "event": "note", "message": "(13) 'xrealloc(progs, cur_size * 4)' leaks here; was allocated at (8)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 78| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 79| void *res = realloc (ptr, size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 80|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 81| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 82| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "4afd3b7bc5001cb14124f1c78c4a9514e9ea9051", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'safe_readlinkat'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xrealloc(tmp_buf, (long unsigned int)(buf_size + 1))'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2079, "column": 1, "event": "note", "message": "(1) entry to 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2086, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2092, "column": 13, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2092, "column": 31, "event": "note", "message": "(4) following 'true' branch (when 'de' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2094, "column": 25, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2104, "column": 10, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2037, "column": 1, "event": "note", "message": "(9) entry to 'copy_rec_stat_file_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2049, "column": 6, "event": "note", "message": "(10) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2051, "column": 11, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2108, "column": 10, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2111, "column": 20, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2111, "column": 7, "event": "note", "message": "(15) following 'case 40960:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2161, "column": 9, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2162, "column": 17, "event": "note", "message": "(17) calling 'safe_readlinkat' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 420, "column": 1, "event": "note", "message": "(18) entry to 'safe_readlinkat'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 428, "column": 10, "event": "note", "message": "(19) following 'false' branch (when 'tmp_buf' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 432, "column": 45, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 432, "column": 17, "event": "note", "message": "(21) calling 'xrealloc' from 'safe_readlinkat'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(22) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(23) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(24) when 'realloc' succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 6, "event": "note", "message": "(25) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 82, "column": 10, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 432, "column": 17, "event": "note", "message": "(27) returning to 'safe_readlinkat' from 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 21, "event": "note", "message": "(28) 'xrealloc(tmp_buf, (long unsigned int)(buf_size + 1))' leaks here; was allocated at (23)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 78| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 79| void *res = realloc (ptr, size);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 80|-> if (UNLIKELY (res == NULL))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 81| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 82| return res;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 415, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "c002ae21fb9b6f72c9365560c2f92e951c839320", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 89, "column": 3, "event": "warning[-Wanalyzer-double-free]", "message": "double-'free' of 'buffer'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 0, "event": "scope_hint", "message": "In function 'safe_read_xattr'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1953, "column": 1, "event": "note", "message": "(1) entry to 'safe_read_xattr'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1960, "column": 12, "event": "note", "message": "(2) calling 'xmalloc' from 'safe_read_xattr'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(3) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 61, "column": 15, "event": "note", "message": "(4) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(5) assuming 'res' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1960, "column": 12, "event": "note", "message": "(8) returning to 'safe_read_xattr' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1965, "column": 10, "event": "note", "message": "(9) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1968, "column": 10, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1968, "column": 10, "event": "note", "message": "(11) following 'false' branch (when 'current_size <= s')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1971, "column": 20, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1972, "column": 16, "event": "note", "message": "(13) calling 'xrealloc' from 'safe_read_xattr'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(14) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(15) first 'free' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(16) when 'realloc' succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 6, "event": "note", "message": "(17) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 82, "column": 10, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1972, "column": 16, "event": "note", "message": "(19) returning to 'safe_read_xattr' from 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1955, "column": 22, "event": "note", "message": "(20) inlined call to 'cleanup_freep' from 'safe_read_xattr'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 89, "column": 3, "event": "note", "message": "(21) second 'free' here; first 'free' was at (15)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 87| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 88| void **pp = (void **) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 89|-> free (*pp);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 90| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 91| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 415, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "1a2433eb8147b2e843265ba8a67889c597970aa2", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 89, "column": 3, "event": "warning[-Wanalyzer-double-free]", "message": "double-'free' of 'entries'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 0, "event": "scope_hint", "message": "In function 'evict_cache'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 492, "column": 1, "event": "note", "message": "(1) entry to 'evict_cache'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 500, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 503, "column": 30, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 506, "column": 6, "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": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 514, "column": 6, "event": "note", "message": "(6) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 522, "column": 11, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 523, "column": 10, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 526, "column": 20, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 529, "column": 14, "event": "note", "message": "(10) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 531, "column": 25, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 554, "column": 25, "event": "note", "message": "(12) passing freed pointer 'entries' in call to 'xrealloc' from 'evict_cache'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(13) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(14) when 'realloc' succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 6, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 82, "column": 10, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 554, "column": 25, "event": "note", "message": "(17) returning to 'evict_cache' from 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 517, "column": 24, "event": "note", "message": "(18) inlined call to 'cleanup_dirp' from 'evict_cache'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 197, "column": 6, "event": "note", "message": "(19) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 198, "column": 5, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 0, "event": "scope_hint", "message": "In function 'evict_cache'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 516, "column": 40, "event": "note", "message": "(21) inlined call to 'cleanup_freep' from 'evict_cache'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 89, "column": 3, "event": "note", "message": "(22) second 'free' here", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 87| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 88| void **pp = (void **) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 89|-> free (*pp);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 90| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 91| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 415, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "aa4cf57f95de6dd52071f44a6518dfcf2feac81f", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 89, "column": 3, "event": "warning[-Wanalyzer-double-free]", "message": "double-'free' of 'log'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_ebpf_load'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 475, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_ebpf_load'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 504, "column": 6, "event": "note", "message": "(2) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 511, "column": 13, "event": "note", "message": "(4) passing freed pointer 'log' in call to 'xrealloc' from 'libcrun_ebpf_load'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(5) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(6) when 'realloc' succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 6, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 82, "column": 10, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 511, "column": 13, "event": "note", "message": "(9) returning to 'libcrun_ebpf_load' from 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 507, "column": 26, "event": "note", "message": "(10) inlined call to 'cleanup_freep' from 'libcrun_ebpf_load'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 89, "column": 3, "event": "note", "message": "(11) second 'free' here", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 87| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 88| void **pp = (void **) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 89|-> free (*pp);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 90| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 91| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 415, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "2b7dcb477999f736bc6ecd16b6cad007dc8dc263", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 89, "column": 3, "event": "warning[-Wanalyzer-double-free]", "message": "double-'free' of 'progs'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 0, "event": "scope_hint", "message": "In function 'read_all_progs'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 363, "column": 1, "event": "note", "message": "(1) entry to 'ebpf_attach_program'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 381, "column": 30, "event": "note", "message": "(2) first 'free' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 387, "column": 13, "event": "note", "message": "(3) calling 'read_all_progs' from 'ebpf_attach_program'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 272, "column": 1, "event": "note", "message": "(4) entry to 'read_all_progs'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 282, "column": 32, "event": "note", "message": "(5) following 'true' branch (when 'cur_size <= 4096')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 284, "column": 15, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 284, "column": 15, "event": "note", "message": "(7) passing freed pointer 'progs' in call to 'xrealloc' from 'read_all_progs'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(8) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(9) when 'realloc' succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 82, "column": 10, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 284, "column": 15, "event": "note", "message": "(12) returning to 'read_all_progs' from 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c", "line": 275, "column": 26, "event": "note", "message": "(13) inlined call to 'cleanup_freep' from 'read_all_progs'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 89, "column": 3, "event": "note", "message": "(14) second 'free' here; first 'free' was at (2)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 87| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 88| void **pp = (void **) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 89|-> free (*pp);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 90| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 91| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 415, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "dcc13bf127c5e33ed239110fae3885b5b6c879fa", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 89, "column": 3, "event": "warning[-Wanalyzer-double-free]", "message": "double-'free' of 'tmp_buf'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 0, "event": "scope_hint", "message": "In function 'safe_readlinkat'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2079, "column": 1, "event": "note", "message": "(1) entry to 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2086, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2092, "column": 13, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2092, "column": 31, "event": "note", "message": "(4) following 'true' branch (when 'de' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2094, "column": 25, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2096, "column": 26, "event": "note", "message": "(6) first 'free' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2104, "column": 10, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(9) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2037, "column": 1, "event": "note", "message": "(10) entry to 'copy_rec_stat_file_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2049, "column": 6, "event": "note", "message": "(11) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2051, "column": 11, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(13) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2108, "column": 10, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2111, "column": 20, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2111, "column": 7, "event": "note", "message": "(16) following 'case 40960:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2161, "column": 9, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2162, "column": 17, "event": "note", "message": "(18) calling 'safe_readlinkat' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 420, "column": 1, "event": "note", "message": "(19) entry to 'safe_readlinkat'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 428, "column": 10, "event": "note", "message": "(20) following 'false' branch (when 'tmp_buf' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 432, "column": 45, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 432, "column": 17, "event": "note", "message": "(22) passing freed pointer 'tmp_buf' in call to 'xrealloc' from 'safe_readlinkat'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 77, "column": 1, "event": "note", "message": "(23) entry to 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 79, "column": 15, "event": "note", "message": "(24) when 'realloc' succeeds, moving buffer", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 80, "column": 6, "event": "note", "message": "(25) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 82, "column": 10, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 432, "column": 17, "event": "note", "message": "(27) returning to 'safe_readlinkat' from 'xrealloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 423, "column": 22, "event": "note", "message": "(28) inlined call to 'cleanup_freep' from 'safe_readlinkat'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 89, "column": 3, "event": "note", "message": "(29) second 'free' here; first 'free' was at (6)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 87| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 88| void **pp = (void **) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 89|-> free (*pp);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 90| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 91| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "4e6a0bcb602cd760078b78792c94bdfae2ec50d0", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 89, "column": 3, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of '<unknown>'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_restore'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4209, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_restore'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4221, "column": 15, "event": "note", "message": "(2) calling 'libcrun_container_load_from_file' from 'libcrun_container_restore'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 572, "column": 1, "event": "note", "message": "(3) entry to 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 578, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(6) calling 'make_container' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 541, "column": 1, "event": "note", "message": "(7) entry to 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(8) calling 'xmalloc0' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(9) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(12) returning to 'make_container' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 549, "column": 6, "event": "note", "message": "(13) following 'true' branch (when 'path' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 550, "column": 30, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 550, "column": 30, "event": "note", "message": "(15) calling 'xstrdup' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(16) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(17) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(19) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(20) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(21) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 550, "column": 30, "event": "note", "message": "(23) returning to 'make_container' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 551, "column": 6, "event": "note", "message": "(24) following 'false' branch (when 'config' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 554, "column": 10, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(26) returning to 'libcrun_container_load_from_file' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4221, "column": 15, "event": "note", "message": "(27) returning to 'libcrun_container_restore' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 575, "column": 22, "event": "note", "message": "(28) inlined call to 'cleanup_freep' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 89, "column": 3, "event": "note", "message": "(29) '<unknown>' leaks here; was allocated at (19)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 87| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 88| void **pp = (void **) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 89|-> free (*pp);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 90| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 91| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "3ff959ab699f0dc80b6c46906bec8047fd188385", "key_event_idx": 5, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/error.h", "line": 42, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.h", "line": 24, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h", "line": 21, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 22, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor '*(void *)p'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(1) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 5, "event": "note", "message": "(2) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(4) second 'close' here; first 'close' was at (1)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "597ea8b86e913d9e0db2b2cda76178eaddb31f7c", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor '<unknown>'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 200, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_apply_seccomp'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 214, "column": 6, "event": "note", "message": "(2) following 'false' branch (when 'infd >= 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 217, "column": 17, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 217, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 221, "column": 6, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 242, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 245, "column": 28, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 248, "column": 6, "event": "note", "message": "(8) following 'true' branch (when 'listener_receiver_fd >= 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 250, "column": 25, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 261, "column": 10, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 267, "column": 13, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 268, "column": 10, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 271, "column": 13, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 273, "column": 10, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 277, "column": 7, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 277, "column": 7, "event": "note", "message": "(16) calling 'close_and_reset' from 'libcrun_apply_seccomp'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 202, "column": 1, "event": "note", "message": "(17) entry to 'close_and_reset'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 205, "column": 6, "event": "note", "message": "(18) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 277, "column": 7, "event": "note", "message": "(20) returning to 'libcrun_apply_seccomp' from 'close_and_reset'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 284, "column": 10, "event": "note", "message": "(21) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 290, "column": 10, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 290, "column": 10, "event": "note", "message": "(23) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 250, "column": 25, "event": "note", "message": "(24) inlined call to 'cleanup_closep' from 'libcrun_apply_seccomp'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 7, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(26) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 325, "column": 6, "event": "note", "message": "(28) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 334, "column": 6, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 334, "column": 6, "event": "note", "message": "(30) following 'true' branch (when 'listener_receiver_fd >= 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 336, "column": 43, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 206, "column": 21, "event": "note", "message": "(32) inlined call to 'cleanup_closep' from 'libcrun_apply_seccomp'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(33) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(34) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 206, "column": 21, "event": "note", "message": "(35) inlined call to 'cleanup_closep' from 'libcrun_apply_seccomp'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(36) calling 'cleanup_closep.part.0' from 'libcrun_apply_seccomp'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(37) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(38) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 5, "event": "note", "message": "(39) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(40) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(41) second 'close' here; first 'close' was at (38)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "ec739d049c90ba77a7a2b10b83e7c0c1591d9568", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'cfd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 525, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_delete_status'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 532, "column": 9, "event": "note", "message": "(2) calling 'get_run_directory' from 'libcrun_container_delete_status'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 42, "column": 1, "event": "note", "message": "(3) entry to 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 48, "column": 6, "event": "note", "message": "(4) following 'false' branch (when 'state_root' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 12, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 6, "event": "note", "message": "(6) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 52, "column": 33, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 53, "column": 10, "event": "note", "message": "(8) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 55, "column": 17, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 56, "column": 14, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 63, "column": 12, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 532, "column": 9, "event": "note", "message": "(12) returning to 'libcrun_container_delete_status' from 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 533, "column": 6, "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": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 537, "column": 6, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 540, "column": 9, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 541, "column": 6, "event": "note", "message": "(17) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 544, "column": 9, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 544, "column": 9, "event": "note", "message": "(19) calling 'rmdirfd' from 'libcrun_container_delete_status'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 467, "column": 1, "event": "note", "message": "(20) entry to 'rmdirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 475, "column": 6, "event": "note", "message": "(21) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 479, "column": 14, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 481, "column": 26, "event": "note", "message": "(23) following 'true' branch (when 'de' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 483, "column": 22, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 483, "column": 10, "event": "note", "message": "(25) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 487, "column": 13, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 488, "column": 10, "event": "note", "message": "(27) following 'true' branch (when 'ret < 0')...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 504, "column": 14, "event": "note", "message": "(29) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 506, "column": 33, "event": "note", "message": "(30) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 509, "column": 18, "event": "note", "message": "(31) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 512, "column": 21, "event": "note", "message": "(32) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 512, "column": 21, "event": "note", "message": "(33) calling 'rmdirfd' from 'rmdirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 467, "column": 1, "event": "note", "message": "(34) entry to 'rmdirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 475, "column": 6, "event": "note", "message": "(35) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 476, "column": 34, "event": "note", "message": "(36) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 472, "column": 46, "event": "note", "message": "(37) inlined call to 'cleanup_closep' from 'rmdirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(38) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(39) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 472, "column": 46, "event": "note", "message": "(40) inlined call to 'cleanup_closep' from 'rmdirfd'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(41) calling 'cleanup_closep.part.0' from 'rmdirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(42) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(43) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 472, "column": 46, "event": "note", "message": "(44) inlined call to 'cleanup_closep' from 'rmdirfd'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(45) returning to 'rmdirfd' from 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 470, "column": 20, "event": "note", "message": "(46) inlined call to 'cleanup_dirp' from 'rmdirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 197, "column": 6, "event": "note", "message": "(47) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(48) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 512, "column": 21, "event": "note", "message": "(49) returning to 'rmdirfd' from 'rmdirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 506, "column": 33, "event": "note", "message": "(50) inlined call to 'cleanup_closep' from 'rmdirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(51) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(52) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 506, "column": 33, "event": "note", "message": "(53) inlined call to 'cleanup_closep' from 'rmdirfd'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(54) calling 'cleanup_closep.part.0' from 'rmdirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(55) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(56) second 'close' here; first 'close' was at (43)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "ede46472f5ab343efb91a347dee20a184af6dc69", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'cgroup_dirfd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1360, "column": 1, "event": "note", "message": "(1) entry to 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1370, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(4) following 'false' branch (when 'path' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(6) following 'case 1:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1397, "column": 5, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1398, "column": 14, "event": "note", "message": "(8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1287, "column": 1, "event": "note", "message": "(9) entry to 'update_cgroup_v2_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1293, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1296, "column": 9, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1297, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1300, "column": 18, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1300, "column": 18, "event": "note", "message": "(14) opened here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1301, "column": 6, "event": "note", "message": "(15) assuming 'cgroup_dirfd' is a valid file descriptor (>= 0)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1301, "column": 6, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1304, "column": 16, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1290, "column": 21, "event": "note", "message": "(18) inlined call to 'cleanup_closep' from 'update_cgroup_v2_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(19) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1290, "column": 21, "event": "note", "message": "(21) inlined call to 'cleanup_closep' from 'update_cgroup_v2_resources'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(22) calling 'cleanup_closep.part.0' from 'update_cgroup_v2_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(23) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(24) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 5, "event": "note", "message": "(25) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(27) second 'close' here; first 'close' was at (24)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "8d1e384e1afae59c37d8de32a021551d08f4fb81", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'console_socket_fd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 185, "column": 1, "event": "note", "message": "(1) entry to 'criu_notify'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 187, "column": 6, "event": "note", "message": "(2) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 192, "column": 25, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 197, "column": 10, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 200, "column": 34, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 203, "column": 10, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 208, "column": 13, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 209, "column": 10, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 192, "column": 25, "event": "note", "message": "(9) inlined call to 'cleanup_closep' from 'criu_notify'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 7, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(11) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 192, "column": 25, "event": "note", "message": "(13) inlined call to 'cleanup_closep' from 'criu_notify'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(14) calling 'cleanup_closep.part.0' from 'criu_notify'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(15) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(16) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 5, "event": "note", "message": "(17) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(19) second 'close' here; first 'close' was at (16)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "8d68951e4869e87011628caf41cff8572a747772", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'destdirfd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2079, "column": 1, "event": "note", "message": "(1) entry to 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2086, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2092, "column": 13, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2092, "column": 31, "event": "note", "message": "(4) following 'true' branch (when 'de' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2094, "column": 25, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2104, "column": 10, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2037, "column": 1, "event": "note", "message": "(9) entry to 'copy_rec_stat_file_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2049, "column": 6, "event": "note", "message": "(10) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2051, "column": 11, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2108, "column": 10, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2111, "column": 20, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2111, "column": 7, "event": "note", "message": "(15) following 'case 16384:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2136, "column": 9, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2138, "column": 14, "event": "note", "message": "(17) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2141, "column": 19, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2142, "column": 14, "event": "note", "message": "(19) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2145, "column": 20, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2146, "column": 14, "event": "note", "message": "(21) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2150, "column": 23, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2151, "column": 14, "event": "note", "message": "(23) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2155, "column": 17, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2155, "column": 17, "event": "note", "message": "(25) calling 'copy_recursive_fd_to_fd' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2079, "column": 1, "event": "note", "message": "(26) entry to 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2086, "column": 6, "event": "note", "message": "(27) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2092, "column": 13, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2092, "column": 31, "event": "note", "message": "(29) following 'true' branch (when 'de' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2094, "column": 25, "event": "note", "message": "(30) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2104, "column": 10, "event": "note", "message": "(31) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(32) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2108, "column": 10, "event": "note", "message": "(33) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2109, "column": 38, "event": "note", "message": "(34) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2095, "column": 25, "event": "note", "message": "(35) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(36) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(37) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2082, "column": 20, "event": "note", "message": "(38) inlined call to 'cleanup_dirp' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 197, "column": 6, "event": "note", "message": "(39) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 198, "column": 5, "event": "note", "message": "(40) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2081, "column": 21, "event": "note", "message": "(41) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(42) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(43) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2081, "column": 21, "event": "note", "message": "(44) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(45) calling 'cleanup_closep.part.0' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(46) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(47) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 5, "event": "note", "message": "(48) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(49) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(50) second 'close' here; first 'close' was at (47)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "7a14d832c5fdd9b6326e33a3e4643979fe0f6c4d", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'destfd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2079, "column": 1, "event": "note", "message": "(1) entry to 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2086, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2092, "column": 13, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2092, "column": 31, "event": "note", "message": "(4) following 'true' branch (when 'de' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2094, "column": 25, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2104, "column": 10, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2037, "column": 1, "event": "note", "message": "(9) entry to 'copy_rec_stat_file_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2049, "column": 6, "event": "note", "message": "(10) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2051, "column": 11, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2108, "column": 10, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2111, "column": 20, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2111, "column": 7, "event": "note", "message": "(15) following 'case 32768:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2113, "column": 9, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2115, "column": 14, "event": "note", "message": "(17) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2118, "column": 20, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2119, "column": 14, "event": "note", "message": "(19) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2122, "column": 17, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2123, "column": 14, "event": "note", "message": "(21) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2127, "column": 23, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2128, "column": 14, "event": "note", "message": "(23) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2132, "column": 31, "event": "note", "message": "(25) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2095, "column": 25, "event": "note", "message": "(26) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(27) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2095, "column": 25, "event": "note", "message": "(29) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(30) calling 'cleanup_closep.part.0' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(31) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(32) second 'close' here; first 'close' was at (25)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "a1466d77c11f7df7d239b8092670ec6a90fef7cc", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'dirfd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 859, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_open_seccomp_bpf'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 868, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 871, "column": 11, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 871, "column": 11, "event": "note", "message": "(4) calling 'open_rundir_dirfd' from 'libcrun_open_seccomp_bpf'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 455, "column": 1, "event": "note", "message": "(5) entry to 'open_rundir_dirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 461, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 464, "column": 31, "event": "note", "message": "(8) opened here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 464, "column": 11, "event": "note", "message": "(9) assuming 'open(libcrun_get_state_directory(state_root, 0), 2686976)' is a valid file descriptor (>= 0)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 465, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 457, "column": 22, "event": "note", "message": "(11) inlined call to 'cleanup_freep' from 'open_rundir_dirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 89, "column": 3, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 871, "column": 11, "event": "note", "message": "(13) returning to 'libcrun_open_seccomp_bpf' from 'open_rundir_dirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 872, "column": 6, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 876, "column": 49, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 861, "column": 21, "event": "note", "message": "(16) inlined call to 'cleanup_closep' from 'libcrun_open_seccomp_bpf'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(17) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 861, "column": 21, "event": "note", "message": "(19) inlined call to 'cleanup_closep' from 'libcrun_open_seccomp_bpf'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(20) calling 'cleanup_closep.part.0' from 'libcrun_open_seccomp_bpf'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(21) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(22) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 5, "event": "note", "message": "(23) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(25) second 'close' here; first 'close' was at (22)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "db8acf63db0eb067a094156d13a29b58ca0d30e0", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'dirfd_netclass'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1360, "column": 1, "event": "note", "message": "(1) entry to 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1370, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(4) following 'false' branch (when 'path' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(6) following 'case 2 ... 3:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1400, "column": 5, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1402, "column": 14, "event": "note", "message": "(8) calling 'update_cgroup_v1_resources' from 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1086, "column": 1, "event": "note", "message": "(9) entry to 'update_cgroup_v1_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1109, "column": 6, "event": "note", "message": "(10) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1111, "column": 26, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1118, "column": 10, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1121, "column": 13, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1122, "column": 10, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1125, "column": 24, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1125, "column": 24, "event": "note", "message": "(16) opened here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1126, "column": 10, "event": "note", "message": "(17) assuming 'dirfd_netclass' is a valid file descriptor (>= 0)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1126, "column": 10, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1129, "column": 23, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1130, "column": 10, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1133, "column": 13, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1134, "column": 10, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1114, "column": 25, "event": "note", "message": "(23) inlined call to 'cleanup_closep' from 'update_cgroup_v1_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 7, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(25) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1112, "column": 25, "event": "note", "message": "(27) inlined call to 'cleanup_closep' from 'update_cgroup_v1_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(28) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1112, "column": 25, "event": "note", "message": "(30) inlined call to 'cleanup_closep' from 'update_cgroup_v1_resources'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(31) calling 'cleanup_closep.part.0' from 'update_cgroup_v1_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(32) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(33) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 5, "event": "note", "message": "(34) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(36) second 'close' here; first 'close' was at (33)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "1c10e937421e5df18cba435c4cf0645c40cecee9", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'dirfd_netprio'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1360, "column": 1, "event": "note", "message": "(1) entry to 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1370, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(4) following 'false' branch (when 'path' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(6) following 'case 2 ... 3:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1400, "column": 5, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1402, "column": 14, "event": "note", "message": "(8) calling 'update_cgroup_v1_resources' from 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1086, "column": 1, "event": "note", "message": "(9) entry to 'update_cgroup_v1_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1109, "column": 6, "event": "note", "message": "(10) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1111, "column": 26, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1118, "column": 10, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1121, "column": 13, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1122, "column": 10, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1125, "column": 24, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1126, "column": 10, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1129, "column": 23, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1129, "column": 23, "event": "note", "message": "(18) opened here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1130, "column": 10, "event": "note", "message": "(19) assuming 'dirfd_netprio' is a valid file descriptor (>= 0)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1130, "column": 10, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1133, "column": 13, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1133, "column": 13, "event": "note", "message": "(22) calling 'write_network_resources' from 'update_cgroup_v1_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 445, "column": 1, "event": "note", "message": "(23) entry to 'write_network_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 451, "column": 6, "event": "note", "message": "(24) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 458, "column": 10, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1133, "column": 13, "event": "note", "message": "(26) returning to 'update_cgroup_v1_resources' from 'write_network_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1134, "column": 10, "event": "note", "message": "(27) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1114, "column": 25, "event": "note", "message": "(28) inlined call to 'cleanup_closep' from 'update_cgroup_v1_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 7, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(30) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1114, "column": 25, "event": "note", "message": "(32) inlined call to 'cleanup_closep' from 'update_cgroup_v1_resources'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(33) calling 'cleanup_closep.part.0' from 'update_cgroup_v1_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(34) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(35) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 5, "event": "note", "message": "(36) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(37) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(38) second 'close' here; first 'close' was at (35)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "08e38e761ee79f81580aadb9b9463b0aed310aa4", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'fd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1360, "column": 1, "event": "note", "message": "(1) entry to 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1370, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(4) following 'false' branch (when 'path' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(6) following 'case 2 ... 3:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1400, "column": 5, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1402, "column": 14, "event": "note", "message": "(8) calling 'update_cgroup_v1_resources' from 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1086, "column": 1, "event": "note", "message": "(9) entry to 'update_cgroup_v1_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1109, "column": 6, "event": "note", "message": "(10) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1111, "column": 26, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1118, "column": 10, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1121, "column": 13, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1122, "column": 10, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1125, "column": 24, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1126, "column": 10, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1129, "column": 23, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1130, "column": 10, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1133, "column": 13, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1133, "column": 13, "event": "note", "message": "(20) calling 'write_network_resources' from 'update_cgroup_v1_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 445, "column": 1, "event": "note", "message": "(21) entry to 'write_network_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 451, "column": 6, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 458, "column": 10, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 458, "column": 6, "event": "note", "message": "(24) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 461, "column": 25, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 463, "column": 10, "event": "note", "message": "(26) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 461, "column": 25, "event": "note", "message": "(28) inlined call to 'cleanup_closep' from 'write_network_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(29) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(30) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 461, "column": 25, "event": "note", "message": "(31) inlined call to 'cleanup_closep' from 'write_network_resources'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(32) calling 'cleanup_closep.part.0' from 'write_network_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(33) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(34) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 5, "event": "note", "message": "(35) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(36) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(37) second 'close' here; first 'close' was at (34)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "0401444658346464314a528229f2bdc671d81d72", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'fd1'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 39, "column": 32, "event": "note", "message": "in definition of macro 'TEMP_FAILURE_RETRY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 74, "column": 1, "event": "note", "message": "(1) entry to 'test_send_receive_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 82, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 85, "column": 12, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 88, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 91, "column": 9, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 92, "column": 6, "event": "note", "message": "(6) following 'false' branch (when 'pid >= 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 95, "column": 6, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 95, "column": 6, "event": "note", "message": "(8) following 'true' branch (when 'pid != 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 97, "column": 25, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 101, "column": 11, "event": "note", "message": "(10) when 'pipe' succeeds", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 101, "column": 10, "event": "note", "message": "(11) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 104, "column": 22, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 98, "column": 25, "event": "note", "message": "(13) inlined call to 'cleanup_closep' from 'test_send_receive_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 79, "column": 21, "event": "note", "message": "(16) inlined call to 'cleanup_closep' from 'test_send_receive_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(17) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 79, "column": 21, "event": "note", "message": "(19) inlined call to 'cleanup_closep' from 'test_send_receive_fd'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(20) calling 'cleanup_closep.part.0' from 'test_send_receive_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(21) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(22) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 39, "column": 32, "event": "note", "message": "in definition of macro 'TEMP_FAILURE_RETRY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 40, "column": 27, "event": "note", "message": "(23) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 5, "event": "note", "message": "in expansion of macro 'TEMP_FAILURE_RETRY'", "verbosity_level": 1 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(25) second 'close' here; first 'close' was at (22)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 39, "column": 32, "event": "note", "message": "in definition of macro 'TEMP_FAILURE_RETRY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "1c17f366a6464dd5889842f0c5b5ead4043c6b42", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'fd_cleanup'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 525, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_delete_status'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 532, "column": 9, "event": "note", "message": "(2) calling 'get_run_directory' from 'libcrun_container_delete_status'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 42, "column": 1, "event": "note", "message": "(3) entry to 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 48, "column": 6, "event": "note", "message": "(4) following 'false' branch (when 'state_root' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 12, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 6, "event": "note", "message": "(6) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 52, "column": 33, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 53, "column": 10, "event": "note", "message": "(8) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 55, "column": 17, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 56, "column": 14, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 63, "column": 12, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 532, "column": 9, "event": "note", "message": "(12) returning to 'libcrun_container_delete_status' from 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 533, "column": 6, "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": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 537, "column": 6, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 540, "column": 9, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 541, "column": 6, "event": "note", "message": "(17) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 544, "column": 9, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 544, "column": 9, "event": "note", "message": "(19) calling 'rmdirfd' from 'libcrun_container_delete_status'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 467, "column": 1, "event": "note", "message": "(20) entry to 'rmdirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 472, "column": 46, "event": "note", "message": "(21) inlined call to 'cleanup_closep' from 'rmdirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(22) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 472, "column": 46, "event": "note", "message": "(24) inlined call to 'cleanup_closep' from 'rmdirfd'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(25) calling 'cleanup_closep.part.0' from 'rmdirfd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(26) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(27) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 5, "event": "note", "message": "(28) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(30) second 'close' here; first 'close' was at (27)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "2e5901958b9a7445691dcacb4097796dbc73d64b", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'image_fd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 390, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_checkpoint_linux_criu'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 404, "column": 9, "event": "note", "message": "(2) calling 'load_wrapper' from 'libcrun_container_checkpoint_linux_criu'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 116, "column": 1, "event": "note", "message": "(3) entry to 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 118, "column": 52, "event": "note", "message": "(4) calling 'xmalloc0' from 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(5) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 118, "column": 52, "event": "note", "message": "(8) returning to 'load_wrapper' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 404, "column": 9, "event": "note", "message": "(9) returning to 'libcrun_container_checkpoint_linux_criu' from 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 405, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 408, "column": 7, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 408, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 428, "column": 24, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 429, "column": 6, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 432, "column": 24, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 432, "column": 6, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 435, "column": 27, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 435, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 438, "column": 9, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 442, "column": 14, "event": "note", "message": "(20) opened here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 443, "column": 6, "event": "note", "message": "(21) assuming 'image_fd' is a valid file descriptor (>= 0)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 443, "column": 6, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 446, "column": 18, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 494, "column": 8, "event": "note", "message": "(24) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 515, "column": 9, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 398, "column": 21, "event": "note", "message": "(26) inlined call to 'cleanup_closep' from 'libcrun_container_checkpoint_linux_criu'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(27) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 398, "column": 21, "event": "note", "message": "(29) inlined call to 'cleanup_closep' from 'libcrun_container_checkpoint_linux_criu'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(30) calling 'cleanup_closep.part.0' from 'libcrun_container_checkpoint_linux_criu'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(31) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(32) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 5, "event": "note", "message": "(33) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(34) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(35) second 'close' here; first 'close' was at (32)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "d5a2b45808711c4e70a9862e8e44f535c63d8113", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'memfd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 200, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_apply_seccomp'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 214, "column": 6, "event": "note", "message": "(2) following 'false' branch (when 'infd >= 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 217, "column": 17, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 217, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 221, "column": 6, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 242, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 245, "column": 28, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 248, "column": 6, "event": "note", "message": "(8) following 'true' branch (when 'listener_receiver_fd >= 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 250, "column": 25, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 268, "column": 10, "event": "note", "message": "(10) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h", "line": 24, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 269, "column": 38, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 250, "column": 25, "event": "note", "message": "(12) inlined call to 'cleanup_closep' from 'libcrun_apply_seccomp'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(13) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 250, "column": 25, "event": "note", "message": "(15) inlined call to 'cleanup_closep' from 'libcrun_apply_seccomp'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(16) calling 'cleanup_closep.part.0' from 'libcrun_apply_seccomp'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(17) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(18) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 5, "event": "note", "message": "(19) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(21) second 'close' here; first 'close' was at (18)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "f2365a4d21231236993b842d832c66a68bc97467", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'outfd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 39, "column": 32, "event": "note", "message": "in definition of macro 'TEMP_FAILURE_RETRY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 459, "column": 1, "event": "note", "message": "(1) entry to 'LLVMFuzzerTestOneInput'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 461, "column": 3, "event": "note", "message": "(2) calling 'run_one_test' from 'LLVMFuzzerTestOneInput'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 366, "column": 1, "event": "note", "message": "(3) entry to 'run_one_test'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 370, "column": 3, "event": "note", "message": "(4) following 'case 2:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 382, "column": 5, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 384, "column": 7, "event": "note", "message": "(6) calling 'generate_seccomp' from 'run_one_test'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 145, "column": 1, "event": "note", "message": "(7) entry to 'generate_seccomp'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 153, "column": 10, "event": "note", "message": "(8) calling 'make_nul_terminated' from 'generate_seccomp'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 46, "column": 1, "event": "note", "message": "(9) entry to 'make_nul_terminated'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 51, "column": 6, "event": "note", "message": "(10) following 'false' branch (when 'r' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 53, "column": 3, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 153, "column": 10, "event": "note", "message": "(12) returning to 'generate_seccomp' from 'make_nul_terminated'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 154, "column": 6, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 157, "column": 15, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 158, "column": 6, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 164, "column": 11, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 164, "column": 11, "event": "note", "message": "(17) opened here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 165, "column": 6, "event": "note", "message": "(18) assuming 'outfd' is a valid file descriptor (>= 0)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 165, "column": 6, "event": "note", "message": "(19) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 168, "column": 3, "event": "note", "message": "(20) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'generate_seccomp'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h", "line": 52, "column": 3, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 150, "column": 21, "event": "note", "message": "(22) inlined call to 'cleanup_closep' from 'generate_seccomp'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(23) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 150, "column": 21, "event": "note", "message": "(25) inlined call to 'cleanup_closep' from 'generate_seccomp'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(26) calling 'cleanup_closep.part.0' from 'generate_seccomp'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(27) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(28) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 39, "column": 32, "event": "note", "message": "in definition of macro 'TEMP_FAILURE_RETRY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 40, "column": 27, "event": "note", "message": "(29) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 5, "event": "note", "message": "in expansion of macro 'TEMP_FAILURE_RETRY'", "verbosity_level": 1 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(30) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(31) second 'close' here; first 'close' was at (28)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 39, "column": 32, "event": "note", "message": "in definition of macro 'TEMP_FAILURE_RETRY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "a2e4b83b81268789d42b0f242592d5dbc55e81c1", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'pipefd0'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 39, "column": 32, "event": "note", "message": "in definition of macro 'TEMP_FAILURE_RETRY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 74, "column": 1, "event": "note", "message": "(1) entry to 'test_send_receive_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 82, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 85, "column": 12, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 88, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 91, "column": 9, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 92, "column": 6, "event": "note", "message": "(6) following 'false' branch (when 'pid >= 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 95, "column": 6, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 95, "column": 6, "event": "note", "message": "(8) following 'true' branch (when 'pid != 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 97, "column": 25, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 101, "column": 11, "event": "note", "message": "(10) opened here as read-write", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 101, "column": 11, "event": "note", "message": "(11) when 'pipe' succeeds", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 101, "column": 10, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 104, "column": 22, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 98, "column": 25, "event": "note", "message": "(14) inlined call to 'cleanup_closep' from 'test_send_receive_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 97, "column": 25, "event": "note", "message": "(16) inlined call to 'cleanup_closep' from 'test_send_receive_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 7, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(18) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 97, "column": 25, "event": "note", "message": "(20) inlined call to 'cleanup_closep' from 'test_send_receive_fd'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(21) calling 'cleanup_closep.part.0' from 'test_send_receive_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(22) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(23) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 39, "column": 32, "event": "note", "message": "in definition of macro 'TEMP_FAILURE_RETRY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 40, "column": 27, "event": "note", "message": "(24) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 5, "event": "note", "message": "in expansion of macro 'TEMP_FAILURE_RETRY'", "verbosity_level": 1 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(26) second 'close' here; first 'close' was at (23)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 39, "column": 32, "event": "note", "message": "in definition of macro 'TEMP_FAILURE_RETRY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "26add9ecdbc8c7b6fd5015a2eea628d77586c78a", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'pipefd1'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 39, "column": 32, "event": "note", "message": "in definition of macro 'TEMP_FAILURE_RETRY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 74, "column": 1, "event": "note", "message": "(1) entry to 'test_send_receive_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 82, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 85, "column": 12, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 88, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 91, "column": 9, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 92, "column": 6, "event": "note", "message": "(6) following 'false' branch (when 'pid >= 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 95, "column": 6, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 95, "column": 6, "event": "note", "message": "(8) following 'true' branch (when 'pid != 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 97, "column": 25, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 101, "column": 11, "event": "note", "message": "(10) opened here as read-write", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 101, "column": 11, "event": "note", "message": "(11) when 'pipe' succeeds", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 101, "column": 10, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 104, "column": 22, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 98, "column": 25, "event": "note", "message": "(14) inlined call to 'cleanup_closep' from 'test_send_receive_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(15) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 98, "column": 25, "event": "note", "message": "(17) inlined call to 'cleanup_closep' from 'test_send_receive_fd'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(18) calling 'cleanup_closep.part.0' from 'test_send_receive_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(19) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(20) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 39, "column": 32, "event": "note", "message": "in definition of macro 'TEMP_FAILURE_RETRY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 40, "column": 27, "event": "note", "message": "(21) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 5, "event": "note", "message": "in expansion of macro 'TEMP_FAILURE_RETRY'", "verbosity_level": 1 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(23) second 'close' here; first 'close' was at (20)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 39, "column": 32, "event": "note", "message": "in definition of macro 'TEMP_FAILURE_RETRY'", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "25d5e1ad0b6e61c06b8afd02faf59605f83a7e6c", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'root_fd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 658, "column": 1, "event": "note", "message": "(1) entry to 'prepare_restore_mounts'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 663, "column": 17, "event": "note", "message": "(2) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 665, "column": 23, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 673, "column": 10, "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": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 678, "column": 21, "event": "note", "message": "(6) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 680, "column": 30, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 707, "column": 17, "event": "note", "message": "(8) opened here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 708, "column": 10, "event": "note", "message": "(9) assuming 'root_fd' is a valid file descriptor (>= 0)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 708, "column": 10, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 711, "column": 10, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 716, "column": 14, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 667, "column": 25, "event": "note", "message": "(13) inlined call to 'cleanup_closep' from 'prepare_restore_mounts'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 7, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(15) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 667, "column": 25, "event": "note", "message": "(17) inlined call to 'cleanup_closep' from 'prepare_restore_mounts'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(18) calling 'cleanup_closep.part.0' from 'prepare_restore_mounts'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(19) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(20) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 5, "event": "note", "message": "(21) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(23) second 'close' here; first 'close' was at (20)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "f6665aa7d5356110f79e8b442754945fa0a1a4ee", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'rootfsfd_cleanup'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 167, "column": 1, "event": "note", "message": "(1) entry to 'libkrun_configure_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 182, "column": 6, "event": "note", "message": "(2) following 'false' branch (when 'rootfs' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 186, "column": 37, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 186, "column": 37, "event": "note", "message": "(4) opened here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 187, "column": 10, "event": "note", "message": "(5) assuming 'rootfsfd_cleanup' is a valid file descriptor (>= 0)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 187, "column": 10, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 191, "column": 6, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 177, "column": 21, "event": "note", "message": "(8) inlined call to 'cleanup_closep' from 'libkrun_configure_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(9) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c", "line": 177, "column": 21, "event": "note", "message": "(11) inlined call to 'cleanup_closep' from 'libkrun_configure_container'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(12) calling 'cleanup_closep.part.0' from 'libkrun_configure_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(13) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(14) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 5, "event": "note", "message": "(15) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(17) second 'close' here; first 'close' was at (14)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "276a12d5f9b97acd0c587a5be6ebb519b7677d17", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'signalfd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3531, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3560, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3563, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3564, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3568, "column": 9, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3569, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3572, "column": 9, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3573, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 572, "column": 1, "event": "note", "message": "(11) entry to 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 578, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(14) calling 'make_container' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 541, "column": 1, "event": "note", "message": "(15) entry to 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(16) calling 'xmalloc0' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(17) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(20) returning to 'make_container' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 551, "column": 6, "event": "note", "message": "(21) following 'false' branch (when 'config' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 554, "column": 10, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(23) returning to 'libcrun_container_load_from_file' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3577, "column": 6, "event": "note", "message": "(25) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3580, "column": 22, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3582, "column": 6, "event": "note", "message": "(27) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3588, "column": 21, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3591, "column": 8, "event": "note", "message": "(29) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3586, "column": 57, "event": "note", "message": "(30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h", "line": 80, "column": 6, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3595, "column": 6, "event": "note", "message": "(32) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3598, "column": 9, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3603, "column": 6, "event": "note", "message": "(34) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3606, "column": 9, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3607, "column": 6, "event": "note", "message": "(36) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3610, "column": 3, "event": "note", "message": "(37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h", "line": 52, "column": 3, "event": "note", "message": "(38) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3613, "column": 6, "event": "note", "message": "(39) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3616, "column": 18, "event": "note", "message": "(40) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3625, "column": 6, "event": "note", "message": "(41) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 11, "event": "note", "message": "(42) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 6, "event": "note", "message": "(43) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3665, "column": 9, "event": "note", "message": "(44) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3666, "column": 6, "event": "note", "message": "(45) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(46) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(47) when 'pipe2' succeeds", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3670, "column": 6, "event": "note", "message": "(48) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3672, "column": 33, "event": "note", "message": "(49) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3693, "column": 9, "event": "note", "message": "(50) calling 'initialize_security' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 641, "column": 1, "event": "note", "message": "(51) entry to 'initialize_security'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 645, "column": 6, "event": "note", "message": "(52) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 648, "column": 11, "event": "note", "message": "(53) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 656, "column": 6, "event": "note", "message": "(54) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 659, "column": 9, "event": "note", "message": "(55) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3693, "column": 9, "event": "note", "message": "(56) returning to 'libcrun_container_exec_with_options' from 'initialize_security'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3694, "column": 6, "event": "note", "message": "(57) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3697, "column": 9, "event": "note", "message": "(58) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3698, "column": 6, "event": "note", "message": "(59) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3702, "column": 47, "event": "note", "message": "(60) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3703, "column": 6, "event": "note", "message": "(61) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3707, "column": 6, "event": "note", "message": "(62) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3707, "column": 6, "event": "note", "message": "(63) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(64) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3728, "column": 6, "event": "note", "message": "(65) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(66) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3767, "column": 6, "event": "note", "message": "(67) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3772, "column": 35, "event": "note", "message": "(68) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3772, "column": 10, "event": "note", "message": "(69) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3784, "column": 38, "event": "note", "message": "(70) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3794, "column": 15, "event": "note", "message": "(71) calling 'wait_for_process' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1969, "column": 1, "event": "note", "message": "(72) entry to 'wait_for_process'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1983, "column": 6, "event": "note", "message": "(73) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1986, "column": 20, "event": "note", "message": "(74) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1997, "column": 6, "event": "note", "message": "(75) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 2000, "column": 11, "event": "note", "message": "(76) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 2000, "column": 6, "event": "note", "message": "(77) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 2007, "column": 3, "event": "note", "message": "(78) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 2009, "column": 6, "event": "note", "message": "(79) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 2012, "column": 14, "event": "note", "message": "(80) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 2013, "column": 6, "event": "note", "message": "(81) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 2016, "column": 9, "event": "note", "message": "(82) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 2017, "column": 6, "event": "note", "message": "(83) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 2020, "column": 7, "event": "note", "message": "(84) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 2020, "column": 6, "event": "note", "message": "(85) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 2023, "column": 11, "event": "note", "message": "(86) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 2023, "column": 6, "event": "note", "message": "(87) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 2057, "column": 14, "event": "note", "message": "(88) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 2058, "column": 6, "event": "note", "message": "(89) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 2060, "column": 11, "event": "note", "message": "(90) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 2069, "column": 6, "event": "note", "message": "(91) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1979, "column": 67, "event": "note", "message": "(92) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1972, "column": 21, "event": "note", "message": "(93) inlined call to 'cleanup_closep' from 'wait_for_process'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(94) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(95) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 1972, "column": 21, "event": "note", "message": "(96) inlined call to 'cleanup_closep' from 'wait_for_process'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(97) calling 'cleanup_closep.part.0' from 'wait_for_process'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(98) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(99) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 5, "event": "note", "message": "(100) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(101) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(102) second 'close' here; first 'close' was at (99)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "e638a3a854edb10e0fd552eb3cdb3ea97ef8e3e4", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'srcfd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2079, "column": 1, "event": "note", "message": "(1) entry to 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2086, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2092, "column": 13, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2092, "column": 31, "event": "note", "message": "(4) following 'true' branch (when 'de' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2094, "column": 25, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2104, "column": 10, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2037, "column": 1, "event": "note", "message": "(9) entry to 'copy_rec_stat_file_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2049, "column": 6, "event": "note", "message": "(10) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2051, "column": 11, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2108, "column": 10, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2111, "column": 20, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2111, "column": 7, "event": "note", "message": "(15) following 'case 16384:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2136, "column": 9, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2138, "column": 14, "event": "note", "message": "(17) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2141, "column": 19, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2142, "column": 14, "event": "note", "message": "(19) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2145, "column": 20, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2146, "column": 14, "event": "note", "message": "(21) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2150, "column": 23, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2151, "column": 14, "event": "note", "message": "(23) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2155, "column": 17, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2155, "column": 17, "event": "note", "message": "(25) calling 'copy_recursive_fd_to_fd' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2079, "column": 1, "event": "note", "message": "(26) entry to 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2086, "column": 6, "event": "note", "message": "(27) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2092, "column": 13, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2092, "column": 31, "event": "note", "message": "(29) following 'true' branch (when 'de' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2094, "column": 25, "event": "note", "message": "(30) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2104, "column": 10, "event": "note", "message": "(31) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2107, "column": 13, "event": "note", "message": "(32) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2108, "column": 10, "event": "note", "message": "(33) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2111, "column": 20, "event": "note", "message": "(34) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2111, "column": 7, "event": "note", "message": "(35) following 'case 32768:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2113, "column": 9, "event": "note", "message": "(36) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2115, "column": 14, "event": "note", "message": "(37) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2118, "column": 20, "event": "note", "message": "(38) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2119, "column": 14, "event": "note", "message": "(39) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2120, "column": 42, "event": "note", "message": "(40) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2095, "column": 25, "event": "note", "message": "(41) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(42) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2094, "column": 25, "event": "note", "message": "(43) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 7, "event": "note", "message": "(44) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(45) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(46) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2094, "column": 25, "event": "note", "message": "(47) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(48) calling 'cleanup_closep.part.0' from 'copy_recursive_fd_to_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(49) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(50) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 5, "event": "note", "message": "(51) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(52) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(53) second 'close' here; first 'close' was at (50)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "7a29e3f84a169c74fae5db07b959fbd0f9f656c3", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'wfd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1360, "column": 1, "event": "note", "message": "(1) entry to 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1370, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(4) following 'false' branch (when 'path' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(6) following 'case 1:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1397, "column": 5, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1398, "column": 14, "event": "note", "message": "(8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1287, "column": 1, "event": "note", "message": "(9) entry to 'update_cgroup_v2_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1293, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1296, "column": 9, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1297, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1300, "column": 18, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1301, "column": 6, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1304, "column": 16, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1333, "column": 6, "event": "note", "message": "(16) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1335, "column": 13, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1335, "column": 13, "event": "note", "message": "(18) calling 'write_blkio_resources' from 'update_cgroup_v2_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 271, "column": 1, "event": "note", "message": "(19) entry to 'write_blkio_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 278, "column": 6, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 311, "column": 12, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 311, "column": 6, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 320, "column": 12, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 320, "column": 6, "event": "note", "message": "(24) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 322, "column": 10, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 322, "column": 10, "event": "note", "message": "(26) following 'true' branch (when 'cgroup2 != 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 324, "column": 29, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 328, "column": 14, "event": "note", "message": "(28) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 324, "column": 29, "event": "note", "message": "(30) inlined call to 'cleanup_closep' from 'write_blkio_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(31) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(32) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 324, "column": 29, "event": "note", "message": "(33) inlined call to 'cleanup_closep' from 'write_blkio_resources'", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(34) calling 'cleanup_closep.part.0' from 'write_blkio_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'cleanup_closep.part.0'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 101, "column": 1, "event": "note", "message": "(35) entry to 'cleanup_closep.part.0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(36) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 5, "event": "note", "message": "(37) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(38) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 105, "column": 25, "event": "note", "message": "(39) second 'close' here; first 'close' was at (36)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| int *pp = (int *) p;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "1a60e01bc1b8659c53992e75fc9e8aba4d449c30", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_set_stdio'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 106, "column": 1, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'ret'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 95, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_set_stdio'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 100, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 103, "column": 17, "event": "note", "message": "(4) following 'true' branch (when 'i != 3')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 105, "column": 13, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 105, "column": 13, "event": "note", "message": "(6) opened here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 106, "column": 10, "event": "note", "message": "(7) assuming 'ret' is a valid file descriptor (>= 0)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 106, "column": 10, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 103, "column": 23, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 103, "column": 17, "event": "note", "message": "(10) following 'true' branch (when 'i != 3')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 105, "column": 13, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 105, "column": 13, "event": "note", "message": "(12) opened here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 106, "column": 10, "event": "note", "message": "(13) assuming 'ret' is a valid file descriptor (>= 0)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 106, "column": 10, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 103, "column": 23, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 98, "column": 21, "event": "note", "message": "(16) inlined call to 'cleanup_closep' from 'libcrun_set_stdio'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(17) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 106, "column": 1, "event": "note", "message": "(19) 'ret' leaks here; was opened at (12)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| if (*pp >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105| TEMP_FAILURE_RETRY (close (*pp));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106|-> }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 108| static inline void", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "f5776f7d72d9f6935bc5999f3fb3f69fc4c6b832", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'close_and_reset'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 207, "column": 33, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'memfd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 200, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_apply_seccomp'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 214, "column": 6, "event": "note", "message": "(2) following 'false' branch (when 'infd >= 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 217, "column": 17, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 217, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 221, "column": 6, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 242, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 245, "column": 28, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 248, "column": 6, "event": "note", "message": "(8) following 'true' branch (when 'listener_receiver_fd >= 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 250, "column": 25, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 261, "column": 10, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 267, "column": 13, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 268, "column": 10, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 271, "column": 13, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 273, "column": 10, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 277, "column": 7, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c", "line": 277, "column": 7, "event": "note", "message": "(16) calling 'close_and_reset' from 'libcrun_apply_seccomp'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 202, "column": 1, "event": "note", "message": "(17) entry to 'close_and_reset'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 205, "column": 6, "event": "note", "message": "(18) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 207, "column": 33, "event": "note", "message": "(20) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 207, "column": 13, "event": "note", "message": "(21) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 207, "column": 33, "event": "note", "message": "(23) second 'close' here; first 'close' was at (20)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 205| if (*fd >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 206| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 207|-> ret = TEMP_FAILURE_RETRY (close (*fd));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 208| if (LIKELY (ret == 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 209| *fd = -1;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "a484659b3e3a08fc4ef959362726dfa244ac118e", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 207, "column": 33, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'own_seccomp_receiver_fd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3531, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3560, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3563, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3564, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3568, "column": 9, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3569, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3572, "column": 9, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3573, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 572, "column": 1, "event": "note", "message": "(11) entry to 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 578, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(14) calling 'make_container' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 541, "column": 1, "event": "note", "message": "(15) entry to 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(16) calling 'xmalloc0' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(17) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(20) returning to 'make_container' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 551, "column": 6, "event": "note", "message": "(21) following 'false' branch (when 'config' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 554, "column": 10, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(23) returning to 'libcrun_container_load_from_file' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3577, "column": 6, "event": "note", "message": "(25) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3580, "column": 22, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3582, "column": 6, "event": "note", "message": "(27) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3588, "column": 21, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3591, "column": 8, "event": "note", "message": "(29) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3586, "column": 57, "event": "note", "message": "(30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h", "line": 80, "column": 6, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'close_and_reset'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3595, "column": 6, "event": "note", "message": "(32) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3598, "column": 9, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3603, "column": 6, "event": "note", "message": "(34) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3606, "column": 9, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3607, "column": 6, "event": "note", "message": "(36) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3610, "column": 3, "event": "note", "message": "(37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h", "line": 52, "column": 3, "event": "note", "message": "(38) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'close_and_reset'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3613, "column": 6, "event": "note", "message": "(39) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3616, "column": 18, "event": "note", "message": "(40) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3616, "column": 6, "event": "note", "message": "(41) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3618, "column": 13, "event": "note", "message": "(42) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3618, "column": 13, "event": "note", "message": "(43) calling 'get_seccomp_receiver_fd' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 2285, "column": 1, "event": "note", "message": "(44) entry to 'get_seccomp_receiver_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 2295, "column": 6, "event": "note", "message": "(45) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 2300, "column": 13, "event": "note", "message": "(46) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 2301, "column": 10, "event": "note", "message": "(47) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 2304, "column": 16, "event": "note", "message": "(48) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3618, "column": 13, "event": "note", "message": "(49) returning to 'libcrun_container_exec_with_options' from 'get_seccomp_receiver_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3621, "column": 10, "event": "note", "message": "(50) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3625, "column": 29, "event": "note", "message": "(51) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3625, "column": 6, "event": "note", "message": "(52) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 11, "event": "note", "message": "(53) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 6, "event": "note", "message": "(54) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3665, "column": 9, "event": "note", "message": "(55) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3666, "column": 6, "event": "note", "message": "(56) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(57) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(58) when 'pipe2' succeeds", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3670, "column": 6, "event": "note", "message": "(59) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3672, "column": 33, "event": "note", "message": "(60) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3677, "column": 6, "event": "note", "message": "(61) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3679, "column": 18, "event": "note", "message": "(62) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3685, "column": 10, "event": "note", "message": "(63) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3687, "column": 27, "event": "note", "message": "(64) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3688, "column": 14, "event": "note", "message": "(65) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3693, "column": 9, "event": "note", "message": "(66) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3693, "column": 9, "event": "note", "message": "(67) calling 'initialize_security' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 641, "column": 1, "event": "note", "message": "(68) entry to 'initialize_security'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 645, "column": 6, "event": "note", "message": "(69) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 648, "column": 11, "event": "note", "message": "(70) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 656, "column": 6, "event": "note", "message": "(71) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 659, "column": 9, "event": "note", "message": "(72) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3693, "column": 9, "event": "note", "message": "(73) returning to 'libcrun_container_exec_with_options' from 'initialize_security'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3694, "column": 6, "event": "note", "message": "(74) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3697, "column": 9, "event": "note", "message": "(75) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3698, "column": 6, "event": "note", "message": "(76) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3702, "column": 47, "event": "note", "message": "(77) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3703, "column": 6, "event": "note", "message": "(78) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3707, "column": 6, "event": "note", "message": "(79) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3707, "column": 6, "event": "note", "message": "(80) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(81) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3728, "column": 6, "event": "note", "message": "(82) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(83) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3767, "column": 6, "event": "note", "message": "(84) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3772, "column": 35, "event": "note", "message": "(85) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3772, "column": 10, "event": "note", "message": "(86) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3774, "column": 31, "event": "note", "message": "(87) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3775, "column": 14, "event": "note", "message": "(88) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3778, "column": 17, "event": "note", "message": "(89) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3778, "column": 17, "event": "note", "message": "(90) calling 'close_and_reset' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 202, "column": 1, "event": "note", "message": "(91) entry to 'close_and_reset'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 205, "column": 6, "event": "note", "message": "(92) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(93) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 207, "column": 33, "event": "note", "message": "(94) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 207, "column": 13, "event": "note", "message": "(95) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(96) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 207, "column": 33, "event": "note", "message": "(97) second 'close' here; first 'close' was at (94)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 205| if (*fd >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 206| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 207|-> ret = TEMP_FAILURE_RETRY (close (*fd));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 208| if (LIKELY (ret == 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 209| *fd = -1;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "2d3387b8a30ba9efca083c51386f663bdc25d7c3", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 207, "column": 33, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'seccomp_fd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3531, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3560, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3563, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3564, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3568, "column": 9, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3569, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3572, "column": 9, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3573, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 572, "column": 1, "event": "note", "message": "(11) entry to 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 578, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(14) calling 'make_container' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 541, "column": 1, "event": "note", "message": "(15) entry to 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(16) calling 'xmalloc0' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(17) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(20) returning to 'make_container' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 551, "column": 6, "event": "note", "message": "(21) following 'false' branch (when 'config' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 554, "column": 10, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(23) returning to 'libcrun_container_load_from_file' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3577, "column": 6, "event": "note", "message": "(25) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3580, "column": 22, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3582, "column": 6, "event": "note", "message": "(27) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3588, "column": 21, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3591, "column": 8, "event": "note", "message": "(29) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3586, "column": 57, "event": "note", "message": "(30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h", "line": 80, "column": 6, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'close_and_reset'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3595, "column": 6, "event": "note", "message": "(32) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3598, "column": 9, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3603, "column": 6, "event": "note", "message": "(34) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3606, "column": 9, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3607, "column": 6, "event": "note", "message": "(36) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3610, "column": 3, "event": "note", "message": "(37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h", "line": 52, "column": 3, "event": "note", "message": "(38) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'close_and_reset'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3613, "column": 6, "event": "note", "message": "(39) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3616, "column": 18, "event": "note", "message": "(40) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3625, "column": 6, "event": "note", "message": "(41) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 11, "event": "note", "message": "(42) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 6, "event": "note", "message": "(43) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3665, "column": 9, "event": "note", "message": "(44) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3666, "column": 6, "event": "note", "message": "(45) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(46) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(47) when 'pipe2' succeeds", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3670, "column": 6, "event": "note", "message": "(48) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3672, "column": 33, "event": "note", "message": "(49) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3693, "column": 9, "event": "note", "message": "(50) calling 'initialize_security' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 641, "column": 1, "event": "note", "message": "(51) entry to 'initialize_security'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 645, "column": 6, "event": "note", "message": "(52) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 648, "column": 11, "event": "note", "message": "(53) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 656, "column": 6, "event": "note", "message": "(54) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 659, "column": 9, "event": "note", "message": "(55) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3693, "column": 9, "event": "note", "message": "(56) returning to 'libcrun_container_exec_with_options' from 'initialize_security'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3694, "column": 6, "event": "note", "message": "(57) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3697, "column": 9, "event": "note", "message": "(58) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3698, "column": 6, "event": "note", "message": "(59) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3702, "column": 47, "event": "note", "message": "(60) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3703, "column": 6, "event": "note", "message": "(61) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3707, "column": 6, "event": "note", "message": "(62) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3707, "column": 6, "event": "note", "message": "(63) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(64) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3725, "column": 6, "event": "note", "message": "(65) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3726, "column": 5, "event": "note", "message": "(66) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3726, "column": 5, "event": "note", "message": "(67) calling 'close_and_reset' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 202, "column": 1, "event": "note", "message": "(68) entry to 'close_and_reset'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 205, "column": 6, "event": "note", "message": "(69) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(70) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 207, "column": 33, "event": "note", "message": "(71) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 207, "column": 13, "event": "note", "message": "(72) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(73) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 207, "column": 33, "event": "note", "message": "(74) second 'close' here; first 'close' was at (71)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 205| if (*fd >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 206| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 207|-> ret = TEMP_FAILURE_RETRY (close (*fd));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 208| if (LIKELY (ret == 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 209| *fd = -1;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "0e3275d42672a9090effcdfeb4daeee25c78f03f", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'close_and_reset'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 207, "column": 33, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'seccomp_receiver_fd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3315, "column": 1, "event": "note", "message": "(1) entry to 'exec_process_entrypoint'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3348, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3351, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3352, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3355, "column": 14, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3384, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3387, "column": 9, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3388, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3391, "column": 16, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3391, "column": 6, "event": "note", "message": "(10) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3393, "column": 21, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3416, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3419, "column": 16, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3419, "column": 6, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3421, "column": 26, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3433, "column": 10, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3436, "column": 7, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3437, "column": 7, "event": "note", "message": "(18) calling 'close_and_reset' from 'exec_process_entrypoint'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 202, "column": 1, "event": "note", "message": "(19) entry to 'close_and_reset'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 205, "column": 6, "event": "note", "message": "(20) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 207, "column": 33, "event": "note", "message": "(22) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 207, "column": 13, "event": "note", "message": "(23) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 207, "column": 33, "event": "note", "message": "(25) second 'close' here; first 'close' was at (22)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 205| if (*fd >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 206| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 207|-> ret = TEMP_FAILURE_RETRY (close (*fd));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 208| if (LIKELY (ret == 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 209| *fd = -1;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 1341, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "db2c3a86722724964cfba1291c7c170853cbb12b", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 207, "column": 33, "event": "warning[-Wanalyzer-fd-double-close]", "message": "double 'close' of file descriptor 'terminal_fd'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3531, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3560, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3563, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3564, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3568, "column": 9, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3569, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3572, "column": 9, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3573, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 572, "column": 1, "event": "note", "message": "(11) entry to 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 578, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(14) calling 'make_container' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 541, "column": 1, "event": "note", "message": "(15) entry to 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(16) calling 'xmalloc0' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(17) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(20) returning to 'make_container' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 551, "column": 6, "event": "note", "message": "(21) following 'false' branch (when 'config' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 554, "column": 10, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(23) returning to 'libcrun_container_load_from_file' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3577, "column": 6, "event": "note", "message": "(25) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3580, "column": 22, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3582, "column": 6, "event": "note", "message": "(27) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3588, "column": 21, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3591, "column": 8, "event": "note", "message": "(29) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3586, "column": 57, "event": "note", "message": "(30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h", "line": 80, "column": 6, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'close_and_reset'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3595, "column": 6, "event": "note", "message": "(32) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3598, "column": 9, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3603, "column": 6, "event": "note", "message": "(34) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3606, "column": 9, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3607, "column": 6, "event": "note", "message": "(36) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3610, "column": 3, "event": "note", "message": "(37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h", "line": 52, "column": 3, "event": "note", "message": "(38) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'close_and_reset'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3613, "column": 6, "event": "note", "message": "(39) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3616, "column": 18, "event": "note", "message": "(40) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3625, "column": 6, "event": "note", "message": "(41) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 11, "event": "note", "message": "(42) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 6, "event": "note", "message": "(43) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3665, "column": 9, "event": "note", "message": "(44) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3666, "column": 6, "event": "note", "message": "(45) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(46) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(47) when 'pipe2' succeeds", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3670, "column": 6, "event": "note", "message": "(48) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3672, "column": 33, "event": "note", "message": "(49) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3693, "column": 9, "event": "note", "message": "(50) calling 'initialize_security' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 641, "column": 1, "event": "note", "message": "(51) entry to 'initialize_security'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 645, "column": 6, "event": "note", "message": "(52) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 648, "column": 11, "event": "note", "message": "(53) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 656, "column": 6, "event": "note", "message": "(54) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 659, "column": 9, "event": "note", "message": "(55) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3693, "column": 9, "event": "note", "message": "(56) returning to 'libcrun_container_exec_with_options' from 'initialize_security'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3694, "column": 6, "event": "note", "message": "(57) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3697, "column": 9, "event": "note", "message": "(58) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3698, "column": 6, "event": "note", "message": "(59) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3702, "column": 47, "event": "note", "message": "(60) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3703, "column": 6, "event": "note", "message": "(61) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3707, "column": 6, "event": "note", "message": "(62) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3707, "column": 6, "event": "note", "message": "(63) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(64) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3728, "column": 6, "event": "note", "message": "(65) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3732, "column": 18, "event": "note", "message": "(66) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3732, "column": 10, "event": "note", "message": "(67) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3738, "column": 13, "event": "note", "message": "(68) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3739, "column": 10, "event": "note", "message": "(69) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3742, "column": 18, "event": "note", "message": "(70) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3742, "column": 10, "event": "note", "message": "(71) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3745, "column": 49, "event": "note", "message": "(72) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3746, "column": 14, "event": "note", "message": "(73) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3748, "column": 17, "event": "note", "message": "(74) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3749, "column": 14, "event": "note", "message": "(75) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3751, "column": 11, "event": "note", "message": "(76) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3751, "column": 11, "event": "note", "message": "(77) calling 'close_and_reset' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 202, "column": 1, "event": "note", "message": "(78) entry to 'close_and_reset'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 205, "column": 6, "event": "note", "message": "(79) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(80) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 207, "column": 33, "event": "note", "message": "(81) first 'close' here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 207, "column": 13, "event": "note", "message": "(82) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(83) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 207, "column": 33, "event": "note", "message": "(84) second 'close' here; first 'close' was at (81)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 205| if (*fd >= 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 206| {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 207|-> ret = TEMP_FAILURE_RETRY (close (*fd));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 208| if (LIKELY (ret == 0))", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 209| *fd = -1;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "603fd0bac2127c2121a332dd0c03246341d7d869", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_get_features'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xstrdup(\"1.0.0\")'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4034, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_get_features'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4046, "column": 11, "event": "note", "message": "(2) calling 'xmalloc0' from 'libcrun_container_get_features'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(3) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4046, "column": 11, "event": "note", "message": "(6) returning to 'libcrun_container_get_features' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4049, "column": 30, "event": "note", "message": "(7) calling 'xstrdup' from 'libcrun_container_get_features'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(8) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(9) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(11) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(12) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(13) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4049, "column": 30, "event": "note", "message": "(15) returning to 'libcrun_container_get_features' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(16) 'xstrdup(\"1.0.0\")' leaks here; was allocated at (11)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 220| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 221| ret = strdup (str);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 222|-> if (ret == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 223| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 224| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "8647fad891247ff7fb8caa3e3d40320ce1d8defb", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xstrdup(\"1.1.0+dev\")'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4034, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_get_features'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4046, "column": 11, "event": "note", "message": "(2) calling 'xmalloc0' from 'libcrun_container_get_features'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(3) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4046, "column": 11, "event": "note", "message": "(6) returning to 'libcrun_container_get_features' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4049, "column": 30, "event": "note", "message": "(7) calling 'xstrdup' from 'libcrun_container_get_features'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(8) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(9) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(11) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4049, "column": 30, "event": "note", "message": "(13) returning to 'libcrun_container_get_features' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4050, "column": 30, "event": "note", "message": "(14) calling 'xstrdup' from 'libcrun_container_get_features'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(15) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(16) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(18) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(19) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(20) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4050, "column": 30, "event": "note", "message": "(22) returning to 'libcrun_container_get_features' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(23) 'xstrdup(\"1.1.0+dev\")' leaks here; was allocated at (18)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 220| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 221| ret = strdup (str);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 222|-> if (ret == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 223| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 224| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "23a8966fcdc7a554bb177916f821b47f5ad31494", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'read_dir_entries'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xstrdup(&*<unknown>.d_name)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2542, "column": 1, "event": "note", "message": "(1) entry to 'read_dir_entries'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2551, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2557, "column": 13, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2557, "column": 13, "event": "note", "message": "(4) calling 'xmalloc' from 'read_dir_entries'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(5) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2557, "column": 13, "event": "note", "message": "(8) returning to 'read_dir_entries' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2558, "column": 10, "event": "note", "message": "(9) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2560, "column": 21, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2560, "column": 10, "event": "note", "message": "(11) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2562, "column": 10, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2562, "column": 10, "event": "note", "message": "(13) following 'false' branch (when 'n_entries != entries_size')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2567, "column": 24, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2567, "column": 30, "event": "note", "message": "(15) calling 'xstrdup' from 'read_dir_entries'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(16) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(17) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(19) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(20) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(21) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 2567, "column": 30, "event": "note", "message": "(23) returning to 'read_dir_entries' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(24) 'xstrdup(&*<unknown>.d_name)' leaks here; was allocated at (19)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 220| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 221| ret = strdup (str);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 222|-> if (ret == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 223| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 224| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "2f71ccea551bc5e1ce7b34292199923e4b534a54", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_get_containers_list'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xstrdup(&*next.d_name)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 575, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_get_containers_list'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 579, "column": 29, "event": "note", "message": "(2) calling 'get_run_directory' from 'libcrun_get_containers_list'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 42, "column": 1, "event": "note", "message": "(3) entry to 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 48, "column": 6, "event": "note", "message": "(4) following 'false' branch (when 'state_root' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 12, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 50, "column": 6, "event": "note", "message": "(6) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 52, "column": 33, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 56, "column": 14, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 63, "column": 12, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 579, "column": 29, "event": "note", "message": "(10) returning to 'libcrun_get_containers_list' from 'get_run_directory'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 584, "column": 6, "event": "note", "message": "(11) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 587, "column": 15, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 587, "column": 30, "event": "note", "message": "(13) following 'true' branch (when 'next' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 590, "column": 26, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 594, "column": 10, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 597, "column": 54, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 598, "column": 10, "event": "note", "message": "(17) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 601, "column": 16, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 602, "column": 10, "event": "note", "message": "(19) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 607, "column": 10, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 607, "column": 10, "event": "note", "message": "(21) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 613, "column": 24, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 613, "column": 24, "event": "note", "message": "(23) calling 'xmalloc' from 'libcrun_get_containers_list'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(24) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(25) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 613, "column": 24, "event": "note", "message": "(27) returning to 'libcrun_get_containers_list' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 614, "column": 30, "event": "note", "message": "(28) calling 'xstrdup' from 'libcrun_get_containers_list'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(29) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(30) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(32) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(33) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(34) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/status.c", "line": 614, "column": 30, "event": "note", "message": "(36) returning to 'libcrun_get_containers_list' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(37) 'xstrdup(&*next.d_name)' leaks here; was allocated at (32)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 220| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 221| ret = strdup (str);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 222|-> if (ret == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 223| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 224| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "438b753be16e2fd03e37cf53c527b0f098dff720", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_new_terminal'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xstrdup(&buf)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 40, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_new_terminal'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 45, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 48, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 49, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 52, "column": 9, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 53, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 56, "column": 10, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 56, "column": 10, "event": "note", "message": "(8) calling 'xstrdup' from 'libcrun_new_terminal'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(9) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(10) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(12) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(13) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(14) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/terminal.c", "line": 56, "column": 10, "event": "note", "message": "(16) returning to 'libcrun_new_terminal' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(17) 'xstrdup(&buf)' leaks here; was allocated at (12)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 220| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 221| ret = strdup (str);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 222|-> if (ret == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 223| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 224| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "efe8e48971a99a0860c836d3ca2becd77d3d84ba", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'write_unified_resources'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xstrdup(*<unknown>)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1360, "column": 1, "event": "note", "message": "(1) entry to 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1370, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(4) following 'false' branch (when 'path' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(6) following 'case 1:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1397, "column": 5, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1398, "column": 14, "event": "note", "message": "(8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1287, "column": 1, "event": "note", "message": "(9) entry to 'update_cgroup_v2_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1293, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1296, "column": 9, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1297, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1300, "column": 18, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1301, "column": 6, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1304, "column": 16, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1349, "column": 6, "event": "note", "message": "(16) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1351, "column": 13, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1351, "column": 13, "event": "note", "message": "(18) calling 'write_unified_resources' from 'update_cgroup_v2_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1251, "column": 1, "event": "note", "message": "(19) entry to 'write_unified_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1256, "column": 17, "event": "note", "message": "(20) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1258, "column": 25, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1263, "column": 11, "event": "note", "message": "(22) when 'strchr' returns NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1263, "column": 10, "event": "note", "message": "(23) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1266, "column": 46, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1266, "column": 11, "event": "note", "message": "(25) inlined call to 'is_empty_string' from 'write_unified_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 395, "column": 20, "event": "note", "message": "(26) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 0, "event": "scope_hint", "message": "In function 'write_unified_resources'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1269, "column": 15, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1269, "column": 15, "event": "note", "message": "(28) calling 'xstrdup' from 'write_unified_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(29) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(30) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(32) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(33) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(34) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1269, "column": 15, "event": "note", "message": "(36) returning to 'write_unified_resources' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(37) 'xstrdup(*<unknown>)' leaks here; was allocated at (32)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 220| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 221| ret = strdup (str);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 222|-> if (ret == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 223| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 224| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "61abf696747822fc714fedf6b33be2e520e5cad7", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'retrieve_mount_options'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xstrdup(*<unknown>.name)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4013, "column": 1, "event": "note", "message": "(1) entry to 'retrieve_mount_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4026, "column": 28, "event": "note", "message": "(2) calling 'xmalloc0' from 'retrieve_mount_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(3) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4026, "column": 28, "event": "note", "message": "(6) returning to 'retrieve_mount_options' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4029, "column": 24, "event": "note", "message": "(7) following 'true' branch (when 'num_mount_options > i')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4030, "column": 60, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4030, "column": 33, "event": "note", "message": "(9) calling 'xstrdup' from 'retrieve_mount_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(10) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(11) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(13) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(14) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(15) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 4030, "column": 33, "event": "note", "message": "(17) returning to 'retrieve_mount_options' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(18) 'xstrdup(*<unknown>.name)' leaks here; was allocated at (13)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 220| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 221| ret = strdup (str);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 222|-> if (ret == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 223| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 224| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "a20e1f6259932de88e441beb3a2838fbfe71da7c", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_exec_with_options'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xstrdup(*_70->process.selinux_label)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3531, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3560, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3563, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3564, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3568, "column": 9, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3569, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3572, "column": 9, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3573, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 572, "column": 1, "event": "note", "message": "(11) entry to 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 578, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(14) calling 'make_container' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 541, "column": 1, "event": "note", "message": "(15) entry to 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(16) calling 'xmalloc0' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(17) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(20) returning to 'make_container' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 551, "column": 6, "event": "note", "message": "(21) following 'false' branch (when 'config' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 554, "column": 10, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(23) returning to 'libcrun_container_load_from_file' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3577, "column": 6, "event": "note", "message": "(25) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3580, "column": 22, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3582, "column": 6, "event": "note", "message": "(27) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3588, "column": 21, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3591, "column": 8, "event": "note", "message": "(29) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3586, "column": 57, "event": "note", "message": "(30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h", "line": 80, "column": 6, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_exec_with_options'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3595, "column": 6, "event": "note", "message": "(32) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3598, "column": 9, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3603, "column": 6, "event": "note", "message": "(34) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3606, "column": 9, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3607, "column": 6, "event": "note", "message": "(36) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3610, "column": 3, "event": "note", "message": "(37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h", "line": 52, "column": 3, "event": "note", "message": "(38) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_exec_with_options'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3613, "column": 6, "event": "note", "message": "(39) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3616, "column": 18, "event": "note", "message": "(40) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3625, "column": 6, "event": "note", "message": "(41) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 11, "event": "note", "message": "(42) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 6, "event": "note", "message": "(43) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3665, "column": 9, "event": "note", "message": "(44) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3666, "column": 6, "event": "note", "message": "(45) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(46) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(47) when 'pipe2' succeeds", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3670, "column": 6, "event": "note", "message": "(48) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3672, "column": 33, "event": "note", "message": "(49) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3677, "column": 6, "event": "note", "message": "(50) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3679, "column": 18, "event": "note", "message": "(51) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3679, "column": 10, "event": "note", "message": "(52) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3680, "column": 34, "event": "note", "message": "(53) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3680, "column": 34, "event": "note", "message": "(54) calling 'xstrdup' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(55) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(56) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(57) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(58) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(59) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(60) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(61) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3680, "column": 34, "event": "note", "message": "(62) returning to 'libcrun_container_exec_with_options' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(63) 'xstrdup(*_70->process.selinux_label)' leaks here; was allocated at (58)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 220| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 221| ret = strdup (str);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 222|-> if (ret == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 223| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 224| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "d377a984336f7416f677df8143d9c265a5e160d9", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xstrdup(*_75->process.apparmor_profile)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3531, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3560, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3563, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3564, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3568, "column": 9, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3569, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3572, "column": 9, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3573, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 572, "column": 1, "event": "note", "message": "(11) entry to 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 578, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(14) calling 'make_container' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 541, "column": 1, "event": "note", "message": "(15) entry to 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(16) calling 'xmalloc0' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(17) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 543, "column": 36, "event": "note", "message": "(20) returning to 'make_container' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 551, "column": 6, "event": "note", "message": "(21) following 'false' branch (when 'config' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 554, "column": 10, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 583, "column": 10, "event": "note", "message": "(23) returning to 'libcrun_container_load_from_file' from 'make_container'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3576, "column": 15, "event": "note", "message": "(24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3577, "column": 6, "event": "note", "message": "(25) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3580, "column": 22, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3582, "column": 6, "event": "note", "message": "(27) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3588, "column": 21, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3591, "column": 8, "event": "note", "message": "(29) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3586, "column": 57, "event": "note", "message": "(30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h", "line": 80, "column": 6, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_exec_with_options'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3595, "column": 6, "event": "note", "message": "(32) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3598, "column": 9, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3603, "column": 6, "event": "note", "message": "(34) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3606, "column": 9, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3607, "column": 6, "event": "note", "message": "(36) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3610, "column": 3, "event": "note", "message": "(37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h", "line": 52, "column": 3, "event": "note", "message": "(38) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_exec_with_options'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3613, "column": 6, "event": "note", "message": "(39) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3616, "column": 18, "event": "note", "message": "(40) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3625, "column": 6, "event": "note", "message": "(41) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 11, "event": "note", "message": "(42) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3628, "column": 6, "event": "note", "message": "(43) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3665, "column": 9, "event": "note", "message": "(44) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3666, "column": 6, "event": "note", "message": "(45) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(46) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3669, "column": 9, "event": "note", "message": "(47) when 'pipe2' succeeds", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3670, "column": 6, "event": "note", "message": "(48) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3672, "column": 33, "event": "note", "message": "(49) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3677, "column": 6, "event": "note", "message": "(50) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3679, "column": 18, "event": "note", "message": "(51) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3682, "column": 10, "event": "note", "message": "(52) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3683, "column": 37, "event": "note", "message": "(53) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3683, "column": 37, "event": "note", "message": "(54) calling 'xstrdup' from 'libcrun_container_exec_with_options'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(55) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(56) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(57) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(58) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(59) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(60) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(61) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/container.c", "line": 3683, "column": 37, "event": "note", "message": "(62) returning to 'libcrun_container_exec_with_options' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(63) 'xstrdup(*_75->process.apparmor_profile)' leaks here; was allocated at (58)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 220| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 221| ret = strdup (str);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 222|-> if (ret == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 223| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 224| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "95f3364f9a2956583dffd6077069560f9c962f66", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'libcrun_container_restore_linux_criu'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xstrdup(*status.bundle)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 733, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_container_restore_linux_criu'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 748, "column": 9, "event": "note", "message": "(2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 116, "column": 1, "event": "note", "message": "(3) entry to 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 118, "column": 52, "event": "note", "message": "(4) calling 'xmalloc0' from 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(5) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 118, "column": 52, "event": "note", "message": "(8) returning to 'load_wrapper' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 748, "column": 9, "event": "note", "message": "(9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 749, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 752, "column": 7, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 752, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 755, "column": 24, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 756, "column": 6, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 759, "column": 24, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 759, "column": 6, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 762, "column": 27, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 762, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 765, "column": 14, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 766, "column": 6, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 769, "column": 18, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 779, "column": 8, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 782, "column": 11, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 783, "column": 8, "event": "note", "message": "(24) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 792, "column": 12, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 793, "column": 8, "event": "note", "message": "(26) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h", "line": 155, "column": 49, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 796, "column": 17, "event": "note", "message": "in expansion of macro 'YAJL_IS_ARRAY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 872, "column": 6, "event": "note", "message": "(28) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 873, "column": 37, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 873, "column": 22, "event": "note", "message": "(30) calling 'xstrdup' from 'libcrun_container_restore_linux_criu'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(31) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(32) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(34) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(35) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(36) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(37) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/criu.c", "line": 873, "column": 22, "event": "note", "message": "(38) returning to 'libcrun_container_restore_linux_criu' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(39) 'xstrdup(*status.bundle)' leaks here; was allocated at (34)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 220| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 221| ret = strdup (str);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 222|-> if (ret == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 223| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 224| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "d7970d7e45a17da2bf79a40a28511678a242d3b4", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'compare_rdt_configurations'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xstrdup(<unknown>)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 233, "column": 1, "event": "note", "message": "(1) entry to 'resctl_create'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 241, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 243, "column": 6, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 243, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 246, "column": 9, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 247, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 250, "column": 11, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 251, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 254, "column": 6, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 254, "column": 6, "event": "note", "message": "(10) following 'true' branch (when 'l3_cache_schema' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 254, "column": 26, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 254, "column": 26, "event": "note", "message": "(12) when 'strstr' returns NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 254, "column": 23, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 259, "column": 43, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 259, "column": 6, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 268, "column": 6, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 268, "column": 6, "event": "note", "message": "(17) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 269, "column": 12, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 269, "column": 12, "event": "note", "message": "(19) calling 'validate_rdt_configuration' from 'resctl_create'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 158, "column": 1, "event": "note", "message": "(20) entry to 'validate_rdt_configuration'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 166, "column": 6, "event": "note", "message": "(21) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 169, "column": 9, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 170, "column": 6, "event": "note", "message": "(23) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 173, "column": 7, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 174, "column": 10, "event": "note", "message": "(25) following 'true' branch (when 'it' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 178, "column": 10, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 178, "column": 10, "event": "note", "message": "(27) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 179, "column": 15, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 179, "column": 15, "event": "note", "message": "(29) calling 'compare_rdt_configurations' from 'validate_rdt_configuration'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 98, "column": 1, "event": "note", "message": "(30) entry to 'compare_rdt_configurations'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 108, "column": 8, "event": "note", "message": "(31) when 'strchr' returns NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 109, "column": 19, "event": "note", "message": "(32) following 'false' branch (when 'it' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 111, "column": 8, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 111, "column": 8, "event": "note", "message": "(34) when 'strchr' returns NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 112, "column": 19, "event": "note", "message": "(35) following 'false' branch (when 'it' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 114, "column": 15, "event": "note", "message": "(36) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 117, "column": 6, "event": "note", "message": "(37) following 'false' branch (when 'n_parts_a == n_parts_b')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 120, "column": 56, "event": "note", "message": "(38) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 120, "column": 8, "event": "note", "message": "(39) calling 'xmalloc' from 'compare_rdt_configurations'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(40) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(41) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(42) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 120, "column": 8, "event": "note", "message": "(43) returning to 'compare_rdt_configurations' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 122, "column": 18, "event": "note", "message": "(44) calling 'xstrdup' from 'compare_rdt_configurations'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(45) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(46) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(47) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(48) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(49) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(50) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(51) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c", "line": 122, "column": 18, "event": "note", "message": "(52) returning to 'compare_rdt_configurations' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(53) 'xstrdup(<unknown>)' leaks here; was allocated at (48)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 220| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 221| ret = strdup (str);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 222|-> if (ret == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 223| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 224| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "e049d88b323bb2747f0ac495d145e1f9d7076f46", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xstrdup(exec_options.apparmor)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 245, "column": 1, "event": "note", "message": "(1) entry to 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 264, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 267, "column": 37, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 272, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 278, "column": 19, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 278, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 282, "column": 17, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 282, "column": 17, "event": "note", "message": "(8) calling 'xmalloc0' from 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(9) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 282, "column": 17, "event": "note", "message": "(12) returning to 'crun_command_exec' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 286, "column": 23, "event": "note", "message": "(13) calling 'xmalloc0' from 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(14) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 286, "column": 23, "event": "note", "message": "(17) returning to 'crun_command_exec' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 287, "column": 21, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 289, "column": 14, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 290, "column": 10, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 292, "column": 39, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 295, "column": 23, "event": "note", "message": "(22) calling 'make_oci_process_user' from 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 202, "column": 1, "event": "note", "message": "(23) entry to 'make_oci_process_user'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 207, "column": 6, "event": "note", "message": "(24) following 'true' branch (when 'userspec' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 208, "column": 12, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 295, "column": 23, "event": "note", "message": "(26) returning to 'crun_command_exec' from 'make_oci_process_user'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 297, "column": 10, "event": "note", "message": "(27) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 300, "column": 23, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 300, "column": 10, "event": "note", "message": "(29) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 301, "column": 37, "event": "note", "message": "(30) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 301, "column": 37, "event": "note", "message": "(31) calling 'xstrdup' from 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(32) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(33) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(34) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(35) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(36) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(37) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(38) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 301, "column": 37, "event": "note", "message": "(39) returning to 'crun_command_exec' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(40) 'xstrdup(exec_options.apparmor)' leaks here; was allocated at (35)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 220| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 221| ret = strdup (str);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 222|-> if (ret == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 223| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 224| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "a53de2a8f8ba3e0c108586ccdf05906c0e1e0586", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xstrdup(exec_options.process_label)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 245, "column": 1, "event": "note", "message": "(1) entry to 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 264, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 267, "column": 37, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 272, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 278, "column": 19, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 278, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 282, "column": 17, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 282, "column": 17, "event": "note", "message": "(8) calling 'xmalloc0' from 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(9) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 282, "column": 17, "event": "note", "message": "(12) returning to 'crun_command_exec' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 286, "column": 23, "event": "note", "message": "(13) calling 'xmalloc0' from 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(14) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 286, "column": 23, "event": "note", "message": "(17) returning to 'crun_command_exec' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 287, "column": 21, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 289, "column": 14, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 290, "column": 10, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 292, "column": 39, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 295, "column": 23, "event": "note", "message": "(22) calling 'make_oci_process_user' from 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 202, "column": 1, "event": "note", "message": "(23) entry to 'make_oci_process_user'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 207, "column": 6, "event": "note", "message": "(24) following 'true' branch (when 'userspec' is NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 208, "column": 12, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 295, "column": 23, "event": "note", "message": "(26) returning to 'crun_command_exec' from 'make_oci_process_user'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 297, "column": 10, "event": "note", "message": "(27) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 298, "column": 34, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 298, "column": 34, "event": "note", "message": "(29) calling 'xstrdup' from 'crun_command_exec'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(30) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(31) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(32) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(33) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(34) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(35) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(36) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/exec.c", "line": 298, "column": 34, "event": "note", "message": "(37) returning to 'crun_command_exec' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(38) 'xstrdup(exec_options.process_label)' leaks here; was allocated at (33)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 220| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 221| ret = strdup (str);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 222|-> if (ret == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 223| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 224| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "841f1a96fbd69a79344fcabacab87b69c4d72e7b", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'find_executable'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xstrdup(executable_path)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1880, "column": 1, "event": "note", "message": "(1) entry to 'find_executable'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1889, "column": 6, "event": "note", "message": "(2) following 'false' branch (when 'executable_path' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1895, "column": 22, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1895, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1895, "column": 33, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1915, "column": 6, "event": "note", "message": "(6) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1917, "column": 13, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1917, "column": 13, "event": "note", "message": "(8) calling 'check_access' from 'find_executable'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1853, "column": 1, "event": "note", "message": "(9) entry to 'check_access'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1866, "column": 9, "event": "note", "message": "(10) inlined call to 'get_file_type' from 'check_access'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 232, "column": 10, "event": "note", "message": "(11) calling 'get_file_type_at' from 'check_access'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 0, "event": "scope_hint", "message": "In function 'find_executable'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 200, "column": 1, "event": "note", "message": "(12) entry to 'get_file_type_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 202, "column": 49, "event": "note", "message": "(13) following 'false' branch (when 'path' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 211, "column": 80, "event": "note", "message": "(15) following 'false' branch (when 'nofollow == 0')...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 211, "column": 9, "event": "note", "message": "(17) following 'true' branch (when 'path' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 211, "column": 9, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1866, "column": 9, "event": "note", "message": "(19) inlined call to 'get_file_type' from 'check_access'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 232, "column": 10, "event": "note", "message": "(20) returning to 'check_access' from 'get_file_type_at'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 0, "event": "scope_hint", "message": "In function 'find_executable'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1917, "column": 13, "event": "note", "message": "(21) returning to 'find_executable' from 'check_access'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1918, "column": 10, "event": "note", "message": "(22) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1919, "column": 16, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1919, "column": 16, "event": "note", "message": "(24) calling 'xstrdup' from 'find_executable'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(25) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(26) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(28) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(29) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(30) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1919, "column": 16, "event": "note", "message": "(32) returning to 'find_executable' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(33) 'xstrdup(executable_path)' leaks here; was allocated at (28)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 220| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 221| ret = strdup (str);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 222|-> if (ret == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 223| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 224| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "830711c38a048e8828c814fdb36bfe1767ff5397", "key_event_idx": 3, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-internal.h", "line": 22, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 23, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'read_unified_cgroup_pid'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xstrdup(from)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 493, "column": 1, "event": "note", "message": "(1) entry to 'enter_cgroup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 497, "column": 6, "event": "note", "message": "(2) following 'true' branch (when 'cgroup_mode == 1')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 499, "column": 13, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 499, "column": 13, "event": "note", "message": "(4) calling 'enter_cgroup_v2' from 'enter_cgroup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 397, "column": 1, "event": "note", "message": "(5) entry to 'enter_cgroup_v2'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 408, "column": 6, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 411, "column": 6, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 419, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 422, "column": 9, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 423, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 426, "column": 17, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 56, "column": 40, "event": "note", "message": "in definition of macro 'UNLIKELY'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 439, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 442, "column": 3, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 454, "column": 10, "event": "note", "message": "(14) following 'true' branch (when 'init_pid > 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 456, "column": 17, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 456, "column": 17, "event": "note", "message": "(16) calling 'read_unified_cgroup_pid' from 'enter_cgroup_v2'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 294, "column": 1, "event": "note", "message": "(17) entry to 'read_unified_cgroup_pid'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 304, "column": 6, "event": "note", "message": "(18) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 307, "column": 10, "event": "note", "message": "(19) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 307, "column": 10, "event": "note", "message": "(20) when 'strstr' returns non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 308, "column": 6, "event": "note", "message": "(21) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 311, "column": 8, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 313, "column": 8, "event": "note", "message": "(23) when 'strchr' returns non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 314, "column": 6, "event": "note", "message": "(24) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 316, "column": 7, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 318, "column": 11, "event": "note", "message": "(26) calling 'xstrdup' from 'read_unified_cgroup_pid'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(27) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(28) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(30) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(31) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(32) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(33) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c", "line": 318, "column": 11, "event": "note", "message": "(34) returning to 'read_unified_cgroup_pid' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(35) 'xstrdup(from)' leaks here; was allocated at (30)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 220| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 221| ret = strdup (str);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 222|-> if (ret == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 223| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 224| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "96b94e9fcce4d527c42e767ba9c0257e1317a6e5", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'find_executable'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xstrdup(getenv(\"PATH\"))'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1880, "column": 1, "event": "note", "message": "(1) entry to 'find_executable'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1889, "column": 6, "event": "note", "message": "(2) following 'false' branch (when 'executable_path' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1895, "column": 22, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1895, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1895, "column": 33, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1895, "column": 66, "event": "note", "message": "(6) when 'strchr' returns NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1895, "column": 63, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1915, "column": 22, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1915, "column": 6, "event": "note", "message": "(9) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1923, "column": 24, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1923, "column": 15, "event": "note", "message": "(11) calling 'xstrdup' from 'find_executable'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(12) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(13) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(15) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(16) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(17) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.c", "line": 1923, "column": 15, "event": "note", "message": "(19) returning to 'find_executable' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(20) 'xstrdup(getenv(\"PATH\"))' leaks here; was allocated at (15)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 220| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 221| ret = strdup (str);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 222|-> if (ret == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 223| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 224| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "cf4f56a32b34a19c86da53fbd7b95d892417445c", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'check_cgroup_v2_controller_available_wrapper'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xstrdup(name)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1360, "column": 1, "event": "note", "message": "(1) entry to 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1370, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1373, "column": 6, "event": "note", "message": "(4) following 'false' branch (when 'path' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1395, "column": 3, "event": "note", "message": "(6) following 'case 1:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1397, "column": 5, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1398, "column": 14, "event": "note", "message": "(8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1287, "column": 1, "event": "note", "message": "(9) entry to 'update_cgroup_v2_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1293, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1296, "column": 9, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1297, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1300, "column": 18, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1301, "column": 6, "event": "note", "message": "(14) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1304, "column": 16, "event": "note", "message": "(15) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1333, "column": 6, "event": "note", "message": "(16) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1335, "column": 13, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 1335, "column": 13, "event": "note", "message": "(18) calling 'write_blkio_resources' from 'update_cgroup_v2_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 271, "column": 1, "event": "note", "message": "(19) entry to 'write_blkio_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 311, "column": 6, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 320, "column": 12, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 383, "column": 6, "event": "note", "message": "(22) following 'true' branch (when 'cgroup2 != 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 385, "column": 25, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 389, "column": 10, "event": "note", "message": "(24) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 24, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 391, "column": 39, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 392, "column": 18, "event": "note", "message": "(26) calling 'check_cgroup_v2_controller_available_wrapper' from 'write_blkio_resources'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 131, "column": 1, "event": "note", "message": "(27) entry to 'check_cgroup_v2_controller_available_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 133, "column": 6, "event": "note", "message": "(28) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 136, "column": 3, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 139, "column": 6, "event": "note", "message": "(30) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 141, "column": 26, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 150, "column": 13, "event": "note", "message": "(32) calling 'xstrdup' from 'check_cgroup_v2_controller_available_wrapper'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(33) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(34) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(35) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(36) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(37) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(38) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(39) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c", "line": 150, "column": 13, "event": "note", "message": "(40) returning to 'check_cgroup_v2_controller_available_wrapper' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(41) 'xstrdup(name)' leaks here; was allocated at (36)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 220| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 221| ret = strdup (str);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 222|-> if (ret == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 223| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 224| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "839e017eeac5229efd3289022b9713aa73f080ce", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xstrdup(plugins)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 83, "column": 1, "event": "note", "message": "(1) entry to 'libcrun_load_seccomp_notify_plugins'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 87, "column": 73, "event": "note", "message": "(2) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(3) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 87, "column": 73, "event": "note", "message": "(6) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 92, "column": 6, "event": "note", "message": "(7) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 95, "column": 34, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 95, "column": 15, "event": "note", "message": "(9) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(10) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(11) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 95, "column": 15, "event": "note", "message": "(13) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 96, "column": 16, "event": "note", "message": "(14) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(15) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(16) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 96, "column": 16, "event": "note", "message": "(18) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 102, "column": 18, "event": "note", "message": "(19) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 68, "column": 1, "event": "note", "message": "(20) entry to 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 71, "column": 6, "event": "note", "message": "(21) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 73, "column": 10, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 102, "column": 18, "event": "note", "message": "(23) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 104, "column": 7, "event": "note", "message": "(24) calling 'xstrdup' from 'libcrun_load_seccomp_notify_plugins'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(25) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(26) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(28) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(29) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(30) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(31) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c", "line": 104, "column": 7, "event": "note", "message": "(32) returning to 'libcrun_load_seccomp_notify_plugins' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(33) 'xstrdup(plugins)' leaks here; was allocated at (28)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 220| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 221| ret = strdup (str);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 222|-> if (ret == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 223| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 224| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "85992cc0b26616501ab7e99a518df169df9ddf2e", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 0, "event": "scope_hint", "message": "In function 'maybe_make_cgroup_threaded'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'xstrdup(t)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 758, "column": 1, "event": "note", "message": "(1) entry to 'write_controller_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 773, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 775, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 776, "column": 6, "event": "note", "message": "(4) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 778, "column": 45, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 778, "column": 45, "event": "note", "message": "(6) calling 'xmalloc' from 'write_controller_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 59, "column": 1, "event": "note", "message": "(7) entry to 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 62, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 64, "column": 10, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 778, "column": 45, "event": "note", "message": "(10) returning to 'write_controller_file' from 'xmalloc'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 807, "column": 10, "event": "note", "message": "(11) following 'true' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 809, "column": 17, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 809, "column": 17, "event": "note", "message": "(13) calling 'maybe_make_cgroup_threaded' from 'write_controller_file'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 75, "column": 1, "event": "note", "message": "(14) entry to 'maybe_make_cgroup_threaded'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 88, "column": 20, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 91, "column": 9, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 92, "column": 6, "event": "note", "message": "(17) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 95, "column": 9, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 96, "column": 6, "event": "note", "message": "(19) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 99, "column": 12, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 106, "column": 6, "event": "note", "message": "(21) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 109, "column": 12, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 109, "column": 12, "event": "note", "message": "(23) calling 'xstrdup' from 'maybe_make_cgroup_threaded'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 215, "column": 1, "event": "note", "message": "(24) entry to 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 218, "column": 6, "event": "note", "message": "(25) following 'false' branch (when 'str' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 221, "column": 9, "event": "note", "message": "(27) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(28) assuming 'ret' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(29) following 'false' branch (when 'ret' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(30) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c", "line": 109, "column": 12, "event": "note", "message": "(31) returning to 'maybe_make_cgroup_threaded' from 'xstrdup'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 222, "column": 6, "event": "note", "message": "(32) 'xstrdup(t)' leaks here; was allocated at (27)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 220| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 221| ret = strdup (str);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 222|-> if (ret == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 223| OOM ();", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 224| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "6712a6be2c2080317f921226ecb912e4c0638162", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/spec.c", "line": 0, "event": "scope_hint", "message": "In function 'crun_command_spec'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/src/spec.c", "line": 126, "column": 7, "event": "warning[-Wanalyzer-file-leak]", "message": "leak of FILE 'fopen(<unknown>, \"w+e\")'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/spec.c", "line": 99, "column": 6, "event": "note", "message": "(1) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/spec.c", "line": 103, "column": 14, "event": "note", "message": "(2) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/spec.c", "line": 103, "column": 6, "event": "note", "message": "(3) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/spec.c", "line": 117, "column": 17, "event": "note", "message": "(4) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/spec.c", "line": 126, "column": 7, "event": "note", "message": "(5) opened here (6) 'fopen(<unknown>, \"w+e\")' leaks here; was opened at (5)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 124| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 125| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 126|-> f = fopen (where, \"w+e\");", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 127| if (f == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 128| return libcrun_make_error (err, errno, \"cannot open `%s`\", where);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "b8c815bf8761368d16dca1b4a4e5e23efee6309a", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/src/spec.c", "line": 126, "column": 7, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'fopen(<unknown>, \"w+e\")'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/src/spec.c", "line": 99, "column": 6, "event": "note", "message": "(1) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/spec.c", "line": 103, "column": 14, "event": "note", "message": "(2) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/spec.c", "line": 103, "column": 6, "event": "note", "message": "(3) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/spec.c", "line": 117, "column": 17, "event": "note", "message": "(4) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/spec.c", "line": 126, "column": 7, "event": "note", "message": "(5) allocated here (6) 'fopen(<unknown>, \"w+e\")' leaks here; was allocated at (5)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 124| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 125| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 126|-> f = fopen (where, \"w+e\");", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 127| if (f == NULL)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 128| return libcrun_make_error (err, errno, \"cannot open `%s`\", where);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "f21869ee71fce6b3f61d1527a1a1a3c2ff48daea", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 0, "event": "scope_hint", "message": "In function 'write_to'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 165, "column": 6, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(path, 1)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 161, "column": 12, "event": "note", "message": "(1) opened here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 162, "column": 6, "event": "note", "message": "(2) assuming 'open(path, 1)' is a valid file descriptor (>= 0)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 162, "column": 6, "event": "note", "message": "(3) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 165, "column": 7, "event": "note", "message": "(4) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 165, "column": 6, "event": "note", "message": "(5) 'open(path, 1)' leaks here; was opened at (1)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 163| error (EXIT_FAILURE, errno, \"open `%s`\", path);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 164| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 165|-> if (write (fd, str, strlen (str)) < 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 166| error (EXIT_FAILURE, errno, \"write to `%s`\", path);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 167| if (close (fd) < 0)", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "ae1573376f83d85cb7f98c5eebc1e2293408408a", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 0, "event": "scope_hint", "message": "In function 'check_idmapped_mounts'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 209, "column": 6, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(&proc_path, 0)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 176, "column": 1, "event": "note", "message": "(1) entry to 'check_idmapped_mounts'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 187, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 189, "column": 6, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 189, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 197, "column": 3, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 198, "column": 3, "event": "note", "message": "(6) calling 'write_to' from 'check_idmapped_mounts'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 159, "column": 1, "event": "note", "message": "(7) entry to 'write_to'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 162, "column": 6, "event": "note", "message": "(8) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 165, "column": 7, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 165, "column": 6, "event": "note", "message": "(10) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 167, "column": 7, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 167, "column": 6, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 169, "column": 1, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 198, "column": 3, "event": "note", "message": "(14) returning to 'check_idmapped_mounts' from 'write_to'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 200, "column": 3, "event": "note", "message": "(15) calling 'write_to' from 'check_idmapped_mounts'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 159, "column": 1, "event": "note", "message": "(16) entry to 'write_to'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 162, "column": 6, "event": "note", "message": "(17) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 165, "column": 7, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 165, "column": 6, "event": "note", "message": "(19) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 167, "column": 7, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 167, "column": 6, "event": "note", "message": "(21) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 169, "column": 1, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 200, "column": 3, "event": "note", "message": "(23) returning to 'check_idmapped_mounts' from 'write_to'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 203, "column": 8, "event": "note", "message": "(24) opened here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 204, "column": 6, "event": "note", "message": "(25) assuming 'open(&proc_path, 0)' is a valid file descriptor (>= 0)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 204, "column": 6, "event": "note", "message": "(26) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 207, "column": 18, "event": "note", "message": "(27) inlined call to 'syscall_open_tree' from 'check_idmapped_mounts'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 132, "column": 16, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 0, "event": "scope_hint", "message": "In function 'check_idmapped_mounts'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 209, "column": 6, "event": "note", "message": "(29) 'open(&proc_path, 0)' leaks here; was opened at (24)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 207| open_tree_fd = syscall_open_tree (-1, path,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 208| AT_NO_AUTOMOUNT | AT_SYMLINK_NOFOLLOW | OPEN_TREE_CLOEXEC | OPEN_TREE_CLONE);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 209|-> if (open_tree_fd < 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 210| error (EXIT_FAILURE, errno, \"open `%s`\", path);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 211| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "87602349f4a76dad7c55db489d49227126af14d8", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 0, "event": "scope_hint", "message": "In function 'cat'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 241, "column": 11, "event": "warning[-Wanalyzer-file-leak]", "message": "leak of FILE 'fopen(file, \"rbe\")'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 224, "column": 13, "event": "note", "message": "(1) opened here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 226, "column": 6, "event": "note", "message": "(2) assuming 'fopen(file, \"rbe\")' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 226, "column": 6, "event": "note", "message": "(3) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(4) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 231, "column": 10, "event": "note", "message": "(5) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 241, "column": 11, "event": "note", "message": "(6) ...to here (7) 'fopen(file, \"rbe\")' leaks here; was opened at (1)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 239| error (EXIT_FAILURE, errno, \"fread\");", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 240| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 241|-> s = fwrite (buf, 1, s, stdout);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 242| if (s == 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 243| error (EXIT_FAILURE, errno, \"fwrite\");", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "b57f155a4618bdc8092203dc4d4dd7b578d02ac6", "key_event_idx": 0, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 241, "column": 11, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of 'fopen(file, \"rbe\")'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 224, "column": 13, "event": "note", "message": "(1) allocated here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 226, "column": 6, "event": "note", "message": "(2) assuming 'fopen(file, \"rbe\")' is non-NULL", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 226, "column": 6, "event": "note", "message": "(3) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(4) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 231, "column": 10, "event": "note", "message": "(5) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 241, "column": 11, "event": "note", "message": "(6) ...to here (7) 'fopen(file, \"rbe\")' leaks here; was allocated at (1)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 239| error (EXIT_FAILURE, errno, \"fread\");", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 240| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 241|-> s = fwrite (buf, 1, s, stdout);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 242| if (s == 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 243| error (EXIT_FAILURE, errno, \"fwrite\");", "verbosity_level": 1 } ] }, { "checker": "COMPILER_WARNING", "language": "c/c++", "tool": "gcc", "hash_v1": "16964547eb323e7b8b8cac9f15173bf7e16439b7", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 0, "event": "scope_hint", "message": "In function 'main'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 305, "column": 3, "event": "warning[-Wstringop-truncation]", "message": "'strncpy' specified bound 108 equals destination size", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 305 | strncpy (notify_socket_unix_name.sun_path, notify_socket_name,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " | ^", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 303| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 304| notify_socket_unix_name.sun_family = AF_UNIX;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 305|-> strncpy (notify_socket_unix_name.sun_path, notify_socket_name,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 306| sizeof (notify_socket_unix_name.sun_path));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 307| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "3ddc9543d437a76e65cb63db8c5a666d80ef239b", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 0, "event": "scope_hint", "message": "In function 'main'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 627, "column": 10, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(&path, 1)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 380, "column": 6, "event": "note", "message": "(1) following 'false' branch (when 'argc > 1')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 383, "column": 7, "event": "note", "message": "(2) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 383, "column": 6, "event": "note", "message": "(3) following 'false' branch (when the strings are non-equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 388, "column": 7, "event": "note", "message": "(4) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 388, "column": 6, "event": "note", "message": "(5) following 'false' branch (when the strings are non-equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 396, "column": 7, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 396, "column": 6, "event": "note", "message": "(7) following 'false' branch (when the strings are non-equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 404, "column": 7, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 404, "column": 6, "event": "note", "message": "(9) following 'false' branch (when the strings are non-equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 417, "column": 7, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 417, "column": 6, "event": "note", "message": "(11) following 'false' branch (when the strings are non-equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 424, "column": 7, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 424, "column": 6, "event": "note", "message": "(13) following 'false' branch (when the strings are non-equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 441, "column": 7, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 441, "column": 6, "event": "note", "message": "(15) following 'false' branch (when the strings are non-equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 448, "column": 7, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 448, "column": 6, "event": "note", "message": "(17) following 'false' branch (when the strings are non-equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 458, "column": 7, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 458, "column": 6, "event": "note", "message": "(19) following 'false' branch (when the strings are non-equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 503, "column": 7, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 503, "column": 6, "event": "note", "message": "(21) following 'false' branch (when the strings are non-equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 516, "column": 7, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 516, "column": 6, "event": "note", "message": "(23) following 'false' branch (when the strings are non-equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 529, "column": 7, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 529, "column": 6, "event": "note", "message": "(25) following 'false' branch (when the strings are non-equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 539, "column": 7, "event": "note", "message": "(26) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 539, "column": 6, "event": "note", "message": "(27) following 'false' branch (when the strings are non-equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 552, "column": 7, "event": "note", "message": "(28) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 552, "column": 6, "event": "note", "message": "(29) following 'false' branch (when the strings are non-equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 566, "column": 7, "event": "note", "message": "(30) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 566, "column": 6, "event": "note", "message": "(31) following 'false' branch (when the strings are non-equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 580, "column": 7, "event": "note", "message": "(32) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 580, "column": 6, "event": "note", "message": "(33) following 'false' branch (when the strings are non-equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 590, "column": 7, "event": "note", "message": "(34) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 590, "column": 6, "event": "note", "message": "(35) following 'false' branch (when the strings are non-equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 597, "column": 7, "event": "note", "message": "(36) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 597, "column": 6, "event": "note", "message": "(37) following 'false' branch (when the strings are non-equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 601, "column": 7, "event": "note", "message": "(38) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 601, "column": 6, "event": "note", "message": "(39) following 'false' branch (when the strings are non-equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 607, "column": 7, "event": "note", "message": "(40) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 607, "column": 6, "event": "note", "message": "(41) following 'true' branch (when the strings are equal)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 613, "column": 10, "event": "note", "message": "(42) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 613, "column": 10, "event": "note", "message": "(43) following 'false' branch (when 'argc != 2')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 616, "column": 7, "event": "note", "message": "(44) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 618, "column": 10, "event": "note", "message": "(45) following 'false' branch (when 'ret >= 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 621, "column": 7, "event": "note", "message": "(46) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 623, "column": 12, "event": "note", "message": "(47) opened here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 624, "column": 10, "event": "note", "message": "(48) assuming 'open(&path, 1)' is a valid file descriptor (>= 0)", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 624, "column": 10, "event": "note", "message": "(49) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 626, "column": 13, "event": "note", "message": "(50) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/init.c", "line": 627, "column": 10, "event": "note", "message": "(51) 'open(&path, 1)' leaks here; was opened at (47)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 625| error (EXIT_FAILURE, errno, \"open `%s`\", path);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 626| ret = write (fd, \"1\", 1);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 627|-> if (ret < 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 628| error (EXIT_FAILURE, errno, \"open `%s`\", path);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 629| close (fd);", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "bfcbbe7254ad2156cca4ffe979245fe586004c47", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 0, "event": "scope_hint", "message": "In function 'test_generate_ebpf'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 105, "column": 8, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(\"/dev/null\", 1)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 476, "column": 1, "event": "note", "message": "(1) entry to 'main'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 482, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 484, "column": 3, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 486, "column": 6, "event": "note", "message": "(4) following 'true' branch (when 'argc > 1')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 488, "column": 23, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 492, "column": 10, "event": "note", "message": "(6) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 497, "column": 14, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 497, "column": 14, "event": "note", "message": "(8) inlined call to 'LLVMFuzzerTestOneInput' from 'main'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 461, "column": 3, "event": "note", "message": "(9) calling 'run_one_test' from 'main'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 0, "event": "scope_hint", "message": "In function 'test_generate_ebpf'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 366, "column": 1, "event": "note", "message": "(10) entry to 'run_one_test'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 370, "column": 3, "event": "note", "message": "(11) following 'case 5:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 401, "column": 5, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 403, "column": 7, "event": "note", "message": "(13) calling 'test_generate_ebpf' from 'run_one_test'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 60, "column": 1, "event": "note", "message": "(14) entry to 'test_generate_ebpf'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 69, "column": 10, "event": "note", "message": "(15) calling 'make_nul_terminated' from 'test_generate_ebpf'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 46, "column": 1, "event": "note", "message": "(16) entry to 'make_nul_terminated'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 51, "column": 6, "event": "note", "message": "(17) following 'false' branch (when 'r' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 53, "column": 3, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 69, "column": 10, "event": "note", "message": "(19) returning to 'test_generate_ebpf' from 'make_nul_terminated'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 70, "column": 6, "event": "note", "message": "(20) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 73, "column": 13, "event": "note", "message": "(21) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 79, "column": 6, "event": "note", "message": "(22) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 83, "column": 6, "event": "note", "message": "(23) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 83, "column": 6, "event": "note", "message": "(24) following 'false' branch (when 'len > 9')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 86, "column": 3, "event": "note", "message": "(25) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 90, "column": 6, "event": "note", "message": "(26) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 97, "column": 17, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 98, "column": 6, "event": "note", "message": "(28) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 105, "column": 8, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 105, "column": 8, "event": "note", "message": "(30) opened here (31) 'open(\"/dev/null\", 1)' leaks here; was opened at (30)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 103| program = new_program;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105|-> fd = open (\"/dev/null\", O_WRONLY);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106| if (fd < 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| return 0;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "08e66f7c318e50e603586146bca6c10a0d675be2", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 0, "event": "scope_hint", "message": "In function 'generate_seccomp'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 164, "column": 11, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'open(\"/dev/null\", 1)'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 459, "column": 1, "event": "note", "message": "(1) entry to 'LLVMFuzzerTestOneInput'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 461, "column": 3, "event": "note", "message": "(2) calling 'run_one_test' from 'LLVMFuzzerTestOneInput'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 366, "column": 1, "event": "note", "message": "(3) entry to 'run_one_test'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 370, "column": 3, "event": "note", "message": "(4) following 'case 2:' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 382, "column": 5, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 384, "column": 7, "event": "note", "message": "(6) calling 'generate_seccomp' from 'run_one_test'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 145, "column": 1, "event": "note", "message": "(7) entry to 'generate_seccomp'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 153, "column": 10, "event": "note", "message": "(8) calling 'make_nul_terminated' from 'generate_seccomp'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 46, "column": 1, "event": "note", "message": "(9) entry to 'make_nul_terminated'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 51, "column": 6, "event": "note", "message": "(10) following 'false' branch (when 'r' is non-NULL)...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 53, "column": 3, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 153, "column": 10, "event": "note", "message": "(12) returning to 'generate_seccomp' from 'make_nul_terminated'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 154, "column": 6, "event": "note", "message": "(13) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 157, "column": 15, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 158, "column": 6, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 164, "column": 11, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c", "line": 164, "column": 11, "event": "note", "message": "(17) opened here (18) 'open(\"/dev/null\", 1)' leaks here; was opened at (17)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 162| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 163| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 164|-> outfd = open (\"/dev/null\", O_WRONLY);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 165| if (outfd < 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 166| return 0;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 775, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "f333ed17e9e916f9e66229f5a8af4928ccc45101", "key_event_idx": 1, "events": [ { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 0, "event": "scope_hint", "message": "In function 'test_send_receive_fd'", "verbosity_level": 1 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 144, "column": 1, "event": "warning[-Wanalyzer-fd-leak]", "message": "leak of file descriptor 'pipes[1]'", "verbosity_level": 0 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 74, "column": 1, "event": "note", "message": "(1) entry to 'test_send_receive_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 82, "column": 6, "event": "note", "message": "(2) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 85, "column": 12, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 88, "column": 6, "event": "note", "message": "(4) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 91, "column": 9, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 92, "column": 6, "event": "note", "message": "(6) following 'false' branch (when 'pid >= 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 95, "column": 6, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 95, "column": 6, "event": "note", "message": "(8) following 'true' branch (when 'pid != 0')...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 97, "column": 25, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 101, "column": 11, "event": "note", "message": "(10) opened here as read-write", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 101, "column": 11, "event": "note", "message": "(11) when 'pipe' succeeds", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 101, "column": 10, "event": "note", "message": "(12) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 104, "column": 22, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 98, "column": 25, "event": "note", "message": "(14) inlined call to 'cleanup_closep' from 'test_send_receive_fd'", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/src/libcrun/utils.h", "line": 104, "column": 6, "event": "note", "message": "(15) following 'false' branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c", "line": 144, "column": 1, "event": "note", "message": "(17) 'pipes[1]' leaks here", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 142| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 143| return 0;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 144|-> }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 145| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 146| static int", "verbosity_level": 1 } ] } ] }