Task #797 - libldb-2.9.1-1.fc41/scan-results.err
back to task #797download
Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/common/attrib_handlers.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/common/ldb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-477): libldb-2.9.1-build/ldb-2.9.1/common/ldb.c: scope_hint: In function ‘ldb_init’ libldb-2.9.1-build/ldb-2.9.1/common/ldb.c:121:17: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated libldb-2.9.1-build/ldb-2.9.1/include/ldb.h:51: included_from: Included from here. libldb-2.9.1-build/ldb-2.9.1/include/ldb_private.h:43: included_from: Included from here. libldb-2.9.1-build/ldb-2.9.1/common/ldb.c:36: included_from: Included from here. /usr/include/tevent.h:2676:6: note: declared here # 119| tevent_set_debug(ev_ctx, ldb_tevent_debug, ldb); # 120| tevent_set_max_debug_level(ev_ctx, TEVENT_DEBUG_TRACE); # 121|-> tevent_loop_allow_nesting(ev_ctx); # 122| } # 123| Error: COMPILER_WARNING (CWE-477): libldb-2.9.1-build/ldb-2.9.1/common/ldb.c: scope_hint: In function ‘ldb_handle_new’ libldb-2.9.1-build/ldb-2.9.1/common/ldb.c:750:17: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated /usr/include/tevent.h:2676:6: note: declared here # 748| tevent_set_debug(h->event_context, ldb_tevent_debug, ldb); # 749| tevent_set_max_debug_level(h->event_context, TEVENT_DEBUG_TRACE); # 750|-> tevent_loop_allow_nesting(h->event_context); # 751| } # 752| Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/common/ldb_attributes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/common/ldb_controls.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/common/ldb_dn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/common/ldb_ldif.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/common/ldb_match.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/common/ldb_modules.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/common/ldb_msg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/common/ldb_options.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-476): libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:731:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:562:33: note: in expansion of macro ‘PULL_LE_U32’ # 729| } # 730| # 731|-> element->values[j].length = len; # 732| element->values[j].data = p + U32_LEN; # 733| remaining -= len; Error: GCC_ANALYZER_WARNING (CWE-476): libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c: scope_hint: In function ‘ldb_unpack_data_flags_v1’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:731:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ldb_val_single_array’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:562:33: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/include/ldb.h:50: included_from: Included from here. libldb-2.9.1-build/ldb-2.9.1/include/ldb_private.h:43: included_from: Included from here. libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:34: included_from: Included from here. # 729| } # 730| # 731|-> element->values[j].length = len; # 732| element->values[j].data = p + U32_LEN; # 733| remaining -= len; Error: GCC_ANALYZER_WARNING (CWE-476): libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c: scope_hint: In function ‘ldb_unpack_data_flags_v2’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:973:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:794:33: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:826:15: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:885:17: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:903:28: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:973:61: note: in expansion of macro ‘PULL_LE_U8’ # 971| if (val_len_width == U8_LEN) { # 972| for (j = 0; j < element->num_values; j++) { # 973|-> element->values[j].length = PULL_LE_U8(p, 0); # 974| p += U8_LEN; # 975| } Error: GCC_ANALYZER_WARNING (CWE-476): libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:973:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ldb_val_single_array’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:794:33: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:826:15: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:885:17: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:903:28: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:973:61: note: in expansion of macro ‘PULL_LE_U8’ # 971| if (val_len_width == U8_LEN) { # 972| for (j = 0; j < element->num_values; j++) { # 973|-> element->values[j].length = PULL_LE_U8(p, 0); # 974| p += U8_LEN; # 975| } Error: GCC_ANALYZER_WARNING (CWE-476): libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:978:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:794:33: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:826:15: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:885:17: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:903:28: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:978:61: note: in expansion of macro ‘PULL_LE_U16’ # 976| } else if (val_len_width == U16_LEN) { # 977| for (j = 0; j < element->num_values; j++) { # 978|-> element->values[j].length = PULL_LE_U16(p, 0); # 979| p += U16_LEN; # 980| } Error: GCC_ANALYZER_WARNING (CWE-476): libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:978:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ldb_val_single_array’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:794:33: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:826:15: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:885:17: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:903:28: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:978:61: note: in expansion of macro ‘PULL_LE_U16’ # 976| } else if (val_len_width == U16_LEN) { # 977| for (j = 0; j < element->num_values; j++) { # 978|-> element->values[j].length = PULL_LE_U16(p, 0); # 979| p += U16_LEN; # 980| } Error: GCC_ANALYZER_WARNING (CWE-476): libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:983:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:794:33: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:826:15: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:885:17: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:903:28: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:983:61: note: in expansion of macro ‘PULL_LE_U32’ # 981| } else if (val_len_width == U32_LEN) { # 982| for (j = 0; j < element->num_values; j++) { # 983|-> element->values[j].length = PULL_LE_U32(p, 0); # 984| p += U32_LEN; # 985| } Error: GCC_ANALYZER_WARNING (CWE-476): libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:983:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ldb_val_single_array’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:794:33: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:826:15: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:885:17: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:903:28: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:983:61: note: in expansion of macro ‘PULL_LE_U32’ # 981| } else if (val_len_width == U32_LEN) { # 982| for (j = 0; j < element->num_values; j++) { # 983|-> element->values[j].length = PULL_LE_U32(p, 0); # 984| p += U32_LEN; # 985| } Error: GCC_ANALYZER_WARNING (CWE-476): libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:992:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*element.values’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:794:33: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:826:15: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:885:17: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:903:28: note: in expansion of macro ‘PULL_LE_U32’ # 990| # 991| for (j = 0; j < element->num_values; j++) { # 992|-> len = element->values[j].length; # 993| if (len + NULL_PAD_BYTE_LEN < len) { # 994| errno = EIO; Error: GCC_ANALYZER_WARNING (CWE-476): libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:992:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ldb_val_single_array’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:794:33: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:826:15: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:885:17: note: in expansion of macro ‘PULL_LE_U32’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’ libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:903:28: note: in expansion of macro ‘PULL_LE_U32’ # 990| # 991| for (j = 0; j < element->num_values; j++) { # 992|-> len = element->values[j].length; # 993| if (len + NULL_PAD_BYTE_LEN < len) { # 994| errno = EIO; Error: CPPCHECK_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/common/ldb_pack.c:1167: warning[uninitvar]: Uninitialized variable: i # 1165| } # 1166| return 0; # 1167|-> } else if (i == 0) { # 1168| return 0; # 1169| Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/common/ldb_parse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/common/ldb_utf8.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/common/qsort.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-775): libldb-2.9.1-build/ldb-2.9.1/include/ldb.h:53: included_from: Included from here. libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:27: included_from: Included from here. libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_ldb_search_against_transaction_callback1’ libldb-2.9.1-build/ldb-2.9.1/include/ldb_errors.h:69:49: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:1520:24: note: in expansion of macro ‘LDB_SUCCESS’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:1520:24: note: in expansion of macro ‘LDB_SUCCESS’ # 67| successfully. # 68| */ # 69|-> #define LDB_SUCCESS 0 # 70| # 71| /** Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/ldb_key_value/ldb_kv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/ldb_key_value/ldb_kv_cache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/ldb_key_value/ldb_kv_index.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/ldb_key_value/ldb_kv_search.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/ldb_ldap/ldb_ldap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/ldb_map/ldb_map.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/ldb_map/ldb_map_inbound.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/ldb_map/ldb_map_outbound.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-476): libldb-2.9.1-build/ldb-2.9.1/ldb_map/ldb_map_outbound.c: scope_hint: In function ‘map_attrs_collect_remote’ libldb-2.9.1-build/ldb-2.9.1/ldb_map/ldb_map_outbound.c:96:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘attrs’ libldb-2.9.1-build/ldb-2.9.1/include/ldb.h:50: included_from: Included from here. libldb-2.9.1-build/ldb-2.9.1/include/ldb_module.h:36: included_from: Included from here. libldb-2.9.1-build/ldb-2.9.1/ldb_map/ldb_map.h:29: included_from: Included from here. libldb-2.9.1-build/ldb-2.9.1/ldb_map/ldb_map_outbound.c:31: included_from: Included from here. # 94| result[0] = NULL; # 95| # 96|-> for (i = 0; attrs[i]; i++) { # 97| /* Wildcards are kept remotely, too */ # 98| if (ldb_attr_cmp(attrs[i], "*") == 0) { Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/ldb_map/ldb_map_outbound.c:608:12: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value # 606| # 607| /* Prune tree without subtree */ # 608|-> if (child == NULL) { # 609| talloc_free(*new); # 610| *new = NULL; Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/ldb_mdb/ldb_mdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/ldb_tdb/ldb_tdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/lib/replace/tests/getifaddrs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/lib/replace/tests/os2_delete.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): libldb-2.9.1-build/ldb-2.9.1/lib/replace/tests/os2_delete.c: scope_hint: In function ‘test_readdir_os2_delete’ libldb-2.9.1-build/ldb-2.9.1/lib/replace/tests/os2_delete.c:114:14: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘opendir("test.dir")’ where non-null expected libldb-2.9.1-build/ldb-2.9.1/lib/replace/tests/os2_delete.c:11: included_from: Included from here. /usr/include/dirent.h:164:23: note: argument 1 of ‘readdir’ must be non-null # 112| # 113| /* skip past . and .. */ # 114|-> de = readdir(d); # 115| strcmp(de->d_name, ".") == 0 || FAILED("match ."); # 116| de = readdir(d); Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/lib/replace/tests/strptime.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): libldb-2.9.1-build/ldb-2.9.1/lib/replace/tests/testsuite.c: scope_hint: In function ‘test_strdup’ libldb-2.9.1-build/ldb-2.9.1/lib/replace/tests/testsuite.c:172:15: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘x’ where non-null expected libldb-2.9.1-build/ldb-2.9.1/lib/replace/replace.h:176: included_from: Included from here. libldb-2.9.1-build/ldb-2.9.1/lib/replace/tests/testsuite.c:26: included_from: Included from here. /usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null # 170| x = strdup("bla"); # 171| # 172|-> cmp = strcmp("bla", x); # 173| if (cmp != 0) { # 174| printf("failure: strdup [\nfailed: expected \"bla\", got \"%s\"\n]\n", Error: GCC_ANALYZER_WARNING (CWE-476): libldb-2.9.1-build/ldb-2.9.1/lib/replace/tests/testsuite.c: scope_hint: In function ‘test_strndup’ libldb-2.9.1-build/ldb-2.9.1/lib/replace/tests/testsuite.c:271:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘x’ # 269| printf("test: strndup\n"); # 270| x = strndup("bla", 0); # 271|-> cmp = strcmp(x, ""); # 272| free(x); # 273| if (cmp != 0) { Error: GCC_ANALYZER_WARNING (CWE-688): libldb-2.9.1-build/ldb-2.9.1/lib/replace/tests/testsuite.c:279:15: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘x’ where non-null expected /usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null # 277| # 278| x = strndup("bla", 2); # 279|-> cmp = strcmp(x, "bl"); # 280| free(x); # 281| if (cmp != 0) { Error: GCC_ANALYZER_WARNING (CWE-775): libldb-2.9.1-build/ldb-2.9.1/lib/replace/tests/testsuite.c: scope_hint: In function ‘test_closefrom’ libldb-2.9.1-build/ldb-2.9.1/lib/replace/tests/testsuite.c:1114:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’ # 1112| if (fd >= 1000) { # 1113| printf("fd=%d\n", fd); # 1114|-> closefrom(3); # 1115| return false; # 1116| } Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/modules/asq.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/modules/rdn_name.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/modules/sort.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/tests/ldb_key_value_sub_txn_test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/tests/ldb_key_value_test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/tests/ldb_kv_ops_test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/tests/ldb_kv_ops_test.c:805:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 803| ret = ldb_kv->kv_ops->lock_read(test_ctx->ldb->modules); # 804| assert_int_equal(ret, 0); # 805|-> ret = ldb_kv->kv_ops->iterate(ldb_kv, traverse_fn, visits); # 806| for (i = 0; i <num_recs; i++) { # 807| assert_int_equal(1, visits[i]); Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/tests/ldb_kv_ops_test.c:1047:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 1045| assert_int_equal(ret, 0); # 1046| # 1047|-> ret = ldb_kv->kv_ops->iterate(ldb_kv, update_fn, context); # 1048| for (i = 0; i < NUM_RECS; i++) { # 1049| assert_int_equal(1, context->visits[i]); Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_kv_ops_test.c: scope_hint: In function ‘test_write_transaction_isolation’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_kv_ops_test.c:1122:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[1]’ # 1120| # 1121| struct ldb_context *ldb = NULL; # 1122|-> close(to_child[1]); # 1123| close(to_parent[0]); # 1124| Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_kv_ops_test.c:1123:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[0]’ # 1121| struct ldb_context *ldb = NULL; # 1122| close(to_child[1]); # 1123|-> close(to_parent[0]); # 1124| # 1125| /* Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_kv_ops_test.c:1320:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[0]’ # 1318| exit(0); # 1319| } # 1320|-> close(to_child[0]); # 1321| close(to_parent[1]); # 1322| Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_kv_ops_test.c:1321:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[1]’ # 1319| } # 1320| close(to_child[0]); # 1321|-> close(to_parent[1]); # 1322| # 1323| /* Error: GCC_ANALYZER_WARNING (CWE-775): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_kv_ops_test.c: scope_hint: In function ‘test_write_transaction_isolation’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_kv_ops_test.c:1373:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘to_child[1]’ # 1371| # 1372| TALLOC_FREE(tmp_ctx); # 1373|-> } # 1374| # 1375| /* Error: GCC_ANALYZER_WARNING (CWE-775): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_kv_ops_test.c:1373:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘to_parent[0]’ # 1371| # 1372| TALLOC_FREE(tmp_ctx); # 1373|-> } # 1374| # 1375| /* Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_kv_ops_test.c: scope_hint: In function ‘test_delete_transaction_isolation’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_kv_ops_test.c:1448:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[1]’ # 1446| # 1447| struct ldb_context *ldb = NULL; # 1448|-> close(to_child[1]); # 1449| close(to_parent[0]); # 1450| Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_kv_ops_test.c:1449:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[0]’ # 1447| struct ldb_context *ldb = NULL; # 1448| close(to_child[1]); # 1449|-> close(to_parent[0]); # 1450| # 1451| /* Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_kv_ops_test.c:1632:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[0]’ # 1630| exit(0); # 1631| } # 1632|-> close(to_child[0]); # 1633| close(to_parent[1]); # 1634| Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_kv_ops_test.c:1633:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[1]’ # 1631| } # 1632| close(to_child[0]); # 1633|-> close(to_parent[1]); # 1634| # 1635| /* Error: GCC_ANALYZER_WARNING (CWE-775): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_kv_ops_test.c: scope_hint: In function ‘test_delete_transaction_isolation’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_kv_ops_test.c:1681:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘to_child[1]’ # 1679| # 1680| TALLOC_FREE(tmp_ctx); # 1681|-> } # 1682| # 1683| Error: GCC_ANALYZER_WARNING (CWE-775): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_kv_ops_test.c:1681:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘to_parent[0]’ # 1679| # 1680| TALLOC_FREE(tmp_ctx); # 1681|-> } # 1682| # 1683| Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_lmdb_free_list_test.c: scope_hint: In function ‘test_free_list_no_read_lock’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_lmdb_free_list_test.c:254:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[1]’ # 252| # 253| struct ldb_context *ldb = NULL; # 254|-> close(to_child[1]); # 255| close(to_parent[0]); # 256| Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_lmdb_free_list_test.c:255:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[0]’ # 253| struct ldb_context *ldb = NULL; # 254| close(to_child[1]); # 255|-> close(to_parent[0]); # 256| # 257| /* Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_lmdb_free_list_test.c:303:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[0]’ # 301| } # 302| # 303|-> close(to_child[0]); # 304| close(to_parent[1]); # 305| Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_lmdb_free_list_test.c:304:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[1]’ # 302| # 303| close(to_child[0]); # 304|-> close(to_parent[1]); # 305| # 306| /* Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_lmdb_free_list_test.c: scope_hint: In function ‘test_free_list_read_lock’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_lmdb_free_list_test.c:397:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[1]’ # 395| # 396| struct ldb_context *ldb = NULL; # 397|-> close(to_child[1]); # 398| close(to_parent[0]); # 399| Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_lmdb_free_list_test.c:398:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[0]’ # 396| struct ldb_context *ldb = NULL; # 397| close(to_child[1]); # 398|-> close(to_parent[0]); # 399| # 400| /* Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_lmdb_free_list_test.c:465:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[0]’ # 463| } # 464| # 465|-> close(to_child[0]); # 466| close(to_parent[1]); # 467| Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_lmdb_free_list_test.c:466:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[1]’ # 464| # 465| close(to_child[0]); # 466|-> close(to_parent[1]); # 467| # 468| /* Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_lmdb_free_list_test.c: scope_hint: In function ‘test_free_list_stale_reader’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_lmdb_free_list_test.c:546:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[1]’ # 544| # 545| struct ldb_context *ldb = NULL; # 546|-> close(to_child[1]); # 547| close(to_parent[0]); # 548| Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_lmdb_free_list_test.c:547:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[0]’ # 545| struct ldb_context *ldb = NULL; # 546| close(to_child[1]); # 547|-> close(to_parent[0]); # 548| # 549| /* Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_lmdb_free_list_test.c:579:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[0]’ # 577| } # 578| # 579|-> close(to_child[0]); # 580| close(to_parent[1]); # 581| Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_lmdb_free_list_test.c:580:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[1]’ # 578| # 579| close(to_child[0]); # 580|-> close(to_parent[1]); # 581| # 582| /* Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_lmdb_test.c:514:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’ # 512| struct MDB_env *env3 = NULL; # 513| # 514|-> close(pipes[0]); # 515| ldb3 = ldb_init(test_ctx, test_ctx->ev); # 516| ret = ldb_connect(ldb3, test_ctx->dbpath, 0, NULL); Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_lmdb_test.c:540:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’ # 538| exit(LDB_SUCCESS); # 539| } # 540|-> close(pipes[1]); # 541| ret = read(pipes[0], buf, 2); # 542| assert_int_equal(ret, 2); Error: GCC_ANALYZER_WARNING (CWE-775): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_lmdb_test.c: scope_hint: In function ‘test_multiple_opens_across_fork’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_lmdb_test.c:550:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’ # 548| # 549| assert_int_equal(WEXITSTATUS(wstatus), 0); # 550|-> } # 551| # 552| int main(int argc, const char **argv) Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/tests/ldb_match_test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:1598:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’ # 1596| exit(ret); # 1597| } # 1598|-> close(pipes[1]); # 1599| ret = read(pipes[0], buf, 2); # 1600| assert_int_equal(ret, 2); Error: COMPILER_WARNING (CWE-477): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_ldb_search_against_transaction’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:1646:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:25: included_from: Included from here. /usr/include/tevent.h:2676:6: note: declared here # 1644| struct ldb_dn *base_search_dn; # 1645| # 1646|-> tevent_loop_allow_nesting(search_test_ctx->ldb_test_ctx->ev); # 1647| # 1648| base_search_dn Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:1915:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’ # 1913| */ # 1914| # 1915|-> close(pipes[1]); # 1916| ret = read(pipes[0], buf, 2); # 1917| assert_int_equal(ret, 2); Error: COMPILER_WARNING (CWE-477): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_ldb_modify_during_search’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:1965:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated /usr/include/tevent.h:2676:6: note: declared here # 1963| } # 1964| # 1965|-> tevent_loop_allow_nesting(search_test_ctx->ldb_test_ctx->ev); # 1966| # 1967| ctx.basedn Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:2153:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’ # 2151| } # 2152| # 2153|-> close(pipes[1]); # 2154| ret = read(pipes[0], buf, 2); # 2155| assert_int_equal(ret, 2); Error: COMPILER_WARNING (CWE-477): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_ldb_modify_during_whole_search’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:2205:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated /usr/include/tevent.h:2676:6: note: declared here # 2203| struct ldb_result *res2; # 2204| # 2205|-> tevent_loop_allow_nesting(search_test_ctx->ldb_test_ctx->ev); # 2206| # 2207| ctx.basedn Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:2354:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 2352| NULL); # 2353| assert_int_equal(ret, 0); # 2354|-> ret = ldb_request(search_test_ctx->ldb_test_ctx->ldb, req); # 2355| # 2356| ret = pipe(pipes); Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_ldb_modify_before_ldb_wait’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:2366:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:22: included_from: Included from here. # 2364| TALLOC_FREE(search_test_ctx->ldb_test_ctx->ldb); # 2365| TALLOC_FREE(search_test_ctx->ldb_test_ctx->ev); # 2366|-> close(pipes[0]); # 2367| search_test_ctx->ldb_test_ctx->ev = tevent_context_init(search_test_ctx->ldb_test_ctx); # 2368| if (search_test_ctx->ldb_test_ctx->ev == NULL) { Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:2435:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’ # 2433| exit(ret); # 2434| } # 2435|-> close(pipes[1]); # 2436| # 2437| ret = read(pipes[0], buf, 2); Error: GCC_ANALYZER_WARNING (CWE-775): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_ldb_modify_before_ldb_wait’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:2490:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’ # 2488| /* We got the result */ # 2489| assert_int_equal(res2->count, 1); # 2490|-> } # 2491| # 2492| /* Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:2608:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 2606| ldb_dn_get_linearized(ctx->basedn)); # 2607| # 2608|-> ret = ldb_msg_add_string(msg, # 2609| "objectUUID", # 2610| "0123456789abcde3"); Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:2676:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 2674| search_test_ctx->base_dn); # 2675| # 2676|-> ret = ldb_msg_add_string(msg, # 2677| "objectUUID", # 2678| "0123456789abcde2"); Error: COMPILER_WARNING (CWE-477): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_ldb_callback_modify_during_search’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:2689:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated /usr/include/tevent.h:2676:6: note: declared here # 2687| } # 2688| # 2689|-> tevent_loop_allow_nesting(search_test_ctx->ldb_test_ctx->ev); # 2690| # 2691| ctx.basedn Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:3678:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 3676| assert_int_equal(ret, LDB_SUCCESS); # 3677| # 3678|-> ret = ldb_msg_add_string(msg01, "objectUUID", # 3679| "0123456789abcde1"); # 3680| Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:3693:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 3691| assert_int_equal(ret, LDB_SUCCESS); # 3692| # 3693|-> ret = ldb_msg_add_string(msg02, "objectUUID", # 3694| "0123456789abcde2"); # 3695| Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:3725:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 3723| assert_int_equal(ret, LDB_SUCCESS); # 3724| # 3725|-> ret = ldb_msg_add_string(msg01, "objectUUID", # 3726| "0123456789abcde1"); # 3727| Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:3740:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 3738| assert_int_equal(ret, LDB_SUCCESS); # 3739| # 3740|-> ret = ldb_msg_add_string(msg02, "objectUUID", # 3741| "0123456789abcde2"); # 3742| Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:3766:22: warning[deadcode.DeadStores]: Value stored to 'test_ctx' during its initialization is never read # 3764| struct ldb_message *msg01; # 3765| struct ldb_message *msg02; # 3766|-> struct ldbtest_ctx *test_ctx = talloc_get_type_abort(*state, # 3767| struct ldbtest_ctx); # 3768| TALLOC_CTX *tmp_ctx; Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:3789:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 3787| assert_int_equal(ret, LDB_SUCCESS); # 3788| # 3789|-> ret = ldb_msg_add_string(msg01, "objectUUID", # 3790| "0123456789abcde1"); # 3791| Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:3804:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 3802| assert_int_equal(ret, LDB_SUCCESS); # 3803| # 3804|-> ret = ldb_msg_add_string(msg02, "objectUUID", # 3805| "0123456789abcde2"); # 3806| Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:3826:22: warning[deadcode.DeadStores]: Value stored to 'test_ctx' during its initialization is never read # 3824| struct ldb_message *msg01; # 3825| struct ldb_message *msg02; # 3826|-> struct ldbtest_ctx *test_ctx = talloc_get_type_abort(*state, # 3827| struct ldbtest_ctx); # 3828| TALLOC_CTX *tmp_ctx; Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:3848:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 3846| assert_int_equal(ret, LDB_SUCCESS); # 3847| # 3848|-> ret = ldb_msg_add_string(msg01, "objectUUID", # 3849| "0123456789abcde1"); # 3850| Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:3863:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 3861| assert_int_equal(ret, LDB_SUCCESS); # 3862| # 3863|-> ret = ldb_msg_add_string(msg02, "objectUUID", # 3864| "0123456789abcde2"); # 3865| Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:4149:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’ # 4147| struct MDB_env *env = NULL; # 4148| struct MDB_envinfo stat; # 4149|-> close(pipes[0]); # 4150| # 4151| /* Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:4198:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’ # 4196| exit(LDB_SUCCESS); # 4197| } # 4198|-> close(pipes[1]); # 4199| ret = read(pipes[0], buf, 2); # 4200| assert_int_equal(ret, 2); Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_transaction_start_across_fork’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:4279:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’ # 4277| child_pid = fork(); # 4278| if (child_pid == 0) { # 4279|-> close(pipes[0]); # 4280| ret = ldb_transaction_start(ldb1); # 4281| if (ret != LDB_ERR_PROTOCOL_ERROR) { Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:4298:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’ # 4296| exit(LDB_SUCCESS); # 4297| } # 4298|-> close(pipes[1]); # 4299| ret = read(pipes[0], buf, 2); # 4300| assert_int_equal(ret, 2); Error: GCC_ANALYZER_WARNING (CWE-775): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_transaction_start_across_fork’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:4308:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’ # 4306| # 4307| assert_int_equal(WEXITSTATUS(wstatus), 0); # 4308|-> } # 4309| # 4310| static void test_transaction_commit_across_fork(void **state) Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_transaction_commit_across_fork’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:4337:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’ # 4335| child_pid = fork(); # 4336| if (child_pid == 0) { # 4337|-> close(pipes[0]); # 4338| ret = ldb_transaction_commit(ldb1); # 4339| Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:4357:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’ # 4355| exit(LDB_SUCCESS); # 4356| } # 4357|-> close(pipes[1]); # 4358| ret = read(pipes[0], buf, 2); # 4359| assert_int_equal(ret, 2); Error: GCC_ANALYZER_WARNING (CWE-775): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_transaction_commit_across_fork’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:4367:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’ # 4365| # 4366| assert_int_equal(WEXITSTATUS(wstatus), 0); # 4367|-> } # 4368| # 4369| static void test_lock_read_across_fork(void **state) Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_lock_read_across_fork’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:4396:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’ # 4394| struct ldb_result *result = NULL; # 4395| # 4396|-> close(pipes[0]); # 4397| # 4398| basedn = ldb_dn_new_fmt(test_ctx, test_ctx->ldb, "dc=test"); Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:4425:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’ # 4423| exit(LDB_SUCCESS); # 4424| } # 4425|-> close(pipes[1]); # 4426| ret = read(pipes[0], buf, 2); # 4427| assert_int_equal(ret, 2); Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_multiple_opens_across_fork’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:4491:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’ # 4489| struct ldb_context *ldb3 = NULL; # 4490| # 4491|-> close(pipes[0]); # 4492| ldb3 = ldb_init(test_ctx, test_ctx->ev); # 4493| ret = ldb_connect(ldb3, test_ctx->dbpath, 0, NULL); Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:4508:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’ # 4506| exit(LDB_SUCCESS); # 4507| } # 4508|-> close(pipes[1]); # 4509| ret = read(pipes[0], buf, 2); # 4510| assert_int_equal(ret, 2); Error: GCC_ANALYZER_WARNING (CWE-775): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_multiple_opens_across_fork’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_mod_op_test.c:4518:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’ # 4516| # 4517| assert_int_equal(WEXITSTATUS(wstatus), 0); # 4518|-> } # 4519| # 4520| int main(int argc, const char **argv) Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_tdb_test.c: scope_hint: In function ‘test_multiple_opens_across_fork’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_tdb_test.c:246:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’ # 244| TDB_CONTEXT *tdb3 = NULL; # 245| # 246|-> close(pipes[0]); # 247| ldb3 = ldb_init(test_ctx, test_ctx->ev); # 248| ret = ldb_connect(ldb3, test_ctx->dbpath, 0, NULL); Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_tdb_test.c:272:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’ # 270| exit(LDB_SUCCESS); # 271| } # 272|-> close(pipes[1]); # 273| ret = read(pipes[0], buf, 2); # 274| assert_int_equal(ret, 2); Error: GCC_ANALYZER_WARNING (CWE-775): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_tdb_test.c: scope_hint: In function ‘test_multiple_opens_across_fork’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_tdb_test.c:282:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’ # 280| # 281| assert_int_equal(WEXITSTATUS(wstatus), 0); # 282|-> } # 283| # 284| static void test_multiple_opens_across_fork_triggers_reopen(void **state) Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_tdb_test.c: scope_hint: In function ‘test_multiple_opens_across_fork_triggers_reopen’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_tdb_test.c:331:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’ # 329| struct ldb_context *ldb3 = NULL; # 330| # 331|-> close(pipes[0]); # 332| ldb3 = ldb_init(test_ctx, test_ctx->ev); # 333| Error: GCC_ANALYZER_WARNING (CWE-457): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_tdb_test.c:359:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’ # 357| exit(LDB_SUCCESS); # 358| } # 359|-> close(pipes[1]); # 360| ret = read(pipes[0], buf, 2); # 361| assert_int_equal(ret, 2); Error: GCC_ANALYZER_WARNING (CWE-775): libldb-2.9.1-build/ldb-2.9.1/tests/ldb_tdb_test.c: scope_hint: In function ‘test_multiple_opens_across_fork_triggers_reopen’ libldb-2.9.1-build/ldb-2.9.1/tests/ldb_tdb_test.c:369:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’ # 367| # 368| assert_int_equal(WEXITSTATUS(wstatus), 0); # 369|-> } # 370| # 371| int main(int argc, const char **argv) Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/tests/lldb_ldap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/tools/cmdline.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/tools/ldbadd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/tools/ldbdel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/tools/ldbdump.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/tools/ldbdump.c:149:14: warning[deadcode.DeadStores]: Value stored to 'prefix' during its initialization is never read # 147| va_list ap; # 148| const char *name = tdb_name(tdb); # 149|-> const char *prefix = ""; # 150| # 151| if (!name) Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/tools/ldbedit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/tools/ldbsearch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libldb-2.9.1-build/ldb-2.9.1/tools/ldbtest.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/tools/ldbtest.c:335:6: warning[unix.Malloc]: Potential memory leak # 333| ldb_msg_add_string(msg, "@IDXATTR", strdup("uid")); # 334| # 335|-> if (ldb_add(*ldb, msg) != 0) { # 336| printf("Add of %s failed - %s\n", ldb_dn_get_linearized(msg->dn), ldb_errstring(*ldb)); # 337| exit(LDB_ERR_OPERATIONS_ERROR); Error: GCC_ANALYZER_WARNING (CWE-401): libldb-2.9.1-build/ldb-2.9.1/tools/ldbtest.c: scope_hint: In function ‘start_test_index’ libldb-2.9.1-build/ldb-2.9.1/tools/ldbtest.c:335:13: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("uid")’ # 333| ldb_msg_add_string(msg, "@IDXATTR", strdup("uid")); # 334| # 335|-> if (ldb_add(*ldb, msg) != 0) { # 336| printf("Add of %s failed - %s\n", ldb_dn_get_linearized(msg->dn), ldb_errstring(*ldb)); # 337| exit(LDB_ERR_OPERATIONS_ERROR); Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/tools/ldbtest.c:346:32: warning[unix.Malloc]: Potential memory leak # 344| ldb_dn_add_child_fmt(msg->dn, "cn=test"); # 345| ldb_msg_add_string(msg, "cn", strdup("test")); # 346|-> ldb_msg_add_string(msg, "sn", strdup("test")); # 347| ldb_msg_add_string(msg, "uid", strdup("test")); # 348| ldb_msg_add_string(msg, "objectClass", strdup("OpenLDAPperson")); Error: GCC_ANALYZER_WARNING (CWE-401): libldb-2.9.1-build/ldb-2.9.1/tools/ldbtest.c:346:39: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("test")’ # 344| ldb_dn_add_child_fmt(msg->dn, "cn=test"); # 345| ldb_msg_add_string(msg, "cn", strdup("test")); # 346|-> ldb_msg_add_string(msg, "sn", strdup("test")); # 347| ldb_msg_add_string(msg, "uid", strdup("test")); # 348| ldb_msg_add_string(msg, "objectClass", strdup("OpenLDAPperson")); Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/tools/ldbtest.c:347:33: warning[unix.Malloc]: Potential memory leak # 345| ldb_msg_add_string(msg, "cn", strdup("test")); # 346| ldb_msg_add_string(msg, "sn", strdup("test")); # 347|-> ldb_msg_add_string(msg, "uid", strdup("test")); # 348| ldb_msg_add_string(msg, "objectClass", strdup("OpenLDAPperson")); # 349| Error: GCC_ANALYZER_WARNING (CWE-401): libldb-2.9.1-build/ldb-2.9.1/tools/ldbtest.c:347:40: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("test")’ # 345| ldb_msg_add_string(msg, "cn", strdup("test")); # 346| ldb_msg_add_string(msg, "sn", strdup("test")); # 347|-> ldb_msg_add_string(msg, "uid", strdup("test")); # 348| ldb_msg_add_string(msg, "objectClass", strdup("OpenLDAPperson")); # 349| Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/tools/ldbtest.c:348:41: warning[unix.Malloc]: Potential memory leak # 346| ldb_msg_add_string(msg, "sn", strdup("test")); # 347| ldb_msg_add_string(msg, "uid", strdup("test")); # 348|-> ldb_msg_add_string(msg, "objectClass", strdup("OpenLDAPperson")); # 349| # 350| if (ldb_add(*ldb, msg) != LDB_SUCCESS) { Error: GCC_ANALYZER_WARNING (CWE-401): libldb-2.9.1-build/ldb-2.9.1/tools/ldbtest.c:348:48: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("test")’ # 346| ldb_msg_add_string(msg, "sn", strdup("test")); # 347| ldb_msg_add_string(msg, "uid", strdup("test")); # 348|-> ldb_msg_add_string(msg, "objectClass", strdup("OpenLDAPperson")); # 349| # 350| if (ldb_add(*ldb, msg) != LDB_SUCCESS) { Error: CLANG_WARNING: libldb-2.9.1-build/ldb-2.9.1/tools/ldbtest.c:350:6: warning[unix.Malloc]: Potential memory leak # 348| ldb_msg_add_string(msg, "objectClass", strdup("OpenLDAPperson")); # 349| # 350|-> if (ldb_add(*ldb, msg) != LDB_SUCCESS) { # 351| printf("Add of %s failed - %s\n", ldb_dn_get_linearized(msg->dn), ldb_errstring(*ldb)); # 352| exit(LDB_ERR_OPERATIONS_ERROR); Error: GCC_ANALYZER_WARNING (CWE-401): libldb-2.9.1-build/ldb-2.9.1/tools/ldbtest.c:350:13: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("OpenLDAPperson")’ # 348| ldb_msg_add_string(msg, "objectClass", strdup("OpenLDAPperson")); # 349| # 350|-> if (ldb_add(*ldb, msg) != LDB_SUCCESS) { # 351| printf("Add of %s failed - %s\n", ldb_dn_get_linearized(msg->dn), ldb_errstring(*ldb)); # 352| exit(LDB_ERR_OPERATIONS_ERROR);