Error: GCC_ANALYZER_WARNING (CWE-1341): [#def1] hivex-1.3.24/lib/handle.c:452:7: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor '*h.fd' hivex-1.3.24/lib/handle.c:110:6: branch_false: following 'false' branch (when 'h' is non-NULL)... hivex-1.3.24/lib/handle.c:113:15: branch_false: ...to here hivex-1.3.24/lib/handle.c:124:6: branch_false: following 'false' branch... hivex-1.3.24/lib/handle.c:128:11: branch_false: ...to here hivex-1.3.24/lib/handle.c:128:11: acquire_resource: opened here hivex-1.3.24/lib/handle.c:132:6: branch_false: following 'false' branch... hivex-1.3.24/lib/handle.c:135:3: branch_false: ...to here hivex-1.3.24/lib/handle.c:139:6: branch_false: following 'false' branch... hivex-1.3.24/lib/handle.c:142:13: branch_false: ...to here hivex-1.3.24/lib/handle.c:144:6: branch_false: following 'false' branch... hivex-1.3.24/lib/handle.c:151:8: branch_false: ...to here hivex-1.3.24/lib/handle.c:151:6: branch_false: following 'false' branch... hivex-1.3.24/lib/handle.c:158:15: branch_false: ...to here hivex-1.3.24/lib/handle.c:159:8: branch_false: following 'false' branch... hivex-1.3.24/lib/handle.c:162:9: branch_false: ...to here hivex-1.3.24/lib/handle.c:162:8: branch_false: following 'false' branch... hivex-1.3.24/lib/handle.c:168:9: branch_false: ...to here hivex-1.3.24/lib/handle.c:168:9: release_resource: first 'close' here hivex-1.3.24/lib/handle.c:168:8: branch_true: following 'true' branch... hivex-1.3.24/lib/handle.c:169:7: branch_true: ...to here hivex-1.3.24/lib/handle.c:443:6: branch_true: following 'true' branch (when 'h' is non-NULL)... hivex-1.3.24/lib/handle.c:444:11: branch_true: ...to here hivex-1.3.24/lib/handle.c:445:8: branch_true: following 'true' branch... hivex-1.3.24/lib/handle.c:445:9: branch_false: following 'false' branch... hivex-1.3.24/lib/handle.c:451:9: branch_false: ...to here hivex-1.3.24/lib/handle.c:451:8: branch_true: following 'true' branch... hivex-1.3.24/lib/handle.c:452:7: branch_true: ...to here hivex-1.3.24/lib/handle.c:452:7: danger: second 'close' here; first 'close' was at [(19)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/18) # 450| } # 451| if (h->fd >= 0) # 452|-> close (h->fd); # 453| free (h->filename); # 454| free (h); Error: GCC_ANALYZER_WARNING (CWE-401): [#def2] hivex-1.3.24/perl/Hivex.xs:119:15: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)(Perl_av_len(PL_current_context, *sv.sv_u.svu_rv) + 1) * 32)’ hivex-1.3.24/perl/Hivex.xs:110:6: branch_false: following ‘false’ branch... hivex-1.3.24/perl/Hivex.xs:115:16: acquire_memory: allocated here hivex-1.3.24/perl/Hivex.xs:116:6: branch_false: following ‘false’ branch... branch_false: ...to here hivex-1.3.24/perl/Hivex.xs:119:15: branch_true: following ‘true’ branch... hivex-1.3.24/perl/Hivex.xs:120:16: branch_true: ...to here hivex-1.3.24/perl/Hivex.xs:119:15: danger: ‘malloc((long unsigned int)(Perl_av_len(PL_current_context, *sv.sv_u.svu_rv) + 1) * 32)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) # 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): [#def3] hivex-1.3.24/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): [#def4] hivex-1.3.24/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): [#def5] hivex-1.3.24/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): [#def6] hivex-1.3.24/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): [#def7] hivex-1.3.24/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): [#def8] hivex-1.3.24/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): [#def9] hivex-1.3.24/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): [#def10] hivex-1.3.24/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): [#def11] hivex-1.3.24/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): [#def12] hivex-1.3.24/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): [#def13] hivex-1.3.24/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): [#def14] hivex-1.3.24/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): [#def15] hivex-1.3.24/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): [#def16] hivex-1.3.24/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): [#def17] hivex-1.3.24/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): [#def18] hivex-1.3.24/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): [#def19] hivex-1.3.24/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): [#def20] hivex-1.3.24/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): [#def21] hivex-1.3.24/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): [#def22] hivex-1.3.24/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): [#def23] hivex-1.3.24/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): [#def24] hivex-1.3.24/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): [#def25] hivex-1.3.24/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): [#def26] hivex-1.3.24/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): [#def27] hivex-1.3.24/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): [#def28] hivex-1.3.24/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): [#def29] hivex-1.3.24/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): [#def30] hivex-1.3.24/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: COMPILER_WARNING (CWE-477): [#def31] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_open’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:158:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_wrap_warning’ is deprecated: by TypedData # 158 | return Data_Wrap_Struct (c_hivex, NULL, ruby_hivex_free, r); # | ^~~~~~ /usr/include/ruby/internal/core.h:27: included_from: Included from here. /usr/include/ruby/ruby.h:29: included_from: Included from here. /usr/include/ruby.h:38: included_from: Included from here. hivex-1.3.24/ruby/ext/hivex/_hivex.c:31: included_from: Included from here. /usr/include/ruby/internal/core/rdata.h:293:1: note: declared here # 293 | rb_data_object_wrap_warning(VALUE klass, void *ptr, RUBY_DATA_FUNC mark, RUBY_DATA_FUNC free) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 156| rb_raise (e_Error, "%s", strerror (errno)); # 157| # 158|-> return Data_Wrap_Struct (c_hivex, NULL, ruby_hivex_free, r); # 159| } # 160| Error: COMPILER_WARNING (CWE-477): [#def32] hivex-1.3.24/ruby/ext/hivex/_hivex.c:158:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_wrap_warning’ is deprecated: by TypedData # 156| rb_raise (e_Error, "%s", strerror (errno)); # 157| # 158|-> return Data_Wrap_Struct (c_hivex, NULL, ruby_hivex_free, r); # 159| } # 160| Error: COMPILER_WARNING (CWE-477): [#def33] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_close’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:181:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 181 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 179| { # 180| hive_h *h; # 181|-> Data_Get_Struct (hv, hive_h, h); # 182| if (!h) # 183| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def34] hivex-1.3.24/ruby/ext/hivex/_hivex.c:181:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 179| { # 180| hive_h *h; # 181|-> Data_Get_Struct (hv, hive_h, h); # 182| if (!h) # 183| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def35] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_root’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:216:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 216 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 214| { # 215| hive_h *h; # 216|-> Data_Get_Struct (hv, hive_h, h); # 217| if (!h) # 218| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def36] hivex-1.3.24/ruby/ext/hivex/_hivex.c:216:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 214| { # 215| hive_h *h; # 216|-> Data_Get_Struct (hv, hive_h, h); # 217| if (!h) # 218| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def37] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_last_modified’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:253:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 253 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 251| { # 252| hive_h *h; # 253|-> Data_Get_Struct (hv, hive_h, h); # 254| if (!h) # 255| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def38] hivex-1.3.24/ruby/ext/hivex/_hivex.c:253:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 251| { # 252| hive_h *h; # 253|-> Data_Get_Struct (hv, hive_h, h); # 254| if (!h) # 255| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def39] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_node_name’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:296:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 296 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 294| { # 295| hive_h *h; # 296|-> Data_Get_Struct (hv, hive_h, h); # 297| if (!h) # 298| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def40] hivex-1.3.24/ruby/ext/hivex/_hivex.c:296:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 294| { # 295| hive_h *h; # 296|-> Data_Get_Struct (hv, hive_h, h); # 297| if (!h) # 298| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def41] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_node_name_len’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:335:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 335 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 333| { # 334| hive_h *h; # 335|-> Data_Get_Struct (hv, hive_h, h); # 336| if (!h) # 337| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def42] hivex-1.3.24/ruby/ext/hivex/_hivex.c:335:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 333| { # 334| hive_h *h; # 335|-> Data_Get_Struct (hv, hive_h, h); # 336| if (!h) # 337| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def43] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_node_timestamp’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:372:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 372 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 370| { # 371| hive_h *h; # 372|-> Data_Get_Struct (hv, hive_h, h); # 373| if (!h) # 374| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def44] hivex-1.3.24/ruby/ext/hivex/_hivex.c:372:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 370| { # 371| hive_h *h; # 372|-> Data_Get_Struct (hv, hive_h, h); # 373| if (!h) # 374| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def45] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_node_children’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:406:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 406 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 404| { # 405| hive_h *h; # 406|-> Data_Get_Struct (hv, hive_h, h); # 407| if (!h) # 408| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def46] hivex-1.3.24/ruby/ext/hivex/_hivex.c:406:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 404| { # 405| hive_h *h; # 406|-> Data_Get_Struct (hv, hive_h, h); # 407| if (!h) # 408| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def47] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_node_get_child’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:447:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 447 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 445| { # 446| hive_h *h; # 447|-> Data_Get_Struct (hv, hive_h, h); # 448| if (!h) # 449| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def48] hivex-1.3.24/ruby/ext/hivex/_hivex.c:447:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 445| { # 446| hive_h *h; # 447|-> Data_Get_Struct (hv, hive_h, h); # 448| if (!h) # 449| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def49] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_node_nr_children’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:485:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 485 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 483| { # 484| hive_h *h; # 485|-> Data_Get_Struct (hv, hive_h, h); # 486| if (!h) # 487| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def50] hivex-1.3.24/ruby/ext/hivex/_hivex.c:485:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 483| { # 484| hive_h *h; # 485|-> Data_Get_Struct (hv, hive_h, h); # 486| if (!h) # 487| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def51] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_node_parent’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:522:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 522 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 520| { # 521| hive_h *h; # 522|-> Data_Get_Struct (hv, hive_h, h); # 523| if (!h) # 524| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def52] hivex-1.3.24/ruby/ext/hivex/_hivex.c:522:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 520| { # 521| hive_h *h; # 522|-> Data_Get_Struct (hv, hive_h, h); # 523| if (!h) # 524| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def53] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_node_values’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:555:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 555 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 553| { # 554| hive_h *h; # 555|-> Data_Get_Struct (hv, hive_h, h); # 556| if (!h) # 557| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def54] hivex-1.3.24/ruby/ext/hivex/_hivex.c:555:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 553| { # 554| hive_h *h; # 555|-> Data_Get_Struct (hv, hive_h, h); # 556| if (!h) # 557| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def55] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_node_get_value’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:601:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 601 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 599| { # 600| hive_h *h; # 601|-> Data_Get_Struct (hv, hive_h, h); # 602| if (!h) # 603| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def56] hivex-1.3.24/ruby/ext/hivex/_hivex.c:601:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 599| { # 600| hive_h *h; # 601|-> Data_Get_Struct (hv, hive_h, h); # 602| if (!h) # 603| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def57] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_node_nr_values’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:635:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 635 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 633| { # 634| hive_h *h; # 635|-> Data_Get_Struct (hv, hive_h, h); # 636| if (!h) # 637| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def58] hivex-1.3.24/ruby/ext/hivex/_hivex.c:635:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 633| { # 634| hive_h *h; # 635|-> Data_Get_Struct (hv, hive_h, h); # 636| if (!h) # 637| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def59] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_value_key_len’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:677:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 677 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 675| { # 676| hive_h *h; # 677|-> Data_Get_Struct (hv, hive_h, h); # 678| if (!h) # 679| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def60] hivex-1.3.24/ruby/ext/hivex/_hivex.c:677:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 675| { # 676| hive_h *h; # 677|-> Data_Get_Struct (hv, hive_h, h); # 678| if (!h) # 679| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def61] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_value_key’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:718:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 718 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 716| { # 717| hive_h *h; # 718|-> Data_Get_Struct (hv, hive_h, h); # 719| if (!h) # 720| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def62] hivex-1.3.24/ruby/ext/hivex/_hivex.c:718:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 716| { # 717| hive_h *h; # 718|-> Data_Get_Struct (hv, hive_h, h); # 719| if (!h) # 720| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def63] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_value_type’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:761:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 761 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 759| { # 760| hive_h *h; # 761|-> Data_Get_Struct (hv, hive_h, h); # 762| if (!h) # 763| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def64] hivex-1.3.24/ruby/ext/hivex/_hivex.c:761:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 759| { # 760| hive_h *h; # 761|-> Data_Get_Struct (hv, hive_h, h); # 762| if (!h) # 763| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def65] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_node_struct_length’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:798:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 798 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 796| { # 797| hive_h *h; # 798|-> Data_Get_Struct (hv, hive_h, h); # 799| if (!h) # 800| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def66] hivex-1.3.24/ruby/ext/hivex/_hivex.c:798:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 796| { # 797| hive_h *h; # 798|-> Data_Get_Struct (hv, hive_h, h); # 799| if (!h) # 800| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def67] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_value_struct_length’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:830:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 830 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 828| { # 829| hive_h *h; # 830|-> Data_Get_Struct (hv, hive_h, h); # 831| if (!h) # 832| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def68] hivex-1.3.24/ruby/ext/hivex/_hivex.c:830:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 828| { # 829| hive_h *h; # 830|-> Data_Get_Struct (hv, hive_h, h); # 831| if (!h) # 832| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def69] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_value_data_cell_offset’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:872:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 872 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 870| { # 871| hive_h *h; # 872|-> Data_Get_Struct (hv, hive_h, h); # 873| if (!h) # 874| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def70] hivex-1.3.24/ruby/ext/hivex/_hivex.c:872:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 870| { # 871| hive_h *h; # 872|-> Data_Get_Struct (hv, hive_h, h); # 873| if (!h) # 874| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def71] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_value_value’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:911:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 911 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 909| { # 910| hive_h *h; # 911|-> Data_Get_Struct (hv, hive_h, h); # 912| if (!h) # 913| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def72] hivex-1.3.24/ruby/ext/hivex/_hivex.c:911:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 909| { # 910| hive_h *h; # 911|-> Data_Get_Struct (hv, hive_h, h); # 912| if (!h) # 913| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def73] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_value_string’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:953:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 953 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 951| { # 952| hive_h *h; # 953|-> Data_Get_Struct (hv, hive_h, h); # 954| if (!h) # 955| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def74] hivex-1.3.24/ruby/ext/hivex/_hivex.c:953:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 951| { # 952| hive_h *h; # 953|-> Data_Get_Struct (hv, hive_h, h); # 954| if (!h) # 955| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def75] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_value_multiple_strings’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:991:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 991 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 989| { # 990| hive_h *h; # 991|-> Data_Get_Struct (hv, hive_h, h); # 992| if (!h) # 993| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def76] hivex-1.3.24/ruby/ext/hivex/_hivex.c:991:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 989| { # 990| hive_h *h; # 991|-> Data_Get_Struct (hv, hive_h, h); # 992| if (!h) # 993| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def77] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_value_dword’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:1033:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 1033 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 1031| { # 1032| hive_h *h; # 1033|-> Data_Get_Struct (hv, hive_h, h); # 1034| if (!h) # 1035| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def78] hivex-1.3.24/ruby/ext/hivex/_hivex.c:1033:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 1031| { # 1032| hive_h *h; # 1033|-> Data_Get_Struct (hv, hive_h, h); # 1034| if (!h) # 1035| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def79] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_value_qword’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:1068:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 1068 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 1066| { # 1067| hive_h *h; # 1068|-> Data_Get_Struct (hv, hive_h, h); # 1069| if (!h) # 1070| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def80] hivex-1.3.24/ruby/ext/hivex/_hivex.c:1068:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 1066| { # 1067| hive_h *h; # 1068|-> Data_Get_Struct (hv, hive_h, h); # 1069| if (!h) # 1070| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def81] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_commit’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:1111:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 1111 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 1109| { # 1110| hive_h *h; # 1111|-> Data_Get_Struct (hv, hive_h, h); # 1112| if (!h) # 1113| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def82] hivex-1.3.24/ruby/ext/hivex/_hivex.c:1111:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 1109| { # 1110| hive_h *h; # 1111|-> Data_Get_Struct (hv, hive_h, h); # 1112| if (!h) # 1113| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def83] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_node_add_child’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:1151:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 1151 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 1149| { # 1150| hive_h *h; # 1151|-> Data_Get_Struct (hv, hive_h, h); # 1152| if (!h) # 1153| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def84] hivex-1.3.24/ruby/ext/hivex/_hivex.c:1151:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 1149| { # 1150| hive_h *h; # 1151|-> Data_Get_Struct (hv, hive_h, h); # 1152| if (!h) # 1153| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def85] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_node_delete_child’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:1187:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 1187 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 1185| { # 1186| hive_h *h; # 1187|-> Data_Get_Struct (hv, hive_h, h); # 1188| if (!h) # 1189| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def86] hivex-1.3.24/ruby/ext/hivex/_hivex.c:1187:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 1185| { # 1186| hive_h *h; # 1187|-> Data_Get_Struct (hv, hive_h, h); # 1188| if (!h) # 1189| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def87] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_node_set_values’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:1222:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 1222 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 1220| { # 1221| hive_h *h; # 1222|-> Data_Get_Struct (hv, hive_h, h); # 1223| if (!h) # 1224| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def88] hivex-1.3.24/ruby/ext/hivex/_hivex.c:1222:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 1220| { # 1221| hive_h *h; # 1222|-> Data_Get_Struct (hv, hive_h, h); # 1223| if (!h) # 1224| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def89] hivex-1.3.24/ruby/ext/hivex/_hivex.c: scope_hint: In function ‘ruby_hivex_node_set_value’ hivex-1.3.24/ruby/ext/hivex/_hivex.c:1263:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 1263 | Data_Get_Struct (hv, hive_h, h); # | ^~~~~~~~~~~~~~~ /usr/include/ruby/internal/core/rdata.h:325:1: note: declared here # 325 | rb_data_object_get_warning(VALUE obj) # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 1261| { # 1262| hive_h *h; # 1263|-> Data_Get_Struct (hv, hive_h, h); # 1264| if (!h) # 1265| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: COMPILER_WARNING (CWE-477): [#def90] hivex-1.3.24/ruby/ext/hivex/_hivex.c:1263:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData # 1261| { # 1262| hive_h *h; # 1263|-> Data_Get_Struct (hv, hive_h, h); # 1264| if (!h) # 1265| rb_raise (rb_eArgError, "%s: used handle after closing it", Error: GCC_ANALYZER_WARNING (CWE-401): [#def91] hivex-1.3.24/sh/hivexsh.c:1090:3: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ hivex-1.3.24/sh/hivexsh.c:872:6: branch_false: following ‘false’ branch... hivex-1.3.24/sh/hivexsh.c:877:7: branch_false: ...to here hivex-1.3.24/sh/hivexsh.c:877:6: branch_false: following ‘false’ branch... hivex-1.3.24/sh/hivexsh.c:884:5: branch_false: ...to here hivex-1.3.24/sh/hivexsh.c:885:6: branch_false: following ‘false’ branch (when ‘values’ is non-NULL)... branch_false: ...to here hivex-1.3.24/sh/hivexsh.c:896:15: branch_true: following ‘true’ branch... hivex-1.3.24/sh/hivexsh.c:898:17: branch_true: ...to here hivex-1.3.24/sh/hivexsh.c:899:8: branch_false: following ‘false’ branch... hivex-1.3.24/sh/hivexsh.c:906:9: branch_false: ...to here hivex-1.3.24/sh/hivexsh.c:906:8: branch_true: following ‘true’ branch (when the strings are equal)... hivex-1.3.24/sh/hivexsh.c:907:13: branch_true: ...to here hivex-1.3.24/sh/hivexsh.c:907:23: acquire_memory: allocated here hivex-1.3.24/sh/hivexsh.c:910:8: branch_false: following ‘false’ branch... hivex-1.3.24/sh/hivexsh.c:916:11: branch_false: ...to here hivex-1.3.24/sh/hivexsh.c:917:8: branch_true: following ‘true’ branch... hivex-1.3.24/sh/hivexsh.c:918:24: branch_true: ...to here hivex-1.3.24/sh/hivexsh.c:1086:15: branch_false: following ‘false’ branch... hivex-1.3.24/sh/hivexsh.c:1090:3: branch_false: ...to here hivex-1.3.24/sh/hivexsh.c:1090:3: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12) # 1088| free (values[i].value); # 1089| } # 1090|-> free (values); # 1091| # 1092| return ret;
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-234.us-west-2.compute.internal |
known-false-positives | /usr/share/csmock/known-false-positives.js |
known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | hivex-1.3.24-4.fc43 |
store-results-to | /tmp/tmpap8kpkyc/hivex-1.3.24-4.fc43.tar.xz |
time-created | 2025-04-25 13:02:14 |
time-finished | 2025-04-25 13:03:54 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpap8kpkyc/hivex-1.3.24-4.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpap8kpkyc/hivex-1.3.24-4.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |