libusb1-1.0.29-4.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
libusb-1.0.29/examples/dpfp.c:328:20: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libusb-1.0.29/examples/dpfp.c:320:30: acquire_memory: allocated here
libusb-1.0.29/examples/dpfp.c:323:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libusb-1.0.29/examples/dpfp.c:328:20: branch_false: ...to here
libusb-1.0.29/examples/dpfp.c:328:20: throw: if ‘libusb_alloc_transfer’ throws an exception...
libusb-1.0.29/examples/dpfp.c:328:20: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
libusb-1.0.29/examples/ezusb.c:131:17: warning[-Wanalyzer-malloc-leak]: leak of ‘dImageBuf’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
libusb-1.0.29/examples/ezusb.c:585:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:588:20: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:592:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:599:14: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:599:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:639:20: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:640:26: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:639:21: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:645:21: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:645:20: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:649:40: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:649:40: acquire_memory: allocated here
libusb-1.0.29/examples/ezusb.c:650:20: branch_false: following ‘false’ branch (when ‘dImageBuf’ is non-NULL)...
libusb-1.0.29/examples/ezusb.c:657:21: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:657:20: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:657:20: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:672:30: call_function: calling ‘ezusb_write’ from ‘fx3_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
libusb-1.0.29/examples/ezusb.c:132:18: warning[-Wanalyzer-malloc-leak]: leak of ‘dImageBuf’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
libusb-1.0.29/examples/ezusb.c:585:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:588:20: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:592:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:599:14: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:599:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:639:20: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:640:26: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:639:21: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:645:21: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:645:20: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:649:40: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:649:40: acquire_memory: allocated here
libusb-1.0.29/examples/ezusb.c:650:20: branch_false: following ‘false’ branch (when ‘dImageBuf’ is non-NULL)...
libusb-1.0.29/examples/ezusb.c:657:21: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:657:20: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:657:20: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:672:30: call_function: calling ‘ezusb_write’ from ‘fx3_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def4]
libusb-1.0.29/examples/ezusb.c:588:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:584:17: acquire_resource: opened here
libusb-1.0.29/examples/ezusb.c:585:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:588:20: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:588:19: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:589:17: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:589:17: throw: if ‘logerror’ throws an exception...
libusb-1.0.29/examples/ezusb.c:588:20: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
libusb-1.0.29/examples/ezusb.c:588:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:584:17: acquire_memory: allocated here
libusb-1.0.29/examples/ezusb.c:585:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:588:20: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:588:19: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:589:17: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:589:17: throw: if ‘logerror’ throws an exception...
libusb-1.0.29/examples/ezusb.c:588:20: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-789): [#def6]
libusb-1.0.29/examples/ezusb.c:649:40: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘(long unsigned int)dLength * 4’ as allocation size without upper-bounds checking
libusb-1.0.29/examples/ezusb.c:585:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:588:20: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:592:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:599:14: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:599:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:639:20: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:640:26: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:639:21: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:645:21: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:645:20: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:649:40: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:649:40: danger: use of attacker-controlled value ‘(long unsigned int)dLength * 4’ as allocation size without upper-bounds checking
Error: GCC_ANALYZER_WARNING (CWE-129): [#def7]
libusb-1.0.29/examples/ezusb.c:649:40: warning[-Wanalyzer-tainted-size]: use of attacker-controlled value ‘(long unsigned int)dLength * 4’ as size without upper-bounds checking
libusb-1.0.29/examples/ezusb.c:585:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:588:20: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:592:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:599:14: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:599:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:639:20: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:640:26: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:639:21: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:645:21: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:645:20: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:649:40: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:649:40: danger: use of attacker-controlled value ‘(long unsigned int)dLength * 4’ as size without upper-bounds checking
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
libusb-1.0.29/examples/ezusb.c:658:25: warning[-Wanalyzer-malloc-leak]: leak of ‘dImageBuf’
libusb-1.0.29/examples/ezusb.c:585:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:588:20: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:592:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:599:14: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:599:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:639:20: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:640:26: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:639:21: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:645:21: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:645:20: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:649:40: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:649:40: acquire_memory: allocated here
libusb-1.0.29/examples/ezusb.c:650:20: branch_false: following ‘false’ branch (when ‘dImageBuf’ is non-NULL)...
libusb-1.0.29/examples/ezusb.c:657:21: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:658:25: throw: if ‘logerror’ throws an exception...
libusb-1.0.29/examples/ezusb.c:658:25: danger: ‘dImageBuf’ leaks here; was allocated at [(15)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def9]
libusb-1.0.29/examples/ezusb.c:745:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:738:12: branch_false: following ‘false’ branch (when ‘fx_type != 4’)...
libusb-1.0.29/examples/ezusb.c:741:17: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:741:17: acquire_resource: opened here
libusb-1.0.29/examples/ezusb.c:742:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:745:20: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:745:19: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:746:17: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:746:17: throw: if ‘logerror’ throws an exception...
libusb-1.0.29/examples/ezusb.c:745:20: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
libusb-1.0.29/examples/ezusb.c:745:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:738:12: branch_false: following ‘false’ branch (when ‘fx_type != 4’)...
libusb-1.0.29/examples/ezusb.c:741:17: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:741:17: acquire_memory: allocated here
libusb-1.0.29/examples/ezusb.c:742:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:745:20: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:745:19: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:746:17: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:746:17: throw: if ‘logerror’ throws an exception...
libusb-1.0.29/examples/ezusb.c:745:20: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def11]
libusb-1.0.29/examples/testlibusb.c:252:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(device_name, 2)’
libusb-1.0.29/examples/testlibusb.c:247:14: acquire_resource: opened here
libusb-1.0.29/examples/testlibusb.c:248:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/testlibusb.c:252:13: branch_false: ...to here
libusb-1.0.29/examples/testlibusb.c:252:13: throw: if ‘libusb_wrap_sys_device’ throws an exception...
libusb-1.0.29/examples/testlibusb.c:252:13: danger: ‘open(device_name, 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
libusb-1.0.29/libusb/core.c:2227:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libusb-1.0.29/libusb/core.c:2216:13: enter_function: entry to 'libusb_set_log_cb_internal'
libusb-1.0.29/libusb/core.c:2226:23: call_function: calling 'usbi_get_context' from 'libusb_set_log_cb_internal'
libusb-1.0.29/libusb/core.c:2226:23: return_function: returning to 'libusb_set_log_cb_internal' from 'usbi_get_context'
libusb-1.0.29/libusb/core.c:2227:17: danger: dereference of NULL 'usbi_get_context(ctx)'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def13]
libusb-1.0.29/libusb/core.c:2354:37: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libusb-1.0.29/libusb/core.c:2422:18: enter_function: entry to 'libusb_init_context'
libusb-1.0.29/libusb/core.c:2428:9: call_function: calling 'usbi_mutex_static_lock' from 'libusb_init_context'
libusb-1.0.29/libusb/core.c:2428:9: return_function: returning to 'libusb_init_context' from 'usbi_mutex_static_lock'
libusb-1.0.29/libusb/core.c:2438:9: call_function: calling 'usbi_mutex_static_lock' from 'libusb_init_context'
libusb-1.0.29/libusb/core.c:2438:9: return_function: returning to 'libusb_init_context' from 'usbi_mutex_static_lock'
libusb-1.0.29/libusb/core.c:2443:9: call_function: calling 'usbi_mutex_static_unlock' from 'libusb_init_context'
libusb-1.0.29/libusb/core.c:2443:9: return_function: returning to 'libusb_init_context' from 'usbi_mutex_static_unlock'
libusb-1.0.29/libusb/core.c:2446:12: branch_false: following 'false' branch (when '_ctx' is non-NULL)...
libusb-1.0.29/libusb/core.c:2452:9: branch_false: ...to here
libusb-1.0.29/libusb/core.c:2461:9: call_function: calling 'usbi_mutex_init' from 'libusb_init_context'
libusb-1.0.29/libusb/core.c:2461:9: return_function: returning to 'libusb_init_context' from 'usbi_mutex_init'
libusb-1.0.29/libusb/core.c:2462:9: call_function: calling 'usbi_mutex_init' from 'libusb_init_context'
libusb-1.0.29/libusb/core.c:2462:9: return_function: returning to 'libusb_init_context' from 'usbi_mutex_init'
libusb-1.0.29/libusb/core.c:2467:46: branch_true: following 'true' branch (when 'option != 4')...
libusb-1.0.29/libusb/core.c:2468:20: branch_true: ...to here
libusb-1.0.29/libusb/core.c:2468:20: branch_true: following 'true' branch (when 'option == 0')...
libusb-1.0.29/libusb/core.c:2468:20: branch_true: ...to here
libusb-1.0.29/libusb/core.c:2467:46: branch_true: following 'true' branch (when 'option != 4')...
libusb-1.0.29/libusb/core.c:2468:20: branch_true: ...to here
libusb-1.0.29/libusb/core.c:2471:20: branch_true: following 'true' branch (when 'option != 3')...
libusb-1.0.29/libusb/core.c:2472:29: branch_true: ...to here
libusb-1.0.29/libusb/core.c:2472:29: call_function: calling 'libusb_set_option' from 'libusb_init_context'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def14]
libusb-1.0.29/libusb/core.c:2743:17: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libusb-1.0.29/libusb/core.c:2845:6: enter_function: entry to 'usbi_log'
libusb-1.0.29/libusb/core.c:2850:9: acquire_resource: 'va_start' called here
libusb-1.0.29/libusb/core.c:2851:9: call_function: calling 'log_v' from 'usbi_log'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def15]
libusb-1.0.29/libusb/core.c:2809:30: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libusb-1.0.29/libusb/core.c:2845:6: enter_function: entry to 'usbi_log'
libusb-1.0.29/libusb/core.c:2850:9: acquire_resource: 'va_start' called here
libusb-1.0.29/libusb/core.c:2851:9: call_function: calling 'log_v' from 'usbi_log'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
libusb-1.0.29/libusb/descriptor.c:61:17: warning[-Wanalyzer-malloc-leak]: leak of '_config'
libusb-1.0.29/libusb/descriptor.c:629:18: enter_function: entry to 'libusb_get_config_descriptor_by_value'
libusb-1.0.29/libusb/descriptor.c:635:12: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:638:21: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:640:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:643:24: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:643:24: call_function: calling 'raw_desc_to_config' from 'libusb_get_config_descriptor_by_value'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
libusb-1.0.29/libusb/descriptor.c:68:17: warning[-Wanalyzer-malloc-leak]: leak of '_config'
libusb-1.0.29/libusb/descriptor.c:629:18: enter_function: entry to 'libusb_get_config_descriptor_by_value'
libusb-1.0.29/libusb/descriptor.c:635:12: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:638:21: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:640:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:643:24: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:643:24: call_function: calling 'raw_desc_to_config' from 'libusb_get_config_descriptor_by_value'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
libusb-1.0.29/libusb/descriptor.c:72:17: warning[-Wanalyzer-malloc-leak]: leak of '_config'
libusb-1.0.29/libusb/descriptor.c:629:18: enter_function: entry to 'libusb_get_config_descriptor_by_value'
libusb-1.0.29/libusb/descriptor.c:635:12: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:638:21: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:640:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:643:24: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:643:24: call_function: calling 'raw_desc_to_config' from 'libusb_get_config_descriptor_by_value'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
libusb-1.0.29/libusb/descriptor.c:75:17: warning[-Wanalyzer-malloc-leak]: leak of '_config'
libusb-1.0.29/libusb/descriptor.c:629:18: enter_function: entry to 'libusb_get_config_descriptor_by_value'
libusb-1.0.29/libusb/descriptor.c:635:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:646:9: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:647:23: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:650:21: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:651:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:654:21: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:655:32: call_function: calling 'libusb_get_config_descriptor' from 'libusb_get_config_descriptor_by_value'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
libusb-1.0.29/libusb/descriptor.c:337:17: warning[-Wanalyzer-malloc-leak]: leak of '_config'
libusb-1.0.29/libusb/descriptor.c:629:18: enter_function: entry to 'libusb_get_config_descriptor_by_value'
libusb-1.0.29/libusb/descriptor.c:635:12: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:638:21: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:640:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:643:24: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:643:24: call_function: calling 'raw_desc_to_config' from 'libusb_get_config_descriptor_by_value'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
libusb-1.0.29/libusb/descriptor.c:351:17: warning[-Wanalyzer-malloc-leak]: leak of '_config'
libusb-1.0.29/libusb/descriptor.c:629:18: enter_function: entry to 'libusb_get_config_descriptor_by_value'
libusb-1.0.29/libusb/descriptor.c:635:12: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:638:21: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:640:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:643:24: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:643:24: call_function: calling 'raw_desc_to_config' from 'libusb_get_config_descriptor_by_value'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
libusb-1.0.29/libusb/descriptor.c:355:17: warning[-Wanalyzer-malloc-leak]: leak of '_config'
libusb-1.0.29/libusb/descriptor.c:629:18: enter_function: entry to 'libusb_get_config_descriptor_by_value'
libusb-1.0.29/libusb/descriptor.c:635:12: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:638:21: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:640:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:643:24: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:643:24: call_function: calling 'raw_desc_to_config' from 'libusb_get_config_descriptor_by_value'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
libusb-1.0.29/libusb/descriptor.c:358:17: warning[-Wanalyzer-malloc-leak]: leak of '_config'
libusb-1.0.29/libusb/descriptor.c:629:18: enter_function: entry to 'libusb_get_config_descriptor_by_value'
libusb-1.0.29/libusb/descriptor.c:635:12: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:638:21: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:640:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:643:24: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:643:24: call_function: calling 'raw_desc_to_config' from 'libusb_get_config_descriptor_by_value'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
libusb-1.0.29/libusb/descriptor.c:362:17: warning[-Wanalyzer-malloc-leak]: leak of '_config'
libusb-1.0.29/libusb/descriptor.c:629:18: enter_function: entry to 'libusb_get_config_descriptor_by_value'
libusb-1.0.29/libusb/descriptor.c:635:12: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:638:21: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:640:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:643:24: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:643:24: call_function: calling 'raw_desc_to_config' from 'libusb_get_config_descriptor_by_value'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
libusb-1.0.29/libusb/descriptor.c:470:17: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libusb-1.0.29/libusb/descriptor.c:1513:18: enter_function: entry to 'libusb_get_active_interface_association_descriptors'
libusb-1.0.29/libusb/descriptor.c:1521:12: branch_false: following 'false' branch (when 'iad_array' is non-NULL)...
libusb-1.0.29/libusb/descriptor.c:1524:13: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:1525:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:1528:41: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:1529:15: acquire_memory: allocated here
libusb-1.0.29/libusb/descriptor.c:1530:12: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libusb-1.0.29/libusb/descriptor.c:1533:13: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:1533:13: call_function: calling 'get_active_config_descriptor' from 'libusb_get_active_interface_association_descriptors'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
libusb-1.0.29/libusb/descriptor.c:490:17: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libusb-1.0.29/libusb/descriptor.c:1464:18: enter_function: entry to 'libusb_get_interface_association_descriptors'
libusb-1.0.29/libusb/descriptor.c:1472:12: branch_false: following 'false' branch (when 'iad_array' is non-NULL)...
libusb-1.0.29/libusb/descriptor.c:1475:9: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:1476:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:1479:13: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:1480:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:1483:41: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:1484:15: acquire_memory: allocated here
libusb-1.0.29/libusb/descriptor.c:1485:12: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libusb-1.0.29/libusb/descriptor.c:1488:13: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:1488:13: call_function: calling 'get_config_descriptor' from 'libusb_get_interface_association_descriptors'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
libusb-1.0.29/libusb/descriptor.c:794:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libusb-1.0.29/libusb/descriptor.c:760:12: branch_false: following 'false' branch (when 'size > 4')...
libusb-1.0.29/libusb/descriptor.c:767:13: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:767:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:771:20: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:771:19: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:774:20: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:774:19: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:780:42: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:781:12: branch_false: following 'false' branch (when '_bos' is non-NULL)...
libusb-1.0.29/libusb/descriptor.c:784:9: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:792:21: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:793:20: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:793:20: branch_false: following 'false' branch (when 'size > 2')...
libusb-1.0.29/libusb/descriptor.c:799:21: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:799:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:803:28: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:803:27: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:808:28: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:808:27: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:814:43: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:814:43: acquire_memory: allocated here
libusb-1.0.29/libusb/descriptor.c:815:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:819:17: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:792:21: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:793:20: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:793:20: branch_true: following 'true' branch (when 'size <= 2')...
libusb-1.0.29/libusb/descriptor.c:794:25: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:794:25: throw: if 'usbi_log' throws an exception...
libusb-1.0.29/libusb/descriptor.c:794:25: danger: '<unknown>' leaks here; was allocated at [(21)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
libusb-1.0.29/libusb/descriptor.c:794:25: warning[-Wanalyzer-malloc-leak]: leak of '_bos'
libusb-1.0.29/libusb/descriptor.c:760:12: branch_false: following 'false' branch (when 'size > 4')...
libusb-1.0.29/libusb/descriptor.c:767:13: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:767:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:771:20: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:771:19: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:774:20: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:774:19: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:780:42: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:780:16: acquire_memory: allocated here
libusb-1.0.29/libusb/descriptor.c:781:12: branch_false: following 'false' branch (when '_bos' is non-NULL)...
libusb-1.0.29/libusb/descriptor.c:784:9: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:792:21: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:793:20: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:793:20: branch_true: following 'true' branch (when 'size <= 2')...
libusb-1.0.29/libusb/descriptor.c:794:25: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:794:25: throw: if 'usbi_log' throws an exception...
libusb-1.0.29/libusb/descriptor.c:794:25: danger: '_bos' leaks here; was allocated at [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
libusb-1.0.29/libusb/descriptor.c:800:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libusb-1.0.29/libusb/descriptor.c:760:12: branch_false: following 'false' branch (when 'size > 4')...
libusb-1.0.29/libusb/descriptor.c:767:13: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:767:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:771:20: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:771:19: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:774:20: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:774:19: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:780:42: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:781:12: branch_false: following 'false' branch (when '_bos' is non-NULL)...
libusb-1.0.29/libusb/descriptor.c:784:9: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:792:21: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:793:20: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:793:20: branch_false: following 'false' branch (when 'size > 2')...
libusb-1.0.29/libusb/descriptor.c:799:21: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:799:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:803:28: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:803:27: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:808:28: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:808:27: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:814:43: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:814:43: acquire_memory: allocated here
libusb-1.0.29/libusb/descriptor.c:815:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:819:17: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:792:21: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:793:20: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:793:20: branch_false: following 'false' branch (when 'size > 2')...
libusb-1.0.29/libusb/descriptor.c:799:21: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:799:20: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:800:25: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:800:25: throw: if 'usbi_log' throws an exception...
libusb-1.0.29/libusb/descriptor.c:800:25: danger: '<unknown>' leaks here; was allocated at [(21)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
libusb-1.0.29/libusb/descriptor.c:800:25: warning[-Wanalyzer-malloc-leak]: leak of '_bos'
libusb-1.0.29/libusb/descriptor.c:760:12: branch_false: following 'false' branch (when 'size > 4')...
libusb-1.0.29/libusb/descriptor.c:767:13: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:767:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:771:20: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:771:19: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:774:20: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:774:19: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:780:42: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:780:16: acquire_memory: allocated here
libusb-1.0.29/libusb/descriptor.c:781:12: branch_false: following 'false' branch (when '_bos' is non-NULL)...
libusb-1.0.29/libusb/descriptor.c:784:9: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:792:21: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:793:20: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:793:20: branch_false: following 'false' branch (when 'size > 2')...
libusb-1.0.29/libusb/descriptor.c:799:21: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:799:20: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:800:25: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:800:25: throw: if 'usbi_log' throws an exception...
libusb-1.0.29/libusb/descriptor.c:800:25: danger: '_bos' leaks here; was allocated at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
libusb-1.0.29/libusb/descriptor.c:804:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libusb-1.0.29/libusb/descriptor.c:760:12: branch_false: following 'false' branch (when 'size > 4')...
libusb-1.0.29/libusb/descriptor.c:767:13: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:767:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:771:20: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:771:19: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:774:20: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:774:19: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:780:42: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:781:12: branch_false: following 'false' branch (when '_bos' is non-NULL)...
libusb-1.0.29/libusb/descriptor.c:784:9: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:792:21: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:793:20: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:793:20: branch_false: following 'false' branch (when 'size > 2')...
libusb-1.0.29/libusb/descriptor.c:799:21: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:799:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:803:28: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:803:27: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:808:28: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:808:27: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:814:43: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:814:43: acquire_memory: allocated here
libusb-1.0.29/libusb/descriptor.c:815:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:819:17: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:792:21: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:793:20: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:793:20: branch_false: following 'false' branch (when 'size > 2')...
libusb-1.0.29/libusb/descriptor.c:799:21: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:799:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:803:28: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:803:27: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:804:25: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:804:25: throw: if 'usbi_log' throws an exception...
libusb-1.0.29/libusb/descriptor.c:804:25: danger: '<unknown>' leaks here; was allocated at [(21)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
libusb-1.0.29/libusb/descriptor.c:804:25: warning[-Wanalyzer-malloc-leak]: leak of '_bos'
libusb-1.0.29/libusb/descriptor.c:760:12: branch_false: following 'false' branch (when 'size > 4')...
libusb-1.0.29/libusb/descriptor.c:767:13: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:767:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:771:20: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:771:19: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:774:20: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:774:19: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:780:42: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:780:16: acquire_memory: allocated here
libusb-1.0.29/libusb/descriptor.c:781:12: branch_false: following 'false' branch (when '_bos' is non-NULL)...
libusb-1.0.29/libusb/descriptor.c:784:9: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:792:21: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:793:20: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:793:20: branch_false: following 'false' branch (when 'size > 2')...
libusb-1.0.29/libusb/descriptor.c:799:21: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:799:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:803:28: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:803:27: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:804:25: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:804:25: throw: if 'usbi_log' throws an exception...
libusb-1.0.29/libusb/descriptor.c:804:25: danger: '_bos' leaks here; was allocated at [(9)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
libusb-1.0.29/libusb/descriptor.c:809:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libusb-1.0.29/libusb/descriptor.c:760:12: branch_false: following 'false' branch (when 'size > 4')...
libusb-1.0.29/libusb/descriptor.c:767:13: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:767:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:771:20: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:771:19: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:774:20: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:774:19: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:780:42: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:781:12: branch_false: following 'false' branch (when '_bos' is non-NULL)...
libusb-1.0.29/libusb/descriptor.c:784:9: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:792:21: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:793:20: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:793:20: branch_false: following 'false' branch (when 'size > 2')...
libusb-1.0.29/libusb/descriptor.c:799:21: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:799:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:803:28: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:803:27: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:808:28: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:808:27: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:814:43: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:814:43: acquire_memory: allocated here
libusb-1.0.29/libusb/descriptor.c:815:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:819:17: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:792:21: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:793:20: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:793:20: branch_false: following 'false' branch (when 'size > 2')...
libusb-1.0.29/libusb/descriptor.c:799:21: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:799:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:803:28: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:803:27: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:808:28: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:808:27: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:809:25: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:809:25: throw: if 'usbi_log' throws an exception...
libusb-1.0.29/libusb/descriptor.c:809:25: danger: '<unknown>' leaks here; was allocated at [(21)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
libusb-1.0.29/libusb/descriptor.c:809:25: warning[-Wanalyzer-malloc-leak]: leak of '_bos'
libusb-1.0.29/libusb/descriptor.c:760:12: branch_false: following 'false' branch (when 'size > 4')...
libusb-1.0.29/libusb/descriptor.c:767:13: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:767:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:771:20: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:771:19: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:774:20: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:774:19: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:780:42: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:780:16: acquire_memory: allocated here
libusb-1.0.29/libusb/descriptor.c:781:12: branch_false: following 'false' branch (when '_bos' is non-NULL)...
libusb-1.0.29/libusb/descriptor.c:784:9: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:792:21: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:793:20: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:793:20: branch_false: following 'false' branch (when 'size > 2')...
libusb-1.0.29/libusb/descriptor.c:799:21: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:799:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:803:28: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:803:27: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:808:28: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:808:27: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:809:25: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:809:25: throw: if 'usbi_log' throws an exception...
libusb-1.0.29/libusb/descriptor.c:809:25: danger: '_bos' leaks here; was allocated at [(9)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
libusb-1.0.29/libusb/descriptor.c:1100:17: warning[-Wanalyzer-malloc-leak]: leak of '_ssplus_cap'
libusb-1.0.29/libusb/descriptor.c:1053:18: enter_function: entry to 'libusb_get_ssplus_usb_device_capability_descriptor'
libusb-1.0.29/libusb/descriptor.c:1064:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:1069:20: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:1069:19: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:1080:41: call_function: inlined call to 'ReadLittleEndian32' from 'libusb_get_ssplus_usb_device_capability_descriptor'
libusb-1.0.29/libusb/descriptor.c:1085:23: acquire_memory: allocated here
libusb-1.0.29/libusb/descriptor.c:1086:12: branch_false: following 'false' branch (when '_ssplus_cap' is non-NULL)...
libusb-1.0.29/libusb/descriptor.c:1090:9: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:1099:12: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:1100:17: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:1100:17: throw: if 'usbi_log' throws an exception...
libusb-1.0.29/libusb/descriptor.c:1100:17: danger: '_ssplus_cap' leaks here; was allocated at [(7)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-401): [#def36]
libusb-1.0.29/libusb/descriptor.c:1101: error[memleak]: Memory leak: _ssplus_cap
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
libusb-1.0.29/libusb/descriptor.c:1118:1: warning[-Wanalyzer-malloc-leak]: leak of '_ssplus_cap'
libusb-1.0.29/libusb/descriptor.c:1053:18: enter_function: entry to 'libusb_get_ssplus_usb_device_capability_descriptor'
libusb-1.0.29/libusb/descriptor.c:1064:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:1069:20: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:1069:19: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:1080:41: call_function: inlined call to 'ReadLittleEndian32' from 'libusb_get_ssplus_usb_device_capability_descriptor'
libusb-1.0.29/libusb/descriptor.c:1085:23: acquire_memory: allocated here
libusb-1.0.29/libusb/descriptor.c:1086:12: branch_false: following 'false' branch (when '_ssplus_cap' is non-NULL)...
libusb-1.0.29/libusb/descriptor.c:1090:9: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:1099:12: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:1100:17: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:1118:1: danger: '_ssplus_cap' leaks here; was allocated at [(7)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
libusb-1.0.29/libusb/descriptor.c:1361:17: warning[-Wanalyzer-malloc-leak]: leak of '_iad_array'
libusb-1.0.29/libusb/descriptor.c:1424:12: enter_function: entry to 'raw_desc_to_iad_array'
libusb-1.0.29/libusb/descriptor.c:1428:19: acquire_memory: allocated here
libusb-1.0.29/libusb/descriptor.c:1431:12: branch_false: following 'false' branch (when '_iad_array' is non-NULL)...
libusb-1.0.29/libusb/descriptor.c:1434:13: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:1434:13: call_function: calling 'parse_iad_array' from 'raw_desc_to_iad_array'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
libusb-1.0.29/libusb/descriptor.c:1372:25: warning[-Wanalyzer-malloc-leak]: leak of '_iad_array'
libusb-1.0.29/libusb/descriptor.c:1424:12: enter_function: entry to 'raw_desc_to_iad_array'
libusb-1.0.29/libusb/descriptor.c:1428:19: acquire_memory: allocated here
libusb-1.0.29/libusb/descriptor.c:1431:12: branch_false: following 'false' branch (when '_iad_array' is non-NULL)...
libusb-1.0.29/libusb/descriptor.c:1434:13: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:1434:13: call_function: calling 'parse_iad_array' from 'raw_desc_to_iad_array'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
libusb-1.0.29/libusb/descriptor.c:1377:25: warning[-Wanalyzer-malloc-leak]: leak of '_iad_array'
libusb-1.0.29/libusb/descriptor.c:1424:12: enter_function: entry to 'raw_desc_to_iad_array'
libusb-1.0.29/libusb/descriptor.c:1428:19: acquire_memory: allocated here
libusb-1.0.29/libusb/descriptor.c:1431:12: branch_false: following 'false' branch (when '_iad_array' is non-NULL)...
libusb-1.0.29/libusb/descriptor.c:1434:13: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:1434:13: call_function: calling 'parse_iad_array' from 'raw_desc_to_iad_array'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
libusb-1.0.29/libusb/descriptor.c:1436:17: warning[-Wanalyzer-malloc-leak]: leak of '_iad_array'
libusb-1.0.29/libusb/descriptor.c:1424:12: enter_function: entry to 'raw_desc_to_iad_array'
libusb-1.0.29/libusb/descriptor.c:1428:19: acquire_memory: allocated here
libusb-1.0.29/libusb/descriptor.c:1431:12: branch_false: following 'false' branch (when '_iad_array' is non-NULL)...
libusb-1.0.29/libusb/descriptor.c:1434:13: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:1434:13: call_function: calling 'parse_iad_array' from 'raw_desc_to_iad_array'
libusb-1.0.29/libusb/descriptor.c:1434:13: return_function: returning to 'raw_desc_to_iad_array' from 'parse_iad_array'
libusb-1.0.29/libusb/descriptor.c:1435:12: branch_true: following 'true' branch...
libusb-1.0.29/libusb/descriptor.c:1436:17: branch_true: ...to here
libusb-1.0.29/libusb/descriptor.c:1436:17: throw: if 'usbi_log' throws an exception...
libusb-1.0.29/libusb/descriptor.c:1436:17: danger: '_iad_array' leaks here; was allocated at [(2)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
libusb-1.0.29/libusb/hotplug.c:389:30: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libusb-1.0.29/libusb/hotplug.c:342:18: enter_function: entry to 'libusb_hotplug_register_callback'
libusb-1.0.29/libusb/hotplug.c:351:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/hotplug.c:351:13: branch_false: following 'false' branch...
libusb-1.0.29/libusb/hotplug.c:354:13: branch_false: ...to here
libusb-1.0.29/libusb/hotplug.c:351:13: branch_false: following 'false' branch...
libusb-1.0.29/libusb/hotplug.c:355:13: branch_false: ...to here
libusb-1.0.29/libusb/hotplug.c:351:13: branch_false: following 'false' branch...
libusb-1.0.29/libusb/hotplug.c:351:13: branch_false: ...to here
libusb-1.0.29/libusb/hotplug.c:351:13: branch_false: following 'false' branch (when 'cb_fn' is non-NULL)...
libusb-1.0.29/libusb/hotplug.c:361:14: branch_false: ...to here
libusb-1.0.29/libusb/hotplug.c:361:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/hotplug.c:364:15: branch_false: ...to here
libusb-1.0.29/libusb/hotplug.c:364:15: call_function: calling 'usbi_get_context' from 'libusb_hotplug_register_callback'
libusb-1.0.29/libusb/hotplug.c:364:15: return_function: returning to 'libusb_hotplug_register_callback' from 'usbi_get_context'
libusb-1.0.29/libusb/hotplug.c:367:12: branch_false: following 'false' branch (when 'hotplug_cb' is non-NULL)...
libusb-1.0.29/libusb/hotplug.c:370:29: branch_false: ...to here
libusb-1.0.29/libusb/hotplug.c:371:12: branch_false: following 'false' branch (when 'vendor_id == -1')...
libusb-1.0.29/libusb/hotplug.c:375:12: branch_false: ...to here
libusb-1.0.29/libusb/hotplug.c:375:12: branch_false: following 'false' branch (when 'product_id == -1')...
libusb-1.0.29/libusb/hotplug.c:379:12: branch_false: ...to here
libusb-1.0.29/libusb/hotplug.c:379:12: branch_false: following 'false' branch (when 'dev_class == -1')...
libusb-1.0.29/libusb/hotplug.c:383:9: branch_false: ...to here
libusb-1.0.29/libusb/hotplug.c:386:9: call_function: calling 'usbi_mutex_lock' from 'libusb_hotplug_register_callback'
libusb-1.0.29/libusb/hotplug.c:386:9: return_function: returning to 'libusb_hotplug_register_callback' from 'usbi_mutex_lock'
libusb-1.0.29/libusb/hotplug.c:389:30: danger: dereference of NULL 'usbi_get_context(ctx)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
libusb-1.0.29/libusb/hotplug.c:456:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libusb-1.0.29/libusb/hotplug.c:427:19: enter_function: entry to 'libusb_hotplug_deregister_callback'
libusb-1.0.29/libusb/hotplug.c:439:15: call_function: calling 'usbi_get_context' from 'libusb_hotplug_deregister_callback'
libusb-1.0.29/libusb/hotplug.c:439:15: return_function: returning to 'libusb_hotplug_deregister_callback' from 'usbi_get_context'
libusb-1.0.29/libusb/hotplug.c:441:9: call_function: calling 'usbi_mutex_lock' from 'libusb_hotplug_deregister_callback'
libusb-1.0.29/libusb/hotplug.c:441:9: return_function: returning to 'libusb_hotplug_deregister_callback' from 'usbi_mutex_lock'
libusb-1.0.29/libusb/hotplug.c:442:9: branch_true: following 'true' branch...
libusb-1.0.29/libusb/hotplug.c:443:40: branch_true: ...to here
libusb-1.0.29/libusb/hotplug.c:450:9: call_function: calling 'usbi_mutex_unlock' from 'libusb_hotplug_deregister_callback'
libusb-1.0.29/libusb/hotplug.c:450:9: return_function: returning to 'libusb_hotplug_deregister_callback' from 'usbi_mutex_unlock'
libusb-1.0.29/libusb/hotplug.c:452:12: branch_true: following 'true' branch (when 'deregistered != 0')...
libusb-1.0.29/libusb/hotplug.c:455:17: branch_true: ...to here
libusb-1.0.29/libusb/hotplug.c:455:17: call_function: calling 'usbi_mutex_lock' from 'libusb_hotplug_deregister_callback'
libusb-1.0.29/libusb/hotplug.c:455:17: return_function: returning to 'libusb_hotplug_deregister_callback' from 'usbi_mutex_lock'
libusb-1.0.29/libusb/hotplug.c:456:17: danger: dereference of NULL 'usbi_get_context(ctx)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
libusb-1.0.29/libusb/io.c:2651:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libusb-1.0.29/libusb/io.c:2645:19: enter_function: entry to 'libusb_set_pollfd_notifiers'
libusb-1.0.29/libusb/io.c:2650:15: call_function: calling 'usbi_get_context' from 'libusb_set_pollfd_notifiers'
libusb-1.0.29/libusb/io.c:2650:15: return_function: returning to 'libusb_set_pollfd_notifiers' from 'usbi_get_context'
libusb-1.0.29/libusb/io.c:2651:9: danger: dereference of NULL 'usbi_get_context(ctx)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
libusb-1.0.29/libusb/io.c:2689:9: warning[-Wanalyzer-malloc-leak]: leak of 'ievent_source'
libusb-1.0.29/libusb/io.c:2684:51: acquire_memory: allocated here
libusb-1.0.29/libusb/io.c:2686:12: branch_false: following 'false' branch (when 'ievent_source' is non-NULL)...
libusb-1.0.29/libusb/io.c:2689:9: branch_false: ...to here
libusb-1.0.29/libusb/io.c:2689:9: throw: if 'usbi_log' throws an exception...
libusb-1.0.29/libusb/io.c:2689:9: danger: 'ievent_source' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
libusb-1.0.29/libusb/libusb.h:2174:16: warning[-Wanalyzer-malloc-leak]: leak of 'bos_data'
libusb-1.0.29/libusb/descriptor.c:840:18: enter_function: entry to 'libusb_get_bos_descriptor'
libusb-1.0.29/libusb/descriptor.c:847:38: branch_false: following 'false' branch (when 'dev_handle' is NULL)...
libusb-1.0.29/libusb/descriptor.c:851:13: call_function: inlined call to 'libusb_get_descriptor' from 'libusb_get_bos_descriptor'
libusb-1.0.29/libusb/descriptor.c:852:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:857:12: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:857:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/descriptor.c:863:38: branch_false: ...to here
libusb-1.0.29/libusb/descriptor.c:866:20: acquire_memory: allocated here
libusb-1.0.29/libusb/descriptor.c:867:12: branch_false: following 'false' branch (when 'bos_data' is non-NULL)...
libusb-1.0.29/libusb/descriptor.c:870:13: call_function: inlined call to 'libusb_get_descriptor' from 'libusb_get_bos_descriptor'
Error: CPPCHECK_WARNING (CWE-476): [#def47]
libusb-1.0.29/libusb/libusbi.h:497: error[ctunullpointer]: Null pointer dereference: ctx
Error: CPPCHECK_WARNING (CWE-476): [#def48]
libusb-1.0.29/libusb/libusbi.h:497: warning[nullPointer]: Possible null pointer dereference: ctx
Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
libusb-1.0.29/libusb/libusbi.h:497:16: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libusb-1.0.29/libusb/sync.c:103:18: enter_function: entry to 'libusb_control_transfer'
libusb-1.0.29/libusb/sync.c:112:13: branch_false: following 'false' branch (when 'dev_handle' is NULL)...
libusb-1.0.29/libusb/sync.c:112:13: call_function: inlined call to 'usbi_handling_events' from 'libusb_control_transfer'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
libusb-1.0.29/libusb/os/events_posix.h:58:16: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libusb-1.0.29/libusb/io.c:2573:18: enter_function: entry to 'libusb_get_next_timeout'
libusb-1.0.29/libusb/io.c:2580:15: call_function: calling 'usbi_get_context' from 'libusb_get_next_timeout'
libusb-1.0.29/libusb/io.c:2580:15: return_function: returning to 'libusb_get_next_timeout' from 'usbi_get_context'
libusb-1.0.29/libusb/io.c:2581:13: call_function: inlined call to 'usbi_using_timer' from 'libusb_get_next_timeout'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
libusb-1.0.29/libusb/os/events_posix.h:58:16: warning[-Wanalyzer-null-dereference]: dereference of NULL 'ctx'
libusb-1.0.29/libusb/io.c:2491:18: enter_function: entry to 'libusb_handle_events_locked'
libusb-1.0.29/libusb/io.c:2497:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/io.c:2500:15: call_function: calling 'usbi_get_context' from 'libusb_handle_events_locked'
libusb-1.0.29/libusb/io.c:2500:15: return_function: returning to 'libusb_handle_events_locked' from 'usbi_get_context'
libusb-1.0.29/libusb/io.c:2501:13: call_function: calling 'get_next_timeout' from 'libusb_handle_events_locked'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def52]
libusb-1.0.29/libusb/os/linux_usbfs.c:191:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'get_usbfs_fd(*handle.dev, 2, 0)'
libusb-1.0.29/libusb/os/linux_usbfs.c:1410:12: enter_function: entry to 'op_open'
libusb-1.0.29/libusb/os/linux_usbfs.c:1414:14: call_function: calling 'get_usbfs_fd' from 'op_open'
libusb-1.0.29/libusb/os/linux_usbfs.c:1414:14: return_function: returning to 'op_open' from 'get_usbfs_fd'
libusb-1.0.29/libusb/os/linux_usbfs.c:1415:12: branch_true: following 'true' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:1416:20: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:1416:20: branch_true: following 'true' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:1419:25: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:1419:25: call_function: calling 'usbi_mutex_static_lock' from 'op_open'
libusb-1.0.29/libusb/os/linux_usbfs.c:1419:25: return_function: returning to 'op_open' from 'usbi_mutex_static_lock'
libusb-1.0.29/libusb/os/linux_usbfs.c:1420:28: branch_true: following 'true' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:1421:33: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:1421:33: throw: if 'usbi_log' throws an exception...
libusb-1.0.29/libusb/os/linux_usbfs.c:191:13: danger: 'get_usbfs_fd(*handle.dev, 2, 0)' leaks here; was opened at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def53]
libusb-1.0.29/libusb/os/linux_usbfs.c:520:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open_sysfs_attr(ctx, sysfs_dir, attr)'
libusb-1.0.29/libusb/os/linux_usbfs.c:1448:12: enter_function: entry to 'op_get_configuration'
libusb-1.0.29/libusb/os/linux_usbfs.c:1455:12: branch_true: following 'true' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:1456:21: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:1456:21: call_function: calling 'sysfs_get_active_config' from 'op_get_configuration'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
libusb-1.0.29/libusb/os/linux_usbfs.c:2092:1: warning[-Wanalyzer-malloc-leak]: leak of 'urbs'
libusb-1.0.29/libusb/os/linux_usbfs.c:1988:16: acquire_memory: allocated here
libusb-1.0.29/libusb/os/linux_usbfs.c:1989:12: branch_false: following 'false' branch (when 'urbs' is non-NULL)...
libusb-1.0.29/libusb/os/linux_usbfs.c:1991:9: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:1997:21: branch_false: following 'false' branch (when 'num_urbs <= i')...
libusb-1.0.29/libusb/os/linux_usbfs.c:1997:21: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2092:1: danger: 'urbs' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
libusb-1.0.29/libusb/os/linux_usbfs.c:2195:25: warning[-Wanalyzer-malloc-leak]: leak of 'urb'
libusb-1.0.29/libusb/os/linux_usbfs.c:2110:12: branch_false: following 'false' branch (when 'num_packets > 0')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2110:12: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2118:21: branch_true: following 'true' branch (when 'i < num_packets')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2119:17: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2121:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2128:17: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2131:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2135:20: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2140:12: branch_false: following 'false' branch (when 'urbs' is non-NULL)...
libusb-1.0.29/libusb/os/linux_usbfs.c:2143:9: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2151:28: branch_true: following 'true' branch (when 'i < num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2152:21: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2160:20: branch_false: following 'false' branch (when 'urb' is non-NULL)...
libusb-1.0.29/libusb/os/linux_usbfs.c:2164:21: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2167:29: branch_false: following 'false' branch (when 'k >= num_packets_in_urb')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2173:17: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2151:28: branch_true: following 'true' branch (when 'i < num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2152:21: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2160:20: branch_false: following 'false' branch (when 'urb' is non-NULL)...
libusb-1.0.29/libusb/os/linux_usbfs.c:2164:21: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2167:29: branch_false: following 'false' branch (when 'k >= num_packets_in_urb')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2173:17: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2151:28: branch_true: following 'true' branch (when 'i < num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2152:21: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2159:23: acquire_memory: allocated here
libusb-1.0.29/libusb/os/linux_usbfs.c:2160:20: branch_false: following 'false' branch (when 'urb' is non-NULL)...
libusb-1.0.29/libusb/os/linux_usbfs.c:2164:21: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2167:29: branch_false: following 'false' branch (when 'k >= num_packets_in_urb')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2173:17: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2151:28: branch_false: following 'false' branch (when 'i >= num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2151:28: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2186:21: branch_true: following 'true' branch (when 'i < num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2187:69: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2189:20: branch_false: following 'false' branch (when 'r != 0')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2192:21: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2192:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2194:27: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2194:27: branch_true: following 'true' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2195:25: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2195:25: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2195:25: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2195:25: throw: if 'usbi_log' throws an exception...
libusb-1.0.29/libusb/os/linux_usbfs.c:2195:25: danger: 'urb' leaks here; was allocated at [(25)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/24)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
libusb-1.0.29/libusb/os/linux_usbfs.c:2195:25: warning[-Wanalyzer-malloc-leak]: leak of 'urbs'
libusb-1.0.29/libusb/os/linux_usbfs.c:2110:12: branch_false: following 'false' branch (when 'num_packets > 0')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2110:12: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2118:21: branch_true: following 'true' branch (when 'i < num_packets')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2119:17: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2121:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2128:17: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2131:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2135:20: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2139:16: acquire_memory: allocated here
libusb-1.0.29/libusb/os/linux_usbfs.c:2140:12: branch_false: following 'false' branch (when 'urbs' is non-NULL)...
libusb-1.0.29/libusb/os/linux_usbfs.c:2143:9: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2151:28: branch_true: following 'true' branch (when 'i < num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2152:21: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2160:20: branch_false: following 'false' branch (when 'urb' is non-NULL)...
libusb-1.0.29/libusb/os/linux_usbfs.c:2164:21: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2167:29: branch_false: following 'false' branch (when 'k >= num_packets_in_urb')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2173:17: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2186:21: branch_true: following 'true' branch (when 'i < num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2187:69: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2189:20: branch_false: following 'false' branch (when 'r != 0')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2192:21: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2192:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2194:27: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2194:27: branch_true: following 'true' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2195:25: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2195:25: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2195:25: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2195:25: throw: if 'usbi_log' throws an exception...
libusb-1.0.29/libusb/os/linux_usbfs.c:2195:25: danger: 'urbs' leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
libusb-1.0.29/libusb/os/linux_usbfs.c:2198:25: warning[-Wanalyzer-malloc-leak]: leak of 'urb'
libusb-1.0.29/libusb/os/linux_usbfs.c:2110:12: branch_false: following 'false' branch (when 'num_packets > 0')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2110:12: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2118:21: branch_true: following 'true' branch (when 'i < num_packets')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2119:17: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2121:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2128:17: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2131:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2135:20: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2140:12: branch_false: following 'false' branch (when 'urbs' is non-NULL)...
libusb-1.0.29/libusb/os/linux_usbfs.c:2143:9: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2151:28: branch_true: following 'true' branch (when 'i < num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2152:21: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2160:20: branch_false: following 'false' branch (when 'urb' is non-NULL)...
libusb-1.0.29/libusb/os/linux_usbfs.c:2164:21: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2167:29: branch_false: following 'false' branch (when 'k >= num_packets_in_urb')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2173:17: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2151:28: branch_true: following 'true' branch (when 'i < num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2152:21: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2160:20: branch_false: following 'false' branch (when 'urb' is non-NULL)...
libusb-1.0.29/libusb/os/linux_usbfs.c:2164:21: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2167:29: branch_false: following 'false' branch (when 'k >= num_packets_in_urb')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2173:17: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2151:28: branch_true: following 'true' branch (when 'i < num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2152:21: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2159:23: acquire_memory: allocated here
libusb-1.0.29/libusb/os/linux_usbfs.c:2160:20: branch_false: following 'false' branch (when 'urb' is non-NULL)...
libusb-1.0.29/libusb/os/linux_usbfs.c:2164:21: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2167:29: branch_false: following 'false' branch (when 'k >= num_packets_in_urb')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2173:17: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2151:28: branch_false: following 'false' branch (when 'i >= num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2151:28: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2186:21: branch_true: following 'true' branch (when 'i < num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2187:69: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2189:20: branch_false: following 'false' branch (when 'r != 0')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2192:21: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2192:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2194:27: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2194:27: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2197:27: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2197:27: branch_true: following 'true' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2198:25: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2198:25: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2198:25: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2198:25: throw: if 'usbi_log' throws an exception...
libusb-1.0.29/libusb/os/linux_usbfs.c:2198:25: danger: 'urb' leaks here; was allocated at [(25)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/24)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
libusb-1.0.29/libusb/os/linux_usbfs.c:2198:25: warning[-Wanalyzer-malloc-leak]: leak of 'urbs'
libusb-1.0.29/libusb/os/linux_usbfs.c:2110:12: branch_false: following 'false' branch (when 'num_packets > 0')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2110:12: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2118:21: branch_true: following 'true' branch (when 'i < num_packets')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2119:17: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2121:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2128:17: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2131:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2135:20: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2139:16: acquire_memory: allocated here
libusb-1.0.29/libusb/os/linux_usbfs.c:2140:12: branch_false: following 'false' branch (when 'urbs' is non-NULL)...
libusb-1.0.29/libusb/os/linux_usbfs.c:2143:9: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2151:28: branch_true: following 'true' branch (when 'i < num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2152:21: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2160:20: branch_false: following 'false' branch (when 'urb' is non-NULL)...
libusb-1.0.29/libusb/os/linux_usbfs.c:2164:21: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2167:29: branch_false: following 'false' branch (when 'k >= num_packets_in_urb')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2173:17: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2186:21: branch_true: following 'true' branch (when 'i < num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2187:69: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2189:20: branch_false: following 'false' branch (when 'r != 0')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2192:21: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2192:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2194:27: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2194:27: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2197:27: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2197:27: branch_true: following 'true' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2198:25: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2198:25: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2198:25: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2198:25: throw: if 'usbi_log' throws an exception...
libusb-1.0.29/libusb/os/linux_usbfs.c:2198:25: danger: 'urbs' leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
libusb-1.0.29/libusb/os/linux_usbfs.c:2201:25: warning[-Wanalyzer-malloc-leak]: leak of 'urb'
libusb-1.0.29/libusb/os/linux_usbfs.c:2110:12: branch_false: following 'false' branch (when 'num_packets > 0')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2110:12: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2118:21: branch_true: following 'true' branch (when 'i < num_packets')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2119:17: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2121:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2128:17: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2131:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2135:20: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2140:12: branch_false: following 'false' branch (when 'urbs' is non-NULL)...
libusb-1.0.29/libusb/os/linux_usbfs.c:2143:9: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2151:28: branch_true: following 'true' branch (when 'i < num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2152:21: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2160:20: branch_false: following 'false' branch (when 'urb' is non-NULL)...
libusb-1.0.29/libusb/os/linux_usbfs.c:2164:21: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2167:29: branch_false: following 'false' branch (when 'k >= num_packets_in_urb')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2173:17: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2151:28: branch_true: following 'true' branch (when 'i < num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2152:21: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2160:20: branch_false: following 'false' branch (when 'urb' is non-NULL)...
libusb-1.0.29/libusb/os/linux_usbfs.c:2164:21: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2167:29: branch_false: following 'false' branch (when 'k >= num_packets_in_urb')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2173:17: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2151:28: branch_true: following 'true' branch (when 'i < num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2152:21: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2159:23: acquire_memory: allocated here
libusb-1.0.29/libusb/os/linux_usbfs.c:2160:20: branch_false: following 'false' branch (when 'urb' is non-NULL)...
libusb-1.0.29/libusb/os/linux_usbfs.c:2164:21: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2167:29: branch_false: following 'false' branch (when 'k >= num_packets_in_urb')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2173:17: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2151:28: branch_false: following 'false' branch (when 'i >= num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2151:28: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2186:21: branch_true: following 'true' branch (when 'i < num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2187:69: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2189:20: branch_false: following 'false' branch (when 'r != 0')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2192:21: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2192:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2194:27: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2194:27: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2197:27: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2197:27: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2201:25: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2201:25: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2201:25: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2201:25: throw: if 'usbi_log' throws an exception...
libusb-1.0.29/libusb/os/linux_usbfs.c:2201:25: danger: 'urb' leaks here; was allocated at [(25)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/24)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
libusb-1.0.29/libusb/os/linux_usbfs.c:2201:25: warning[-Wanalyzer-malloc-leak]: leak of 'urbs'
libusb-1.0.29/libusb/os/linux_usbfs.c:2110:12: branch_false: following 'false' branch (when 'num_packets > 0')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2110:12: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2118:21: branch_true: following 'true' branch (when 'i < num_packets')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2119:17: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2121:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2128:17: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2131:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2135:20: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2139:16: acquire_memory: allocated here
libusb-1.0.29/libusb/os/linux_usbfs.c:2140:12: branch_false: following 'false' branch (when 'urbs' is non-NULL)...
libusb-1.0.29/libusb/os/linux_usbfs.c:2143:9: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2151:28: branch_true: following 'true' branch (when 'i < num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2152:21: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2160:20: branch_false: following 'false' branch (when 'urb' is non-NULL)...
libusb-1.0.29/libusb/os/linux_usbfs.c:2164:21: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2167:29: branch_false: following 'false' branch (when 'k >= num_packets_in_urb')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2173:17: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2186:21: branch_true: following 'true' branch (when 'i < num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2187:69: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2189:20: branch_false: following 'false' branch (when 'r != 0')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2192:21: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2192:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2194:27: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2194:27: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2197:27: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2197:27: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2201:25: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2201:25: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2201:25: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2201:25: throw: if 'usbi_log' throws an exception...
libusb-1.0.29/libusb/os/linux_usbfs.c:2201:25: danger: 'urbs' leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
libusb-1.0.29/libusb/os/linux_usbfs.c:2208:25: warning[-Wanalyzer-malloc-leak]: leak of 'urbs'
libusb-1.0.29/libusb/os/linux_usbfs.c:2110:12: branch_false: following 'false' branch (when 'num_packets > 0')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2110:12: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2118:21: branch_true: following 'true' branch (when 'i < num_packets')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2119:17: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2121:20: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2128:17: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2131:12: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2135:20: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2139:16: acquire_memory: allocated here
libusb-1.0.29/libusb/os/linux_usbfs.c:2140:12: branch_false: following 'false' branch (when 'urbs' is non-NULL)...
libusb-1.0.29/libusb/os/linux_usbfs.c:2143:9: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2151:28: branch_true: following 'true' branch (when 'i < num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2152:21: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2160:20: branch_false: following 'false' branch (when 'urb' is non-NULL)...
libusb-1.0.29/libusb/os/linux_usbfs.c:2164:21: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2167:29: branch_false: following 'false' branch (when 'k >= num_packets_in_urb')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2173:17: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2186:21: branch_true: following 'true' branch (when 'i < num_urbs')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2187:69: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2189:20: branch_false: following 'false' branch (when 'r != 0')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2192:21: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2192:20: branch_true: following 'true' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2207:20: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2207:20: branch_true: following 'true' branch (when 'i == 0')...
libusb-1.0.29/libusb/os/linux_usbfs.c:2208:25: branch_true: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2208:25: branch_false: following 'false' branch...
libusb-1.0.29/libusb/os/linux_usbfs.c:2208:25: branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2208:25: throw: if 'usbi_log' throws an exception...
libusb-1.0.29/libusb/os/linux_usbfs.c:2208:25: danger: 'urbs' leaks here; was allocated at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def62]
libusb-1.0.29/tests/umockdev.c:54:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘<unknown>’
libusb-1.0.29/tests/umockdev.c:188:9: branch_true: following ‘true’ branch...
libusb-1.0.29/tests/umockdev.c:188:9: branch_true: ...to here
libusb-1.0.29/tests/umockdev.c:190:16: branch_true: following ‘true’ branch...
libusb-1.0.29/tests/umockdev.c:194:23: branch_true: ...to here
libusb-1.0.29/tests/umockdev.c:195:39: throw: if ‘g_list_delete_link’ throws an exception...
libusb-1.0.29/tests/umockdev.c:191:39: call_function: inlined call to ‘glib_autoptr_cleanup_LogMessage’ from ‘assert_libusb_no_log_msg’
Error: CPPCHECK_WARNING (CWE-562): [#def63]
libusb-1.0.29/tests/umockdev.c:603: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def64]
libusb-1.0.29/tests/umockdev.c:650: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def65]
libusb-1.0.29/tests/umockdev.c:696: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def66]
libusb-1.0.29/tests/umockdev.c:778: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def67]
libusb-1.0.29/tests/umockdev.c:825: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Scan Properties
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-56.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.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | libusb1-1.0.29-4.fc44 |
| store-results-to | /tmp/tmp58m9jz1x/libusb1-1.0.29-4.fc44.tar.xz |
| time-created | 2026-01-08 19:22:02 |
| time-finished | 2026-01-08 19:23:58 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp58m9jz1x/libusb1-1.0.29-4.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp58m9jz1x/libusb1-1.0.29-4.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |