hivex-1.3.23-22.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
hivex-1.3.23-build/hivex-1.3.23/gnulib/lib/xstrtol.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
hivex-1.3.23-build/hivex-1.3.23/gnulib/lib/xstrtoll.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
hivex-1.3.23-build/hivex-1.3.23/gnulib/lib/xstrtoul.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
hivex-1.3.23-build/hivex-1.3.23/gnulib/lib/xstrtoull.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
hivex-1.3.23-build/hivex-1.3.23/gnulib/lib/xstrtoumax.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
hivex-1.3.23-build/hivex-1.3.23/images/mklarge.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def7]
hivex-1.3.23-build/hivex-1.3.23/lib/handle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def8]
hivex-1.3.23-build/hivex-1.3.23/lib/handle.c: scope_hint: In function 'hivex_open'
hivex-1.3.23-build/hivex-1.3.23/lib/handle.c:452:7: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor '*h.fd'
#  450|       }
#  451|       if (h->fd >= 0)
#  452|->       close (h->fd);
#  453|       free (h->filename);
#  454|       free (h);

Error: CPPCHECK_WARNING: [#def9]
hivex-1.3.23-build/hivex-1.3.23/lib/node.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def10]
hivex-1.3.23-build/hivex-1.3.23/lib/value.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def11]
hivex-1.3.23-build/hivex-1.3.23/lib/value.c:433:16: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'len_rtn')
#  431|         off += sz;
#  432|       }
#  433|->     if (off != *len_rtn) {
#  434|         DEBUG (2, "warning: declared data length "
#  435|                "and amount of data found in sub-blocks differ "

Error: CPPCHECK_WARNING: [#def12]
hivex-1.3.23-build/hivex-1.3.23/lib/write.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def14]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.c:1381:9: warning[unix.Malloc]: Potential memory leak
# 1379|           h = (hive_h *) SvIV ((SV *) SvRV (ST(0)));
# 1380|       else {
# 1381|->         warn ("Win::Hivex::node_set_values(): h is not a blessed SV reference");
# 1382|           XSRETURN_UNDEF;
# 1383|       }

Error: CLANG_WARNING: [#def15]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.c:1417:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'val'
# 1415|           h = (hive_h *) SvIV ((SV *) SvRV (ST(0)));
# 1416|       else {
# 1417|->         warn ("Win::Hivex::node_set_value(): h is not a blessed SV reference");
# 1418|           XSRETURN_UNDEF;
# 1419|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs: scope_hint: In function ‘unpack_pl_set_values’
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:119:17: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)(Perl_av_len(PL_current_context, *sv.sv_u.svu_rv) + 1) * 32)’
/usr/lib64/perl5/CORE/perl.h:6225: included_from: Included from here.
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:28: included_from: Included from here.
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:114:19: note: in expansion of macro ‘av_len’
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:120:16: note: in expansion of macro ‘av_fetch’
#  117|       croak ("malloc failed");
#  118|   
#  119|->   for (i = 0; i <= av_len (av); i++) {
#  120|       SV **hvp = av_fetch (av, i, 0);
#  121|   

Error: CPPCHECK_WARNING (CWE-457): [#def17]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:199: error[legacyUninitvar]: Uninitialized variable: h
#  197|         hive_h *h;
#  198|    PPCODE:
#  199|->       if (hivex_close (h) == -1)
#  200|           croak ("hivex_close: %s", strerror (errno));
#  201|   

Error: CPPCHECK_WARNING (CWE-457): [#def18]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:210: error[legacyUninitvar]: Uninitialized variable: h
#  208|         size_t r;
#  209|      CODE:
#  210|->       r = hivex_root (h);
#  211|         if (r == 0)
#  212|           croak ("%s: %s", "root", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def19]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:224: error[legacyUninitvar]: Uninitialized variable: h
#  222|      CODE:
#  223|         errno = 0;
#  224|->       r = hivex_last_modified (h);
#  225|         if (r == -1 && errno != 0)
#  226|           croak ("%s: %s", "last_modified", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def20]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:238: error[legacyUninitvar]: Uninitialized variable: h
#  236|         char *r;
#  237|      CODE:
#  238|->       r = hivex_node_name (h, node);
#  239|         if (r == NULL)
#  240|           croak ("%s: %s", "node_name", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def21]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:255: error[legacyUninitvar]: Uninitialized variable: h
#  253|         size_t r;
#  254|      CODE:
#  255|->       r = hivex_node_name_len (h, node);
#  256|         if (r == 0)
#  257|           croak ("%s: %s", "node_name_len", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def22]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:270: error[legacyUninitvar]: Uninitialized variable: h
#  268|      CODE:
#  269|         errno = 0;
#  270|->       r = hivex_node_timestamp (h, node);
#  271|         if (r == -1 && errno != 0)
#  272|           croak ("%s: %s", "node_timestamp", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def23]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:285: error[legacyUninitvar]: Uninitialized variable: h
#  283|         int i, n;
#  284|    PPCODE:
#  285|->       r = hivex_node_children (h, node);
#  286|         if (r == NULL)
#  287|           croak ("%s: %s", "node_children", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def24]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:303: error[legacyUninitvar]: Uninitialized variable: h
#  301|      CODE:
#  302|         errno = 0;
#  303|->       r = hivex_node_get_child (h, node, name);
#  304|         if (r == 0 && errno != 0)
#  305|           croak ("%s: %s", "node_get_child", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def25]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:322: error[legacyUninitvar]: Uninitialized variable: h
#  320|         size_t r;
#  321|      CODE:
#  322|->       r = hivex_node_nr_children (h, node);
#  323|         if (r == 0)
#  324|           croak ("%s: %s", "node_nr_children", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def26]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:338: error[legacyUninitvar]: Uninitialized variable: h
#  336|         size_t r;
#  337|      CODE:
#  338|->       r = hivex_node_parent (h, node);
#  339|         if (r == 0)
#  340|           croak ("%s: %s", "node_parent", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def27]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:353: error[legacyUninitvar]: Uninitialized variable: h
#  351|         int i, n;
#  352|    PPCODE:
#  353|->       r = hivex_node_values (h, node);
#  354|         if (r == NULL)
#  355|           croak ("%s: %s", "node_values", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def28]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:372: error[legacyUninitvar]: Uninitialized variable: h
#  370|         size_t r;
#  371|      CODE:
#  372|->       r = hivex_node_get_value (h, node, key);
#  373|         if (r == 0)
#  374|           croak ("%s: %s", "node_get_value", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def29]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:388: error[legacyUninitvar]: Uninitialized variable: h
#  386|         size_t r;
#  387|      CODE:
#  388|->       r = hivex_node_nr_values (h, node);
#  389|         if (r == 0)
#  390|           croak ("%s: %s", "node_nr_values", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def30]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:404: error[legacyUninitvar]: Uninitialized variable: h
#  402|         size_t r;
#  403|      CODE:
#  404|->       r = hivex_value_key_len (h, val);
#  405|         if (r == 0)
#  406|           croak ("%s: %s", "value_key_len", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def31]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:418: error[legacyUninitvar]: Uninitialized variable: h
#  416|         char *r;
#  417|      CODE:
#  418|->       r = hivex_value_key (h, val);
#  419|         if (r == NULL)
#  420|           croak ("%s: %s", "value_key", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def32]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:435: error[legacyUninitvar]: Uninitialized variable: h
#  433|         hive_type type;
#  434|    PPCODE:
#  435|->       r = hivex_value_type (h, val, &type, &len);
#  436|         if (r == -1)
#  437|           croak ("%s: %s", "value_type", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def33]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:451: error[legacyUninitvar]: Uninitialized variable: h
#  449|         size_t r;
#  450|      CODE:
#  451|->       r = hivex_node_struct_length (h, node);
#  452|         if (r == 0)
#  453|           croak ("%s: %s", "node_struct_length", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def34]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:467: error[legacyUninitvar]: Uninitialized variable: h
#  465|         size_t r;
#  466|      CODE:
#  467|->       r = hivex_value_struct_length (h, val);
#  468|         if (r == 0)
#  469|           croak ("%s: %s", "value_struct_length", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def35]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:483: error[legacyUninitvar]: Uninitialized variable: h
#  481|    PPCODE:
#  482|         errno = 0;
#  483|->       r = hivex_value_data_cell_offset (h, val, &len);
#  484|         if (r == 0 && errno)
#  485|           croak ("%s: %s", "value_data_cell_offset", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def36]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:499: error[legacyUninitvar]: Uninitialized variable: h
#  497|         hive_type type;
#  498|    PPCODE:
#  499|->       r = hivex_value_value (h, val, &type, &len);
#  500|         if (r == NULL)
#  501|           croak ("%s: %s", "value_value", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def37]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:514: error[legacyUninitvar]: Uninitialized variable: h
#  512|         char *r;
#  513|      CODE:
#  514|->       r = hivex_value_string (h, val);
#  515|         if (r == NULL)
#  516|           croak ("%s: %s", "value_string", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def38]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:530: error[legacyUninitvar]: Uninitialized variable: h
#  528|         int i, n;
#  529|    PPCODE:
#  530|->       r = hivex_value_multiple_strings (h, val);
#  531|         if (r == NULL)
#  532|           croak ("%s: %s", "value_multiple_strings", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def39]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:549: error[legacyUninitvar]: Uninitialized variable: h
#  547|      CODE:
#  548|         errno = 0;
#  549|->       r = hivex_value_dword (h, val);
#  550|         if (r == -1 && errno != 0)
#  551|           croak ("%s: %s", "value_dword", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def40]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:564: error[legacyUninitvar]: Uninitialized variable: h
#  562|      CODE:
#  563|         errno = 0;
#  564|->       r = hivex_value_qword (h, val);
#  565|         if (r == -1 && errno != 0)
#  566|           croak ("%s: %s", "value_qword", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def41]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:592: error[legacyUninitvar]: Uninitialized variable: h
#  590|         size_t r;
#  591|      CODE:
#  592|->       r = hivex_node_add_child (h, parent, name);
#  593|         if (r == 0)
#  594|           croak ("%s: %s", "node_add_child", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def42]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:606: error[legacyUninitvar]: Uninitialized variable: h
#  604|         int r;
#  605|    PPCODE:
#  606|->       r = hivex_node_delete_child (h, node);
#  607|         if (r == -1)
#  608|           croak ("%s: %s", "node_delete_child", strerror (errno));

Error: CPPCHECK_WARNING (CWE-457): [#def43]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:618: error[legacyUninitvar]: Uninitialized variable: h
#  616|         int r;
#  617|    PPCODE:
#  618|->       r = hivex_node_set_values (h, node, values.nr_values, values.values, 0);
#  619|         free (values.values);
#  620|         if (r == -1)

Error: CPPCHECK_WARNING (CWE-457): [#def44]
hivex-1.3.23-build/hivex-1.3.23/perl/Hivex.xs:631: error[legacyUninitvar]: Uninitialized variable: h
#  629|         int r;
#  630|    PPCODE:
#  631|->       r = hivex_node_set_value (h, node, val, 0);
#  632|         free (val);
#  633|         if (r == -1)

Error: CPPCHECK_WARNING: [#def45]
hivex-1.3.23-build/hivex-1.3.23/sh/hivexsh.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
hivex-1.3.23-build/hivex-1.3.23/sh/hivexsh.c: scope_hint: In function ‘cmd_setval’
hivex-1.3.23-build/hivex-1.3.23/sh/hivexsh.c:1090:3: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
hivex-1.3.23-build/hivex-1.3.23/sh/hivexsh.c:906:9: note: in expansion of macro ‘STREQ’
hivex-1.3.23-build/hivex-1.3.23/sh/hivexsh.c:33: included_from: Included from here.
hivex-1.3.23-build/hivex-1.3.23/sh/hivexsh.c:918:24: note: in expansion of macro ‘_’
# 1088|       free (values[i].value);
# 1089|     }
# 1090|->   free (values);
# 1091|   
# 1092|     return ret;

Error: CPPCHECK_WARNING: [#def47]
hivex-1.3.23-build/hivex-1.3.23/xml/hivexml.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-60.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namehivex-1.3.23-22.fc41
store-results-to/tmp/tmpoc992e6d/hivex-1.3.23-22.fc41.tar.xz
time-created2024-07-03 13:10:02
time-finished2024-07-03 13:11:33
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpoc992e6d/hivex-1.3.23-22.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpoc992e6d/hivex-1.3.23-22.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9